function stopError() { return true; }
window.onerror = stopError;
function MM_preloadImages() {
var d=document; 
if (d.images) { 
if (!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; 
for (i=0; i < a.length; i++)
if (a[i].indexOf("#")!=0) { 
d.MM_p[j]=new Image; 
d.MM_p[j++].src=a[i];
}}}
function MM_swapImgRestore() {
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_findObj(n, d) {
var p,i,x;  
if (!d) d=document; 
if ((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);
}
if (!(x=d[n])&&d.all) x=d.all[n]; 
for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for (i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if (!x && d.getElementById) x=d.getElementById(n); 
return x;
}
function MM_swapImage() {
var i,j=0,x,a=MM_swapImage.arguments; 
document.MM_sr=new Array; 
for (i=0; i < (a.length-2); i+=3)
if ((x=MM_findObj(a[i]))!=null) {
document.MM_sr[j++]=x; 
if (!x.oSrc) x.oSrc=x.src; 
x.src=a[i+2];
}}
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=2,location=0,statusbar=1,menubar=0,resizable=0,width=650,height=525,left = 100,top = 134');");
}
function popUpSmall(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=2,location=0,statusbar=1,menubar=0,resizable=0,width=200,height=150,left = 100,top = 134');");
}
browserName = navigator.appName; 
browserVer = parseInt(navigator.appVersion); 
ns3up = (browserName == "Netscape" && browserVer >= 3); 
ie4up = (browserName.indexOf("Microsoft") >= 0 && browserVer >= 4); 
function doPic(imgName) { 
if (ns3up || ie4up) { 
imgOn = ("" + imgName); 
document.mainpic.src = imgOn; 
}}
//google highlighter
var google_text_color = '#000000';
var google_link_colors = new Array('#ffff66','#a0ffff','#99ff99','#ff9999','#ff66ff');
function init_google() {
var pattern = /google\./i;
if (pattern.exec(document.referrer) != null) {
var url_parts = document.referrer.split('?');
if (url_parts[1]) { 
var url_args = url_parts[1].split('&');
for(var i=0; i < url_args.length; i++) {
var keyval = url_args[i].split('=');
if (keyval[0] == 'q') {
go_google(decode_url(keyval[1]));
return;
}}}}}
function decode_url(url) {
return unescape(url.replace(/\+/g,' '));
}
function go_google(terms) {
terms = terms.replace(/\"/g,"");
var terms_split = terms.split(' ');
var c = 0;
for(var i=0; i < terms_split.length; i++) {
highlight_goolge(terms_split[i], document.body,google_link_colors[c]);
c = (c == google_link_colors.length-1)?0:c+1;
}}
function highlight_goolge(term, container, color) {
var term_low = term.toLowerCase();
for(var i=0; i < container.childNodes.length; i++) {
var node = container.childNodes[i];
if (node.nodeType == 3) {
var data = node.data;
var data_low = data.toLowerCase();
if (data_low.indexOf(term_low) != -1) {
var new_node = document.createElement('SPAN');
node.parentNode.replaceChild(new_node,node);
var result;
while((result = data_low.indexOf(term_low)) != -1) {
new_node.appendChild(document.createTextNode(data.substr(0,result)));
new_node.appendChild(create_node_google(document.createTextNode(data.substr(result,term.length)),color));
data = data.substr(result + term.length);
data_low = data_low.substr(result + term.length);
}
new_node.appendChild(document.createTextNode(data));
}}else{
highlight_goolge(term, node, color);
}}}
function create_node_google(child, color) {
var node = document.createElement('SPAN');
node.style.backgroundColor = color;
node.style.color = google_text_color;
node.appendChild(child);
return node;
}
if (window.addEventListener) window.addEventListener("load", init_google, false);
else if (window.attachEvent) window.attachEvent("onload", init_google);
else if (document.getElementById) window.onload = init_google;
//end of google highlighter
//new tip and image enlarger starts here
var offsetfromcursorX = 12; //Customize x offset of tooltip
var offsetfromcursorY = 10; //Customize y offset of tooltip
var offsetdivfrompointerX = 10; //Customize x offset of tooltip DIV relative to pointer image
var offsetdivfrompointerY = 14; //Customize y offset of tooltip DIV relative to pointer image. Tip: Set it to (height_of_pointer_image-1).
document.write('<div id="dhtmltooltip" style="visibility:hidden;"></div>');
document.write('<img id="dhtmlpointer" style="visibility:hidden;" src="http://www.ebidds.com/statboxes/arrow2.gif">');
var ie = document.all;
var ns6 = document.getElementById&&!document.all;
var enabletip = false;
if (ie||ns6) {
var tipobj = document.all?document.all["dhtmltooltip"]:document.getElementById?document.getElementById("dhtmltooltip"):"";
var pointerobj = document.all?document.all["dhtmlpointer"]:document.getElementById?document.getElementById("dhtmlpointer"):"";
}
function ietruebody() {
return (document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body;
}
function ddrivetip(thetext,thewidth,thecolor) {
if (ns6||ie) {
if (typeof thewidth!="undefined") tipobj.style.width = thewidth+"px";
if (typeof thecolor!="undefined"&&thecolor!="") tipobj.style.backgroundColor = thecolor;
tipobj.innerHTML = thetext;
enabletip = true;
return false;
}}
function positiontip(e) {
if (enabletip) {
var nondefaultpos = false;
var curX=(ns6)?e.pageX:event.clientX+ietruebody().scrollLeft;
var curY=(ns6)?e.pageY:event.clientY+ietruebody().scrollTop;
var winwidth=ie&&!window.opera?ietruebody().clientWidth:window.innerWidth-20;
var winheight=ie&&!window.opera?ietruebody().clientHeight:window.innerHeight-20;
var rightedge=ie&&!window.opera?winwidth-event.clientX-offsetfromcursorX:winwidth-e.clientX-offsetfromcursorX;
var bottomedge=ie&&!window.opera?winheight-event.clientY-offsetfromcursorY:winheight-e.clientY-offsetfromcursorY;
var leftedge=(offsetfromcursorX < 0)?offsetfromcursorX*(-1):-1000;
if (rightedge < tipobj.offsetWidth) {
tipobj.style.left = curX-tipobj.offsetWidth+"px";
nondefaultpos = true;
} else if (curX < leftedge) {
tipobj.style.left = "5px";
} else {
tipobj.style.left = curX+offsetfromcursorX-offsetdivfrompointerX+"px";
pointerobj.style.left = curX+offsetfromcursorX+"px";
}
if (bottomedge < tipobj.offsetHeight) {
tipobj.style.top = curY-tipobj.offsetHeight-offsetfromcursorY+"px";
nondefaultpos = true;
} else {
tipobj.style.top = curY+offsetfromcursorY+offsetdivfrompointerY+"px";
pointerobj.style.top = curY+offsetfromcursorY+"px";
}
tipobj.style.visibility = "visible";
if (!nondefaultpos) pointerobj.style.visibility = "visible";
else pointerobj.style.visibility = "hidden";
}}
function hideddrivetip() {
if (ns6||ie) {
enabletip = false;
tipobj.style.visibility = "hidden";
pointerobj.style.visibility = "hidden";
tipobj.style.left = "-1000px";
tipobj.style.backgroundColor = "";
tipobj.style.width = "";
}}
document.onmousemove = positiontip;
//new tip and image enlarger ends here
var thumbnailviewer = {
enableTitle: true,
enableAnimation: true,
definefooter: '<div class="footerbar">CLOSE</div>',
defineLoading: '<img src="http://www.ebidds.com/images/wait1.gif" /> Loading Image...',
scrollbarwidth: 16,
opacitystring: 'filter:progid:DXImageTransform.Microsoft.alpha(opacity=10); -moz-opacity: 0.1; opacity: 0.1',
targetlinks:[],
createthumbBox:function() {
document.write('<div id="thumbBox" onClick="thumbnailviewer.closeit()" style="visibility:hidden;"><div id="thumbImage"></div>'+this.definefooter+'</div>')
document.write('<div id="thumbLoading" style="visibility:hidden;">'+this.defineLoading+'</div>')
this.thumbBox=document.getElementById("thumbBox")
this.thumbImage=document.getElementById("thumbImage")
this.thumbLoading=document.getElementById("thumbLoading")
this.standardbody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body
},
centerDiv:function(divobj) {
var ie=document.all && !window.opera
var dom=document.getElementById
var scroll_top=(ie)? this.standardbody.scrollTop : window.pageYOffset
var scroll_left=(ie)? this.standardbody.scrollLeft : window.pageXOffset
var docwidth=(ie)? this.standardbody.clientWidth : window.innerWidth-this.scrollbarwidth
var docheight=(ie)? this.standardbody.clientHeight: window.innerHeight
var docheightcomplete=(this.standardbody.offsetHeight>this.standardbody.scrollHeight)? this.standardbody.offsetHeight : this.standardbody.scrollHeight
var objwidth=divobj.offsetWidth
var objheight=divobj.offsetHeight
var topposition=(docheight>objheight)? scroll_top+docheight/2-objheight/2+"px" : scroll_top+10+"px"
divobj.style.left=docwidth/2-objwidth/2+"px"
divobj.style.top=Math.floor(parseInt(topposition))+"px"
divobj.style.visibility="visible"
},
showthumbBox:function() {
this.centerDiv(this.thumbBox)
if (this.enableAnimation) {
this.currentopacity=0.1
this.opacitytimer=setInterval("thumbnailviewer.opacityanimation()", 20)
}},
loadimage:function(link) {
if (this.thumbBox.style.visibility=="visible")
this.closeit()
var imageHTML = '<img src="'+link.getAttribute('href')+'" style="'+this.opacitystring+'" />'
if (this.enableTitle && link.getAttribute("title"))
imageHTML+='<br />'+link.getAttribute("title")
this.centerDiv(this.thumbLoading)
this.thumbImage.innerHTML=imageHTML
this.featureImage=this.thumbImage.getElementsByTagName("img")[0]
this.featureImage.onload=function() {
thumbnailviewer.thumbLoading.style.visibility="hidden"
thumbnailviewer.showthumbBox()
}
if (document.all && !window.createPopup)
this.featureImage.src=link.getAttribute("href")
this.featureImage.onerror=function() {
thumbnailviewer.thumbLoading.style.visibility="hidden"
}},
setimgopacity:function(value) {
var targetobject=this.featureImage
if (targetobject.filters && targetobject.filters[0]) {
if (typeof targetobject.filters[0].opacity=="number")
targetobject.filters[0].opacity=value*100
else
targetobject.style.filter="alpha(opacity="+value*100+")"
}
else if (typeof targetobject.style.MozOpacity!="undefined")
targetobject.style.MozOpacity=value
else if (typeof targetobject.style.opacity!="undefined")
targetobject.style.opacity=value
else
this.stopanimation()
},
opacityanimation:function() {
this.setimgopacity(this.currentopacity)
this.currentopacity+=0.1
if (this.currentopacity>1)
this.stopanimation()
},
stopanimation:function() {
if (typeof this.opacitytimer!="undefined")
clearInterval(this.opacitytimer)
},
closeit:function() {
this.stopanimation()
this.thumbBox.style.visibility="hidden"
this.thumbImage.innerHTML=""
this.thumbBox.style.left="-2000px"
this.thumbBox.style.top="-2000px"
},
cleanup:function() {
this.thumbLoading=null
if (this.featureImage) this.featureImage.onload=null
this.featureImage=null
this.thumbImage=null
for (var i=0; i < this.targetlinks.length; i++)
this.targetlinks[i].onclick=null
this.thumbBox=null
},
dotask:function(target, functionref, tasktype) {
var tasktype=(window.addEventListener)? tasktype : "on"+tasktype
if (target.addEventListener)
target.addEventListener(tasktype, functionref, false)
else if (target.attachEvent)
target.attachEvent(tasktype, functionref)
},
init:function() {
if (!this.enableAnimation)
this.opacitystring=""
var pagelinks=document.getElementsByTagName("a")
for (var i=0; i < pagelinks.length; i++) {
if (pagelinks[i].getAttribute("rel") && pagelinks[i].getAttribute("rel")=="thumbnail") {
pagelinks[i].onclick=function() {
thumbnailviewer.stopanimation()
thumbnailviewer.loadimage(this)
return false
}
this.targetlinks[this.targetlinks.length]=pagelinks[i]
}}
this.dotask(window, function() {if (thumbnailviewer.thumbBox.style.visibility=="visible") thumbnailviewer.centerDiv(thumbnailviewer.thumbBox)}, "resize")
}}
thumbnailviewer.createthumbBox()
thumbnailviewer.dotask(window, function() {thumbnailviewer.init()}, "load")
thumbnailviewer.dotask(window, function() {thumbnailviewer.cleanup()}, "unload")
//image zoom-in ends here
//fadeout on signout starts here
function log_out(confirmation_message) {
var bo = document.getElementsByTagName('body')[0];
bo.style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)";
//bo.style.filter = 'Alpha(opacity="30")';
bo.style.MozOpacity = '0.3';
bo.style.opacity = '0.3';
var ok = confirm(confirmation_message);
if (ok) {
return true;
} else {
bo.style.filter = "";
//bo.style.filter = 'Alpha(opacity="100")';
bo.style.MozOpacity = '1';
bo.style.opacity = '1';
return false; 
}}
//fadeout on signout ends here
var currenttime = 'September 09, 2010 19:16:04';
var serverdate=new Date(currenttime);
function padlength(what) {
var output=(what.toString().length==1)? "0"+what : what;
return output;
}
function displaytime() {
serverdate.setSeconds(serverdate.getSeconds()+1)
var timestring = "&nbsp;"+padlength(serverdate.getHours())+":"+padlength(serverdate.getMinutes())+":"+padlength(serverdate.getSeconds());
document.getElementById("servertimee").innerHTML=timestring;
}
window.onload=function() {
setInterval("displaytime()", 1000);
}
var req;
function loadXMLDoc(url) {
try {
req = new ActiveXObject("Msxml2.XMLHTTP");
}
catch(e) {
try {
req = new ActiveXObject("Microsoft.XMLHTTP");
}
catch(oc) {
req = null;
}}
if (!req&&typeof XMLHttpRequest!="undefined") req = new XMLHttpRequest();
if (req!=null) {
req.open("GET", url, true);
req.onreadystatechange = processChange;
req.send(null);
}}
function processChange() {
if (req.readyState==4&&req.status==200) {
if (req.responseText!="") {
getObject("basicsearch2").innerHTML = req.responseText;
getObject("basicsearch2").style.display = "block";
} else {
getObject("basicsearch2").style.display = "none";
}}}
var req2; 
function updateFeatItemScrollerH(url2) {
try { req2 = new ActiveXObject("Msxml2.XMLHTTP"); } 
catch(e) { 
try { req2 = new ActiveXObject("Microsoft.XMLHTTP"); } 
catch(oc) { req2 = null; } 
} 
if (!req2 && typeof XMLHttpRequest != "undefined") { req2 = new XMLHttpRequest(); } 
if (req2 != null) {
req2.open("GET", url2, true); 
req2.onreadystatechange = processChange2; 
req2.send(null); 
}} 
function processChange2() { 
if (req2.readyState==4&&req2.status==200) getObject("featitemscroller_horizothal").innerHTML = req2.responseText;
}
var req4; 
function moreitemsfromthisseller(url4) {
try { req4 = new ActiveXObject("Msxml2.XMLHTTP"); } 
catch(e) { 
try { req4 = new ActiveXObject("Microsoft.XMLHTTP"); } 
catch(oc) { req4 = null; } 
} 
if (!req4 && typeof XMLHttpRequest != "undefined") { req4 = new XMLHttpRequest(); } 
if (req4 != null) {
req4.open("GET", url4, true); 
req4.onreadystatechange = processChange4; 
req4.send(null); 
}} 
function processChange4() { 
if (req4.readyState==4&&req4.status==200) getObject("moreitemsfromthissellerframe").innerHTML = req4.responseText;
}
function getObject(name) { 
var ns4 = (document.layers)?true:false; 
var w3c = (document.getElementById)?true:false; 
var ie4 = (document.all)?true:false; 
if (ns4) return eval('document.' + name); 
if (w3c) return document.getElementById(name); 
if (ie4) return eval('document.all.' + name); 
return false; 
}
function handleEnter (field, event) {
var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;
if (keyCode == 13) {
var i;
for (i = 0; i < field.form.elements.length; i++)
if (field == field.form.elements[i])
break;
i = (i + 1) % field.form.elements.length;
field.form.elements[i].focus();
return false;
} else {
return true;
}} 
function JumpToIt(list) {
var newPage = list.options[list.selectedIndex].value;
if (newPage!="None") window.location=newPage;
}
function allrrss_go(entered) { 
with (entered) { 
ref=options[selectedIndex].value; 
splitcharacter=ref.lastIndexOf('&'); 
if (splitcharacter!=-1) {
loc=ref.substring(0,splitcharacter); 
target=ref.substring(splitcharacter+1,1000).toLowerCase(); 
} else { 
loc=ref; 
target='_self'; 
}; 
lowloc=loc.toLowerCase(); 
if (lowloc=='false') { 
return; 
} 
if (target=='_self') {
document.location=loc; 
} else { 
if (target=='_top') {
top.location=loc;
} else { 
if (target=='_blank') {
window.open(loc); 
} else { 
if (target=='_parent') {
parent.location=loc; 
} else { 
parent.frames[target].location=loc; 
}; 
}}}}}
started = true;
