var IMGURL="http://img.compuvest.com/";var BIG_IMG="http://img.compuvest.com/0/";var ADVERT="http://advert.compuvest.com/advert/";var CVST={init:function(a){this.lnk=a||"http://www.compuvest.com/"},getURL:function(a){return this.lnk+a}};Elements.implement({filterByTag:function(a){return this.filter(a)},filterByClass:function(a){return this.filter("."+a)},filterById:function(a){return this.filter("#"+a)},filterByAttribute:function(b,a,c){return this.filter("["+b+(a||"")+(c||"")+"]")}});function numberFormat(e){e=""+e.toFixed(2);var a=e.split(".");var d=a[0];var b=a.length>1?"."+a[1]:"";var c=/(\d+)(\d{3})/;while(c.test(d)){d=d.replace(c,"$1,$2")}return d+b}function toAlphaNumeric(c){var d="";var b="";for(var a=0;a<c.length;a++){b=c.substring(a,a+1);if(b=="'"){continue}if(b>=" "&&b<="~"){d+=b}}return d}function isInt(a){return(a%1)==0?a:0}function checkPassword(){var a=document.id("Customer");if(a.Password.value==a.vPassword.value){return}else{alert("Your passwords do not match");a.Password.value="";a.vPassword.value="";a.Password.focus();return}}function isCreditCard(j){var a=j.value.replace(/-/g,"").replace(/ /g,"");var g=parseInt(a,10);if(!g){return""}var e=0,b=1,c=a.length;for(var d=0;d<c;d++){var f=a.substring(c-d-1,c-d);var h=parseInt(f,10)*b;(h>=10)?e+=(h%10)+1:e+=h;(b==1)?b++:b--}if(a.length!=""&&(e%10)==0){return(a)}else{alert("Check yours card number: "+a);j.focus()}return""}function isDone(a){if(!a.Password.value){alert("Password cannot be empty.");a.Password.focus();return false}if(a.vPassword.value!=a.Password.value){alert("Your passwords do not match.");a.vPassword.focus();return false}if(!a.billingFirstName.value){alert("Billing First Name are required.");a.billingFirstName.focus();return false}if(!a.billingLastName.value){alert("Billing Last Name are required.");a.billingLastName.focus();return false}if(!a.billingAddress1.value){alert("Billing Address1 are required.");a.billingAddress1.focus();return false}if(!a.billingCountry.value){alert("Billing Country are required.");a.billingCountry.focus();return false}if(!a.billingCity.value){alert("Billing City are required.");a.billingCity.focus();return false}if(!a.billingState.value){alert("Billing State are required.");a.billingState.focus();return false}if(!a.billingZip.value){alert("Billing Zip are required.");a.billingZip.focus();return false}if(!a.billingPhone.value){alert("Phone are required.");a.billingPhone.focus();return false}if(!a.shippingFirstName.value){alert("Shipping First Name are required.");a.shippingFirstName.focus();return false}if(!a.shippingLastName.value){alert("Shipping Last Name are required.");a.shippingLastName.focus();return false}if(!a.shippingAddress1.value){alert("Shipping Address1 are required.");a.shippingAddress1.focus();return false}if(!a.shippingCountry.value){alert("Shipping Country are required.");a.shippingCountry.focus();return false}if(!a.shippingCity.value){alert("Shipping City are required.");a.shippingCity.focus();return false}if(!a.shippingState.value){alert("Shipping State are required.");a.shippingState.focus();return false}if(!a.shippingZip.value){alert("Shipping Zip are required.");a.shippingZip.focus();return false}if(!a.shippingPhone.value){alert("Phone are required.");a.shippingPhone.focus();return false}if(a.billingCountry.value=="US"&&!isInt(a.billingZip.value)){alert("Invalid Billing Zip.");a.billingZip.focus();return false}if(a.shippingCountry.value=="US"&&!isInt(a.shippingZip.value)){alert("Invalid Shipping Zip.");a.shippingZip.focus();return false}return true}function copyBillToShipp(){var a=document.id("Customer");a.shippingCompany.value=a.billingCompany.value;a.shippingFirstName.value=a.billingFirstName.value;a.shippingLastName.value=a.billingLastName.value;a.shippingAddress1.value=a.billingAddress1.value;a.shippingAddress2.value=a.billingAddress2.value;a.shippingCity.value=a.billingCity.value;a.shippingZip.value=a.billingZip.value;a.shippingZip4.value=a.billingZip4.value;a.shippingState.value=a.billingState.value;a.shippingCountry.value=a.billingCountry.value;a.shippingPhone.value=a.billingPhone.value;a.shippingCell.value=a.billingCell.value;a.shippingFax.value=a.billingFax.value}function resisDone(a){if(!a.Password.value){alert("Password cannot be empty.");a.Password.focus();return false}if(a.vPassword.value!=a.Password.value){alert("Your passwords do not match.");a.vPassword.focus();return false}if(!a.billingCompany.value){alert("Company name are required.");a.billingCompany.focus();return false}if(!a.resellerCode.value){alert("Reseller code are required.");a.resellerCode.focus();return false}if(!a.billingFirstName.value){alert("First Name are required.");a.billingFirstName.focus();return false}if(!a.billingLastName.value){alert("Last Name are required.");a.billingLastName.focus();return false}if(!a.billingAddress1.value){alert("Address1 are required.");a.billingAddress1.focus();return false}if(!a.billingCountry.value){alert("Country are required.");a.billingCountry.focus();return false}if(!a.billingCity.value){alert("City are required.");a.billingCity.focus();return false}if(!a.billingState.value){alert("State are required.");a.billingState.focus();return false}if(!a.billingZip.value){alert("Zip are required.");a.billingZip.focus();return false}if(!a.billingPhone.value){alert("Phone are required.");a.billingPhone.focus();return false}if(!a.billingZip.value){alert("Zip are required.");a.billingZip.focus();return false}if(!a.billingPhone.value){alert("Phone are required.");a.billingPhone.focus();return false}return true}function isEmail(a){return a.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/)!=-1?true:false}function isReady(a){if(!isEmail(a.Email.value)){alert("Please enter a valid email address.");a.Email.focus();return false}if(!a.Password.value){alert("Password cannot be empty.");a.Password.focus();return false}if(a.mode.value=="new"){if(a.vPassword.value!=a.Password.value){alert("Your passwords do not match.");a.vPassword.focus();return false}}return true}var sIs=new Array("","one","two","three","four","five","six","seven","eight","nine");var dIs=new Array("","ten","eleven","twelve","thirteen","fourteen","fifteen","sixteen","seventeen","eighteen","nineteen");var tIs=new Array("","twenty","thirty","forty","fifty","sixty","seventy","eighty","ninety");var qIs=new Array("","thousand","million","billion");function NtoW(){var a=document.id("nsu").firstChild.nodeValue.split("$");n2w(a[1])}function sdt(b){var e="",d=b%10;if(d>0){e=sIs[d]}var c=Math.floor((b%100)/10);if(c==1){e=dIs[d+1]}else{if(c>1&&c<10){e=tIs[c-1]+" "+e}}d=Math.floor(b/100);if(d>0){e=sIs[d]+" hundred "+e}return e}function n2w(b){var f=0,c=0,g="";if(b){var e=b.split(".",2);f=parseInt(e[0].replace(/,/g,""))}if(f>0&&f<2147483647){for(var d=0;d<4;d++){c=f%1000;f=Math.floor(f/1000);if(c>0){g=sdt(c)+" "+qIs[d]+" "+g}}}c=parseInt(e[1],10);if(c<10&&e[1].length==1){c*=10}if(c>0){g+=" and "+c+" cents"}document.id("am").set("html","<i>"+g+"</i>")}function validPromo(){var b=document.id("promo").value;if(b){b=b.toUpperCase();if(b.length<7||b.charAt(0)!="C"&&b.charAt(1)!="V"){alert("We're sorry, but this promotion code is invalid.");return false}document.id("Basket").submit()}else{alert("Promotion code empty.")}return true}function prestart(){var a=document.id("pref");if(!a){return}var c=a.getElements("div.al");if(!c){return}for(var b=0;b<c.length;b++){fcl(c[b].getParent().get("id"))}}function fcl(d){var b=document.id(d);if(!b){return}var c=b.getPrevious("a").getFirst("img");if(b.style.display=="block"){b.setStyle("display","none");c.set("src","./img/it/pls.png")}else{var e=b.getElements("a");if(e.length>12){b.setStyles({height:"200px",overflow:"auto","border-top":"1px solid #BFB8BF","border-bottom":"1px solid #BFB8BF"})}else{b.setStyles({height:"auto","border-top":0,"border-bottom":0})}b.setStyles({width:"100%",display:"block"});c.set("src","./img/it/mns.png")}b=c=e=null}function hideErr(b){b.style.visibility="hidden"}function isPaymentDone(d){var b=document.id("cvTabs");if(!b){alert("Not find tabs")}var c=b.getElements("a.tab");var a=c.filterByClass("active").get("href");document.id("payMethod").set("value",a);if(!d.totb.value){alert("Please choose one Shipping Methods!");return false}else{if(a=="CC"){if(!d.CNumber.value){alert("Credit card Number required!");d.CNumber.focus();return false}if(!d.CExpMonth.value){alert("Credit card Month required!");d.CExpMonth.focus();return false}if(!d.CExpYears.value){alert("Credit card Years required!");d.CExpYears.focus();return false}}else{if(a=="CD"){if(!d.checkNumber.value&&!d.checkNumber.value.test(/^\d{4}/g)){alert("Check Number required!\nMust be digits");d.checkNumber.focus();return false}if(!d.checkAccount.value&&!d.checkAccount.value.test(/^\d{10}/g)){alert("Check Account Number required!\nMust be digits");d.checkAccount.focus();return false}if(!d.checkRouting.value&&!d.checkRouting.value.test(/^\d{9}/g)){alert("Check Routing Number required!\nMust be digits");d.checkRouting.focus();return false}if(!d.licenseNumber.value&&!d.licenseNumber.value.test(/^[a-z][A-Z]\d/g)){alert("License Number required!");d.licenseNumber.focus();return false}if(!d.licenseState.value&&!d.licenseState.value.test(/^[A-Z]{2}/g)){alert("License USA State required!");d.licenseState.focus();return false}}}}d.mode.disabled="disabled";return true}var setGroundShipping=new Class({Implements:Options,options:{data:[]},initialize:function(a){this.setOptions(a);if(!this.options.data.length){return}this.taxField=document.id("taxb");this.descField=document.id("desb");this.desview=document.id("desview");this.shipPrice=document.id("spb");this.shipMethod=document.id("scdb");this.totalField=document.id("totb");this.signout=document.id("sgnout");this.sign=document.id("sgnch");if(this.options.data[0].shmd!="uspsx"){this.setDefault()}},setDefault:function(){this.firshShip=this.options.data[0];this.fillFields(this.firshShip)},setShipping:function(a){var b=this.options.data.filter(function(e){return e.shmd==a});var d=b[0];if(d){if(d.shmd=="usps"||d.shmd=="uspsx"){var c=confirm("USPS shipments do NOT carry insurance. I acknowledge that choosing USPS as the carrier, Compuvest Corporation is not responsible for any loss or damage once the shipment leaves Compuvest's facility");if(!c){this.setDefault();return}}this.fillFields(d)}},setSign:function(){this.signChecked=this.sign.get("checked");if(this.signChecked){this.signout.set("html",'Signature: <input name="sgn1" value="$2.00" size="10" readonly/>')}else{this.signout.empty()}var c=$$("input[name=ship_opt]:checked")[0].get("value");var a=this.options.data.filter(function(d){return d.shmd==c});var b=a[0];this.fillFields(b)},fillFields:function(a){this.signChecked=this.sign.get("checked");if(a){document.id(a.shmd).set("checked",true);this.taxField.set("value","$"+a.tax.toFixed(2));this.descField.set("value",a.shdesc);this.desview.set("text",a.shdesc+" : ");this.shipPrice.set("value","$"+a.shprc.toFixed(2));this.shipMethod.set("value",a.shmd);this.totalField.set("value","$"+(a.total+(this.signChecked?a.sgprc:0)).toFixed(2))}}});function reset(){return false}function sendform(b){var a=true;switch(b){case"notfound":case"quoterequest":case"volumediscount":if(checkf(b)){document.forms[b].submit()}break;case"logto":if(checklogto()){document.forms.logto.submit()}break;case"forgotm":if(checadr()){document.forms.forgotm.submit()}break;default:a=false}return a}function checkf(b){var d;for(var c=1;c<4;c++){d=document.forms[b].elements[c];if(!d.value){alert("You haven't filled in \""+d.name+'" !');return false}}return cem(document.forms[b].elements[3].value)}function checadr(){var a=document.forms.forgotm.elements[0];if(!cem(a.value)){return false}return true}var vv="1234567890qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM";function checklogto(){var d=document.forms.logto.elements[0];if(!cem(d.value)){return false}d=document.forms.logto.elements[1];var c=d.value;var b=1;if(c){for(var a=0;a<c.length;a++){if(vv.indexOf(c.charAt(a))==-1){b=0;break}}}if(!c||!b){alert("Your password is not valid!");return false}return true}function cem(a){if(!isEmail(a)){alert("Please enter a valid email address.");return false}return true}var ItemsShow=new Class({initialize:function(c,a,b){this.itemsdiv=document.id(c);if(!this.itemsdiv){return}this.needChangeCat=1;this.catsdiv=document.id("catshow");this.catID=0;this.catName="";this.loPrice=0;this.hiPrice=0;this.pref=new Array();this.nav=document.id("navgshow");this.ctnav="";this.firstPage=b;this.pageName=a;this.pageBack=document.location.href;this.items={};this.pageNo=0;this.itemOnPage=15;this.sort=1;this.getItems()},getItems:function(){var pref="";for(var i=0;i<this.pref.length;i++){if(this.pref[i]){pref+="&p"+i+"="+this.pref[i]}}new Request({url:"getitems",onRequest:function(){this.itemsdiv.empty();this.itemsdiv.setStyle("text-align","center");this.itemsdiv.adopt(new Element("img[src=./img/it/wait.gif][alt=wait]"))}.bind(this),onSuccess:function(items){if(!items.length){alert("We have found 0 items that match");return}try{this.items=eval("("+items+")")}catch(err){alert("itemshow Error...");return}this.doIt()}.bind(this),onFailure:function(err){alert("Error... "+err)}}).send("cp="+this.getCatPage()+"&pg="+this.pageNo+"&iop="+this.itemOnPage+"&sr="+this.sort+"&cid="+this.catID+"&nc="+this.needChangeCat+"&lp="+this.loPrice+"&hp="+this.hiPrice+pref+"&nh="+Math.random())},doIt:function(){if(this.needChangeCat){if(this.nav){this.nav.empty();this.ctnav=new Element("div#ctnav");this.ctnav.adopt(new Element("tt[html=&#8226;]"));this.ctnav.adopt(new Element("a[href="+CVST.getURL("")+"][text=Home]"));this.ctnav.adopt(new Element("tt[html=&#8226;]"));this.ctnav.adopt(new Element("a[href="+this.pageBack+"][html="+this.pageName+"]"));this.ctnav.adopt(new Element("tt[html=&#8226;]"));if(this.catName){var b=new Element("a[href=#][html="+this.catName+"]",{events:{click:function(){this.pageNo=0;this.sort=1;this.loPrice=this.hiPrice=0;for(var a=0;a<this.pref.length;a++){if(this.pref[a]){this.pref[a]=null}}this.needChangeCat=1;this.getItems()}.bind(this)}});this.ctnav.adopt(b);this.ctnav.adopt(new Element("tt[html=&#8226;]"))}this.nav.adopt(this.ctnav)}if(this.catsdiv){this.catsdiv.empty();if(this.items.cts.length){this.catsdiv.adopt(this.doCats())}else{if(this.items.prf.length){this.catsdiv.adopt(this.doPref())}}}}this.itemsdiv.empty();this.pages=parseInt((this.items.cnt%this.itemOnPage==0)?this.items.cnt/this.itemOnPage:this.items.cnt/this.itemOnPage+1);this.itemsdiv.adopt(this.doTop());this.itemsdiv.adopt(new Items(this.items));this.itemsdiv.adopt(this.doBot());this.itemsdiv.adopt(this.doPager());new Tipz("img.tipzb");new DialogBox("a.drpab")},doTop:function(){var g=(this.pageNo+1)*this.itemOnPage;var f=new Element("div#ittop");var b=new Element("tbody");var d=new Element("tr");new Element("td.fl1",{html:((this.pageNo*this.itemOnPage)+1)+" - "+g>=this.items.cnt?this.items.cnt:g+" of "+this.items.cnt+" results"}).inject(d);var e=new Element("td.fl3");var a=new Element("select",{events:{change:function(h){h.stop();this.sort=parseInt(h.target.value);this.needChangeCat=0;this.pageNo=0;this.getItems()}.bind(this)}}).inject(e);new Element("option[value=1]"+(this.sort==1?"[selected=yes]":"")+"[text=Price: lowest first]").inject(a);new Element("option[value=2]"+(this.sort==2?"[selected=yes]":"")+"[text=Price: highest first]").inject(a);var c=new Element("select[style=width:45px;]",{events:{change:function(h){h.stop();this.itemOnPage=parseInt(h.target.value);this.needChangeCat=0;this.pageNo=0;this.getItems()}.bind(this)}}).inject(e);new Element("option[value=15]"+(this.itemOnPage==15?"[selected=yes]":"")+"[text=15]").inject(c);new Element("option[value=25]"+(this.itemOnPage==25?"[selected=yes]":"")+"[text=25]").inject(c);new Element("option[value=50]"+(this.itemOnPage==50?"[selected=yes]":"")+"[text=50]").inject(c);f.adopt(new Element("table#iborder").adopt(b.adopt(d.adopt(e))));return f},doBot:function(){return new Element("div#itbot",{html:'<table id="iborder" style="line-height:18px"><tbody><tr><td class="fl1">Page: '+(this.pageNo+1)+" of "+this.pages+'</td><td class="fl3" style="font-size:9px;">'+this.items.t+"</td></tr></tbody></table>"})},doPager:function(){var g=new Element("span[style=line-height:26px;]");if(this.pages!=1){var c=this.pageNo+1,f=1,a=this.pages,b=false,e;if(this.pages-c>9){a=c+9;b=true}e=new Element("a#0[html=&laquo;&nbsp;]");if(c!=1){e.set({id:c-2,href:"#",events:{click:this.goPage.bind(this)}})}g.adopt(e);if(c>10){f=c-9;new Element("a#0[href=#][text=1 . . .]",{events:{click:this.goPage.bind(this)}}).inject(g)}for(var d=f;d<=a;d++){e=new Element("a[html=&nbsp;"+d+"&nbsp;]");if(d==c){e.set("style","font-size:18px;color:#800000;")}else{e.set({id:d-1,href:"#",events:{click:this.goPage.bind(this)}})}g.adopt(e)}if(b){new Element("a#"+(this.pages-1)+"[href=#][html=. . . "+this.pages+"]",{events:{click:this.goPage.bind(this)}}).inject(g)}e=new Element("a#0[html=&nbsp;&raquo;]");if(c!=this.pages){e.set({id:c,href:"#",events:{click:this.goPage.bind(this)}})}g.adopt(e)}return g},goPage:function(a){a.stop();this.pageNo=parseInt(a.target.id);this.needChangeCat=0;this.getItems()},doCats:function(){var j=new Element("div#ctmenu"),g,c,d;j.adopt(new Element("div.top"));var f=new Element("div#ctwm");var h;for(var e=0;e<this.items.cts.length;e++){var b=this.items.cts[e];if(h!=b.p){h=b.p;g=new Element("ul");c=new Element("li#gct"+e+".gct[html="+b.nmg+"<tt>("+this.countItem(b.p)+")</tt>]",{events:{click:function(){var a=document.id(this.id+"0");a.setStyle("display",a.getStyle("display")=="none"?"":"none")}}});g.adopt(c);f.adopt(g);g=new Element("ul#gct"+e+"0[style=display:none;]");f.adopt(g)}c=new Element("li[html=&raquo;]");d=new Element("a#"+b.id+"[href=#][html="+b.nm+"]",{events:{click:function(a){this.catID=parseInt(a.target.id);this.catName=a.target.innerHTML;this.needChangeCat=1;this.pageNo=0;this.getItems()}.bind(this)}});c.adopt(d);c.adopt(new Element("tt[html=("+b.n+")]"));g.adopt(c)}if(e<50){f.getElements("ul[id]").setStyle("display","block")}j.adopt(f);j.adopt(new Element("div.bot"));return j},countItem:function(b){var a=0;this.items.cts.each(function(c){if(b==c.p){a+=c.n}});return a},doPref:function(){var a=new Element("div#ctmenu"),f,e,i,j,g,c;a.adopt(new Element("div.top"));var b=new Element("div#ctwm");b.adopt(new Element("div.hd[text=Search by preference]"));if(this.loPrice&&this.hiPrice){f=new Element("nobr[text=Price Range]");new Element("a[style=color:red;][title=Clean Price Range][href=#][text= (x)]",{events:{click:function(){this.needChangeCat=1;this.loPrice=this.hiPrice=0;this.getItems()}.bind(this)}}).inject(f);b.adopt(f)}else{b.adopt(new Element("nobr[text=Price Range]"))}b.adopt(this.makeForm());for(var h=0;h<this.items.prf.length;h++){e=this.items.prf[h];b.adopt(new Element("hr[style=border:1px dotted silver;margin-top:2px;]"),new Element("nobr[html="+e.nm+"]"));i=new Element("ul");g="";e.pl.sort(this.filter);for(var d=0;d<e.pl.length;d++){f=e.pl[d];if(f.nm){j=new Element("li");if(this.pref[f.id]){j.adopt(new Element('tt[style=color:red;][html=&raquo; <a href="#" style="color:gray;">'+f.nm+"</a><tt>("+f.cn+")</tt>]"));new Element("a#"+f.id+"[style=color:red;][title=Clean "+f.nm+"][href=#][text=(x)]",{events:{click:this.doRemove.bind(this)}}).inject(j);this.ctnav.adopt(new Element("a",{href:"#",style:"color:gray;",html:f.nm}));new Element("a#"+f.id+"[style=color:red;][title=Clean "+f.nm+"][href=#][text=(x)]",{events:{click:this.doRemove.bind(this)}}).inject(this.ctnav);this.ctnav.adopt(new Element("tt[html=&#8226;]"))}else{j.adopt(new Element("tt",{html:"&raquo; "}));new Element("a#"+f.id+"[title="+f.nm+"][href=#][html="+f.nm+"]",{events:{click:function(l){l.stop();var k=l.target;this.pref[k.id]=k.title;this.pageNo=0;this.needChangeCat=1;this.getItems()}.bind(this)}}).inject(j);j.adopt(new Element("tt[html=("+f.cn+")]"))}if(d==5){c=new Element("li#pb"+h+'.mh[html=<tt class="hd">&darr;</tt> More ...]',{events:{click:function(l){l.stop();var k=l.target;var m=document.getElementById(k.id);m.setStyle("display","none");m=document.getElementById(k.id+"_h");m.setStyle("display","block")}}});i.adopt(c);b.adopt(i);i=new Element("ul#pb"+h+"_h[style=display:none;]");g=new Element("li#b"+h+'.mh[html=<tt class="hd">&uarr;</tt> Hide]',{events:{click:function(l){l.stop();var k=l.target;var m=document.getElementById("p"+k.id+"_h");m.setStyle("display","none");m=document.getElementById("p"+k.id);m.setStyle("display","block")}.bind(this)}})}i.adopt(j)}}if(g){i.adopt(g)}b.adopt(i)}a.adopt(b);a.adopt(new Element("div.bot"));return a},doRemove:function(c){c.stop();var b=c.target;this.pref[b.id]=null;this.needChangeCat=1;this.getItems()},makeForm:function(){var a=new Element("form",{html:'<tt> $</tt><input type="text" value="'+this.loPrice+'"/><tt> - $</tt><input type="text" value="'+this.hiPrice+'"/><input type="submit" value="Go"/>',events:{submit:function(c){c.stop();var b=c.target.getElements('input[type="text"]');this.loPrice=parseInt(b[0].value);this.hiPrice=parseInt(b[1].value);if(b.length>1&&this.loPrice&&this.hiPrice&&(this.hiPrice>this.loPrice)){this.needChangeCat=1;this.getItems()}else{alert("Price Range can't be zero or be empty.");b[0].focus();b[0].select()}}.bind(this)}});return a},getCatPage:function(){var a=document.location.href.match(/\bcp=\b(\d+)/);if(a){a=a[1]||1}return a},filter:function(d,c){return d.nm<c.nm?-1:d.nm>c.nm?1:0}});var dropmessg={before:{text:"<p>Dear CompuVest Customer!</p><br/><p>Welcome to Compuvest Price Drop Alerts, where you can sign up to receive alerts   for price changes on your favorite products, direct to your email. Subscribe for Instant Email Alerts.   Complete the form and click the Submit button to set an Alert.</p><br/>"},after:{text:"<br/><p>Dear Customer!</p><br/><p>Thank you for submitting your price-drop alert. If the price drops within the specified   time-frame you will be notified by email (or phone).</p><p>Please feel free to contact us if any questions.</p><br/>"}};var DialogBox=new Class({initialize:function(a){this.tags=$$(a);if(!this.tags.length){return}this.body="";this.width=500;this.box=document.id("dropricebox");if(!this.box){this.dropBox()}this.overlay=document.id("overlay");if(!this.overlay){this.tagOverlay()}this.overlay.addEvent("click",this.hide.bind(this));this.tags.each(function(b){b.addEvent("click",this.show.bind(this,b.id))},this);this.fade=new Fx.Morph(this.overlay).set({opacity:0})},dropBox:function(){this.box=new Element("div#dropricebox[style=visibility:hidden;opacity:0;width:"+this.width+"px;]").inject(document.body,"top")},tagOverlay:function(){this.overlay=new Element("div#overlay[style=visibility:hidden;opacity:0;]").inject(document.body,"top")},show:function(iid){document.addEvent("keydown",function(ev){if(ev.key=="esc"&&this.box.getStyle("visibility")=="visible"){this.hide()}}.bind(this));new Request({url:"droprice",onSuccess:function(item){this.doForm(eval("("+item+")"))}.bind(this),onFailure:function(err){alert("Error... "+err)}}).send("iid="+iid+"&act=it")},doForm:function(c){this.box.empty();var d=new Element("div#drophead");new Element("div[text=Price Drop Alerts]").inject(d);new Element("span[title=Close][text=x]",{events:{click:this.hide.bind(this)}}).inject(d);this.box.adopt(d);this.body=new Element("div#retdrop[html="+dropmessg.before.text+"]");var b=new Element("tbody").adopt(new Element('tr[html=<th width="27%">Product Code:</th><td width="73%">'+c.sku+"</td>]"),new Element("tr[html=<th>Product Name:</th><td>"+c.name+"</td>]"),new Element('tr[html=<th style="color:red;">Price:</th><td>$'+numberFormat(c.price)+"</td>]"),new Element('tr[html=<th style="color:green;">Notify me if:</th><td>Price changes</td>]'),new Element('tr[html=<th>Email:</th><td><input type="text" size="40" maxLength="128" name="email" value=""/></td>]'),new Element('tr[html=<th>Name:</th><td><input type="text" size="40" maxLength="40" name="name" value=""/></td>]'),new Element('tr[html=<th>Phone:</th><td><input type="text" size="40" maxLength="40" name="phone" value=""/></td>]'),new Element("tr[html=<td colspan=2>If you wish to be notified by phone, please enter you phone number.</td>]"));var a=new Element("input[type=submit][value=Send]",{events:{click:this.send.bind(this,c.id)}});b.adopt(new Element("tr[align=center]").adopt(new Element("td[colspan=2]").adopt(a)));this.body.adopt(new Element("table#drp_al").adopt(b));this.box.adopt(this.body);this.box.setPosition({x:(window.getSize().x/2)-(this.width/2),y:window.getScroll().y+window.getSize().y/4});this.fade.start({opacity:[0,0.7],visibility:"visible"});this.box.fade("in")},hide:function(){this.box.fade("out");this.fade.start({opacity:[0,0.7],visibility:"hidden"})},send:function(d){var e="";var b=false;var c=/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/;var a=this.box.getElements('input[type="text"]');a.each(function(f){if(f.name=="email"){b=c.test(f.value)}e+="&"+f.name+"="+f.value});if(b){new Request({url:"droprice",onRequest:function(){this.body.empty();this.body.setStyle("text-align","center");this.body.adopt(new Element("img[src=./img/it/wait.gif][alt=wait]"))}.bind(this),onSuccess:function(){this.sendEmail()}.bind(this),onFailure:function(f){alert("Error... "+f)}}).send("act=sd&iid="+d+e)}else{alert("Please enter a valid email address.")}},sendEmail:function(){this.body.empty();this.body.set({html:dropmessg.after.text,style:"text-align:left"})}});window.addEvent("domready",function(){new DialogBox("a.drpa")});var AdvertShow=new Class({Implements:Options,options:{id:"advshow",data:[],cols:5,count:10},initialize:function(a){this.setOptions(a);this.id=document.id(this.options.id);if(!this.id){return}this.show(this.options.data)},show:function(a){var b=new Element("tbody"),c=new Element("tr[align=center]");a.sort(function(){return 0.5-Math.random()}).each(function(e,d){if(this.options.count>d){c.adopt(new Element("td").adopt(new Element("div#blshow",{events:{click:function(){window.location.href=CVST.getURL("Desc.jsp?iid="+e.id)}}}).adopt(new Element("span").adopt(new Element("img[src="+BIG_IMG+e.sku+".jpg][alt="+e.sku+"]",{events:{error:function(){this.setStyle("display","none")}}})),new Element("p[text=$"+numberFormat(e.price)+"]"),new Element("div[html="+e.name+"]"))));if(!((d+1)%this.options.cols)){b.adopt(c);c=new Element("tr[align=center]")}}},this);this.id.adopt(new Element("table").adopt(b))}});var Search=new Class({initialize:function(a){this.elm=document.id(a);if(!this.elm){return}this.args=[];this.searchParams();this.search=this.args.Search||"";this.ctitle=this.args.tl||"0";this.sfill="Search for";this.go()},go:function(){this.srchIn=new Element("input[type=text][name=Search][value="+(this.search?this.search:this.sfill)+"]",{events:{focus:function(){this.value=""},mouseenter:function(){this.setStyle("background-color","#ffffef")},mouseleave:function(){this.setStyle("background-color","#f3f3f3")},keyup:function(b){if(b.key=="enter"){this.butt.fireEvent("click",b)}}.bind(this)}});this.elm.adopt(this.srchIn,new Element("tt[text= in ]"));var a=new Element("select",{events:{change:this.onSelect.bind(this)}}).adopt(new Element("option[value=0]"+(this.ctitle=="0"?"[selected=yes]":"")+"[text=All Products]"),new Element("option[value=1]"+(this.ctitle=="1"?"[selected=yes]":"")+"[text=Advanced]"));this.elm.adopt(a);this.butt=new Element("button[type=submit][text=Search]",{events:{click:this.onSubmit.bind(this)}});this.elm.adopt(this.butt)},onSelect:function(a){a.stop();this.ctitle=a.target.value},onSubmit:function(a){a.stop();if(this.srchIn.value!=this.sfill){var b=this.srchIn.value.replace(/hp/g,"hpp");if(b.length<3){alert("Must be more 3 letters.");return}window.location.href=CVST.getURL("Search.jsp?Search="+escape(this.srchIn.value))}},searchParams:function(){var a=0,c,b=document.URL;if((a=b.indexOf("?"))>0){b=b.substring(a+1,b.length);b.split("&").each(function(d){c=d.indexOf("=");if(c!=-1){this.args[d.substring(0,c)]=unescape(d.substring(c+1))}},this)}}});window.addEvent("domready",function(){new Search("dsrch")});var Excel=new Class({initialize:function(a){this.elm=document.id(a);if(!this.elm){return}this.elm.adopt(new Element("img[src=../img/fp/excel.png][align=top][alt=Download Excel files]"),new Element("select[style=width:120px;color:#800000;margin-right:9px;]",{events:{change:this.select.bind(this)}}).adopt(new Element("option[value=0][text=Download Now]"),new Element("option[value=1][text=Special Pricing]"),new Element("option[value=2][text=Inventory Just Arrived]")))},select:function(a){switch(a.target.value){case"1":window.location.href=ADVERT+"excel/Wholesale Prices.xls";break;case"2":window.location.href=ADVERT+"excel/JustArrived.xls";break}}});window.addEvent("domready",function(){new Excel("dsrch")});var Slides=new Class({initialize:function(a){this.links=$$(a);if(!this.links){return}var b=new URI(document.location.href);this.links.each(function(c){var d=c.getNext();if(d){c.addEvent("click",function(e){d.slide("toggle");e.stop();c.getFirst().set("text",d.get("slide").open?"+":"-")});if(b.get("data").op&&b.get("data").op==c.get("name")){c.getFirst().set("text","-")}else{d.slide("hide")}}})}});function SlideOpen(a){this.links=$$("a.tglnk");this.links.each(function(b){if(b.get("name")==a){var c=b.getNext().getFirst();if(c){c.get("slide").toggle();b.getFirst().set("text",c.get("slide").open?"+":"-")}}})}var Tipz=new Class({initialize:function(a){this.tips=$$(a);if(!this.tips){return}this.json="";this.wraptip=document.id("wrtip");if(!this.wraptip){this.tagTip()}this.tips.addEvents({mouseenter:this.show.bind(this),mouseleave:this.hide.bind(this)})},tagTip:function(){this.wraptip=new Element("div#wrtip").inject(document.body,"top")},show:function(ev){var rel=this.wraptip.get("dir");if(!rel||rel!=ev.target.id){this.wraptip.empty();new Request({url:"../gettip",onSuccess:function(tip){try{this.json=eval("("+tip+")")}catch(err){alert("Error...");return}this.wraptip.set({styles:{width:this.json.wd,background:this.json.bg},dir:ev.target.id,html:this.json.txt})}.bind(this),onFailure:function(err){alert("Error... "+err)}}).send("id="+ev.target.id)}this.wraptip.setStyles({top:ev.page.y+18+"px",left:ev.page.x+"px",display:"block"})},hide:function(){this.wraptip.setStyle("display","none")}});window.addEvent("domready",function(){new Tipz("img.tipz, span.tipz, a.tipz")});var Bottom=new Class({initialize:function(){this.foot=document.id("cvfoot");if(!this.foot){return}this.foot.set("html",'   <p>    <a href="'+CVST.getURL("")+'">Home</a> |     <a href="'+CVST.getURL("info/AboutUs.jsp")+'">About Us</a> |     <a href="'+CVST.getURL("info/ContactUs.jsp")+'">Contact Us</a> |     <a href="'+CVST.getURL("info/CustomerService.jsp")+'">Customer Service</a> |     <a href="'+CVST.getURL("info/Resellers.jsp")+'">Resellers</a> |     <a href="'+CVST.getURL("info/Returns.jsp")+'">Returns</a> |     <a href="'+CVST.getURL("info/SiteMap.jsp")+'">Site Map</a> |     <a href="'+CVST.getURL("info/Affiliate.jsp")+'">Affiliate Program</a> |     <span id="bsocial"></span>    </p>   <div>    <div class="lft">All Rights Reserved (c) 1996 - 2012 Compuvest Corp.&trade; is operating the following sites:     <a href="'+CVST.getURL("")+'">www.compuvest.com</a> and <a href="http://www.compuvest.us">www.compuvest.us</a>    </div><div class="rgt">888.644.7017</div>   </div>')}});window.addEvent("domready",function(){new Bottom()});var Social=new Class({facebook:'<a href="http://www.facebook.com/pages/Compuvest-Corporation/137501466319430#!/pages/Compuvest-Corporation/137501466319430" style="border-left:none;" target="_blank"><img src="img/facebook.png" title="Facebook" alt="" style="border:0;width:20px;margin-bottom:-5px;"></a>',twitter:'<a onclick="window.open(\'http://twitter.com/#!/CompuvestCorp\',\'sharer\', \'toolbar=0,status=0,width=700,height=500,resizable=yes,scrollbars=yes\');return false;" style="border-left: medium none;" href="#Twitter"><img style="border:0pt none;width:20px;margin-bottom:-5px;" alt="" title="Twitter" src="img/twitter.png"></a>',initialize:function(){var a=document.id("bsocial");if(a){a.set("html",this.facebook+this.twitter)}var b=document.id("hsocial");if(b){b.set("html",this.facebook+this.twitter)}}});window.addEvent("domready",function(){new Social()});var cvTabs=new Class({Implements:Options,options:{newtabs:[],waitIcon:'Loading... <img src="./img/it/wait.gif" alt="wait"/>'},initialize:function(b,a){this.tbs=document.id(b);if(!this.tbs){return}this.setOptions(a);this.tabs=this.tbs.getElements("a.tab");this.panels=this.tbs.getElements("div.panel");if(this.options.newtabs){this.options.newtabs.each(function(c){this.addTab(c.id,c.name,c.text,c.ajax,c.etilid)},this)}this.tabs.filter(".tab")[0].addClass("active");this.panels.filter(".panel")[0].addClass("active");this.tabs.each(function(c){c.addEvents({click:this.setTab.bind(this,c.get("href")),focus:function(){this.blur()}})},this)},setTab:function(id,ev){ev.stop();this.tabs.removeClass("active");this.panels.removeClass("active");var elm=this.panels.filterById(id).addClass("active");this.tabs.filterByAttribute("href","=",id).addClass("active");if(elm.retrieve("ajax")[0]=="on"&&elm.get("text")[0].indexOf("Loading...")>-1){new Request({url:"desctabs",onSuccess:function(items){if(!items.length){elm.set("html",'<h3 style="padding:10px 0;">We have found 0 items that match</h3>');return}items=eval("("+items+")");elm.set("text","");elm.adopt(new Items(items));new Tipz("img.tipzb");new DialogBox("a.drpab")}.bind(this),onFailure:function(err){alert("Error... (cvTabs) "+err)}}).send("mfrs="+elm.retrieve("mfrs")[0]+"&nc="+Math.random())}},addTab:function(h,a,f,e,d){var g=new Element("a.tab[href="+h+"][html=<span>"+a+"</span>]",{events:{focus:function(){this.blur()}}});var c=new Element("li",{events:{click:this.setTab.bind(this,h)}}).adopt(g);this.tabs.include(g);this.tbs.getElement("ul").adopt(c);var b=new Element("div#"+h+".panel[html="+(e?this.options.waitIcon:f)+"]");b.store("ajax",e).store("mfrs",d);this.panels.include(b);this.tbs.getElement("div").adopt(b)}});var AdvertRight=new Class({Implements:Options,options:{id:"advright"},text:"If you are experiencing any difficulties with the usability of our site,please notify us with a brief description of the problem so that we can improve to better serve our customers.We appreciate your feedback and will compensate your time by sending you a free gift.%0a%0aBrowser used:%0a%0a%0a%0aProblem description:%0a%0a%0a%0aThank you%0aCompuVest Technical Team%0d",initialize:function(a){this.setOptions(a);this.adright=document.id(this.options.id);if(!this.adright){return}}});var Warning=new Class({text:"<p>Warning!</p>         Computers and computer circuit boards, as well as other electronic equipment, contain lead, which is a chemical         known to the State of California to cause cancer or cause birth defects and other reproductive harm.         Please wash hands after handling circuit boards and other internal components of computers and electronic equipment,         and avoid inhalation of fumes if heating the solder on the internal components or circuit boards.",initialize:function(){var a=document.id("warning");if(!a){return}a.set("html",this.text);a.slide("hide").slide("in")}});var LeftMenu=new Class({Implements:Options,options:{id:"leftmenu",gid:0,sid:0,data:[]},initialize:function(a){this.setOptions(a);this.leftmenu=document.id(this.options.id);if(!this.leftmenu||!this.options.data.length){return}var d;if(this.options.data){d=new Element("div#lmenu");var c,b,e;var f=new Element("ul");this.options.data.each(function(h){e=new Element("a[href=Cats.jsp?cid="+h.id+"][text="+h.nm+"]");b=this.getSubcatBlock(h.id,this.options.sid,h.s);if(h.id==this.options.gid){e.set("style","background:#ffffdf;");new Element("div#smenu").adopt(b.clone()).inject(this.leftmenu,"top");new Element("div#tmenu").adopt(e.clone()).inject(this.leftmenu,"top");var g=document.id("catName");if(g){g.set("text",h.nm)}}c=new Element("li").adopt(e).inject(f);c.adopt(b)},this);f.inject(d)}d.inject(this.leftmenu);new Element("img[src=../img/ad/ebayreseller.png][style=margin-top:10px;][alt=Ebay Rated Seller]").inject(this.leftmenu);new Element('a[href=https://www.resellerratings.com][onclick=window.open("https://seals.resellerratings.com/landing.php?seller=2059","name","height=760,width=780,scrollbars=1");return false;]').adopt(new Element('img[style=border:none;][src=//seals.resellerratings.com/seal.php?seller=2059][oncontextmenu=alert("Copying Prohibited by Law - ResellerRatings seal is a Trademark of All Enthusiast, Inc.");return false;]')).inject(this.leftmenu)},getSubcatBlock:function(c,b,e){if(!e.length){return""}var d=new Element("ul"),a;e.each(function(g){a=new Element("li");if(b==g.id){a.set("style","border:1px solid #a6a7b0;background:#e5e7d9;");var f=document.id("scatName");if(f){f.set("text",g.nm)}}a.adopt(new Element("a[href=Items.jsp?cid="+c+"&sid="+g.id+"][text="+g.nm+"]")).inject(d)},this);return d}});String.implement({stripHTMLTag:function(){return this.replace(/<&#91;^>&#93;*>/g,"")},xmlToHtml:function(){return this.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/\?/g,"").replace(/\u00A6/g,"<br/>")}});var Descr=new Class({Implements:Options,options:{data:""},nospecMessg:"No specifications available for this product at this time.",waitIcon:"<img src='./img/it/wait.gif' alt='wait'/>",initialize:function(b,a){this.tbs=document.id(b);if(!this.tbs){return}this.setOptions(a);this.newtabs=[];this.tabid=this.tbs.getElement("a.tab").get("href");this.panel=this.tbs.getElement("#"+this.tabid);this.panel.set("html",this.waitIcon);this.json=this.options.data;if(this.json&&this.json.sku){this.doDescrJSON()}else{this.panel.set("text",this.nospecMessg);return}new Warning()},doDescrJSON:function(){this.panel.empty();var c=document.id("imgbox");if(this.json.imgs&&c){this.json.imgs.each(function(f,e){if(e<4){new Element("span",{html:'<img src="'+IMGURL+f+"/"+this.json.sku+'.jpg" alt="'+this.json.sku+'"/>'}).inject(c)}},this)}new Element("div.dshead[text=Marketing Information]").inject(this.panel);new Element("div.dsbody",{html:""+(this.json.minfo?this.json.minfo.xmlToHtml():"")+(this.json.nameb?this.json.nameb.xmlToHtml():"")}).inject(this.panel);new Element("hr").inject(this.panel);if(this.json.mspec){new Element("div.dshead[text=Main Features]").inject(this.panel);var d=new Element("div#tagLI");var a=new Hash(this.json.mspec.attr);a.each(function(f,e){if(e!="Standard Warranty"&&e!="Package Contents"){new Element("li",{html:"<b>"+e+" : </b><tt>"+f.xmlToHtml()+"</tt>"}).inject(d)}});d.inject(this.panel)}if(this.json.espec){var b="";this.json.espec.each(function(f){if(f.name&&f.name!="Warranty"&&f.name!="Software"){b+="<div class='dshead'>"+f.name+"</div><div id='tagLI'>";var e=new Hash(f.attr);e.each(function(h,g){if(g!="Package Contents"){b+="<li><b>"+g+" : </b><tt>"+h.xmlToHtml()+"</tt></li>"}});b+="</div><hr/>"}});if(b){this.newTab("tb02","Technical Specification",b)}}if(this.json.paccl){this.newTab("tb03","Options & Accessories","","on",this.json.paccl)}if(this.json.psiml){this.newTab("tb04","Similar Products","","on",this.json.psiml)}},newTab:function(a,c,e,d,b){this.newtabs.include({id:a,name:c,text:e,ajax:d,etilid:b})},getNewTabs:function(){return this.newtabs},getImg:function(a){return(a.length>0)?'<span><img src="'+a.get("text")+'" alt="'+a.get("text")+'"/></span>':""}});var ImageGalery=new Class({Implements:Options,options:{fxParam:{property:"left",duration:1000,transition:Fx.Transitions.Back.easeOut,wait:false},interval:5000,imgSize:300},currentIndex:null,_play:null,wait:false,initialize:function(b,a){this.imgbuf=document.id(b);if(!this.imgbuf){return}this.setOptions(a);this.box=this.imgbuf.getElement("#imgbox");this.images=this.box.getElements("img");this.makeThumbs();this.box.setStyle("width",this.options.imgSize*this.images.length+"px");this.imgFx=new Fx.Tween(this.box,this.options.fxParam).set(0);this.maskFx=new Fx.Tween(this.thumMask,this.options.fxParam).set("-298px");this.walk(0)},makeThumbs:function(){this.thumbs=new Element("div#thumbs");this.thumMask=new Element("div#thumbs_mask[style=left:-298px;opacity:0.6;]");var a=new Element("p#thumbs_handles");var b="";this.images.each(function(e,d){b+='<div><img src="'+e.src+'" alt=""/></div>';a.adopt(new Element("span",{events:{mouseenter:this.walk.bind(this,d)}}))},this);var c=new Element("div.thumbs[html="+b+"]");this.thumbs.adopt(c,this.thumMask,a);this.thumbs.inject(this.imgbuf,"after")},next:function(a){this.walk((this.currentIndex<this.images.length-1?this.currentIndex+1:0),a)},play:function(){this._play=this["next"].periodical(this.options.interval,this,[false])},stop:function(){},walk:function(a){if(a!=this.currentIndex){this.currentIndex=a;this.imgFx.start(this.options.imgSize*-this.currentIndex);this.maskFx.start(this.currentIndex*75-298)}}});var Items=new Class({initialize:function(g){this.bigimg=document.id("bigimg");if(!this.bigimg){this.bigimg=new Element("div#bigimg[style=opacity:0;]").inject(document.body,"top")}var a=new Element("div#accsum"),j,h,b,f,e;var d=new Element("tbody");for(var c=0;c<g.its.length;c++){j=g.its[c];h=new Element("tr");b=new Element("td#cl1");new Element("img[src="+BIG_IMG+j.sku+".jpg][alt="+j.sku+"]",{events:{mouseenter:this.show.bind(this,j.sku),mouseleave:this.hide.bind(this),error:function(){this.setStyle("display","none")}}}).inject(b);h.adopt(b);new Element("td#cl2",{html:'        <a href="'+CVST.getURL("Desc.jsp?iid="+j.id)+'">'+j.nm+"</a>        <div><dl><dd>&#187; SKU : "+j.sku+"        </dd><dd>&#187; Condition : "+j.cnd+"        </dd><dd>&#187; Stock : "+j.qty+"        </dd></dl></div><div><dl><dd>&#187; Manufacturer : "+j.mnm+"        </dd><dd>&#187; Manufacturer P/N : "+j.mfr+"        </dd><dd>&#187; Package : "+j.pkg+"        </dd></dl></div>"}).inject(h);b=new Element("td#cl3");f=new Element("tbody");e=new Element("tr");new Element('td.drp[colspan=3][html=<a id="'+j.id+'" class="drpab" href="javascript:;">Drop Price Alert</a>]').inject(e);f.adopt(e);this.trTag(j,this.banner(j)).inject(f);if(j.it){this.trTag(j.it,"").inject(f)}b.adopt(new Element("table").adopt(f));h.adopt(b);d.adopt(h);if(c+1!=g.its.length){d.adopt(new Element("tr").adopt(new Element("td[colspan=3]").adopt(new Element("hr"))))}}return a.adopt(new Element("table").adopt(d))},trTag:function(a,b){return new Element("tr").adopt(new Element("td").adopt(b),new Element("td.pr[html=$"+numberFormat(a.prc)+"]"),new Element("td[style=width:90px;padding:0 0 3px 0;]").adopt(new Element("a#addbk[href="+CVST.getURL("Basket.jsp?iidd="+a.id)+"]").adopt(new Element("div[text=Add to Cart]"))))},banner:function(c){var a=new Element("span[style=font-size:12px;color:teal;]");if(c.it){a.set({html:'Special price <img id="spp" class="tipzb" src="./img/it/hlp.gif" alt=""/>'})}else{if(c.bnr){var b="";if(c.bnr.sp){b="Special Price"}else{if(c.bnr.cl){b="Clearance"}else{if(c.bnr.bp){b="Best Price"}else{if(c.bnr.cs){b="Ships in: 2-5 Days"}}}}a.set({text:b})}}return a},show:function(b,a){a.stop();this.bigimg.setStyles({opacity:1,top:a.page.y-100+"px",left:a.page.x+100+"px"});a.target.setStyle("opacity",0.3);new Element("img[src="+BIG_IMG+b+".jpg][alt="+b+"]").inject(this.bigimg)},hide:function(a){a.stop();a.target.setStyle("opacity",1);this.bigimg.setStyle("opacity",0).empty()}});var Chat=new Class({initialize:function(a){this.elm=document.id(a);if(!this.elm){return}this.elm.adopt(new Element("a[href=javascript:;]",{events:{click:function(b){b.stop();this.newWindow=window.open("http://livechat.boldchat.com/aid/7567926102590264081/bc.chat?cwdid=1652141698897330397&amp;wdid=1179094119070430670&amp;url="+escape(document.location.href),"Chat","toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=480,height=350");this.newWindow.focus();this.newWindow.opener=window}}}).adopt(new Element("img[src=https://cbi.boldchat.com/aid/7567926102590264081/bc.cbi?cbdid=2455636718262289987&amp;wdid=1179094119070430670][alt=Live chat][style=border:0;]")))}});window.addEvent("domready",function(){new Chat("bchat")});window.addEvent("domready",function(){document.getElements("a").addEvent("focus",function(){this.blur()})});
