function SimpleSwapSetup(){var x=document.getElementsByTagName("img");for(var i=0;i<x.length;i++){var oversrc=x[i].getAttribute("oversrc");if(!oversrc){continue}x[i].oversrc_img=new Image();x[i].oversrc_img.src=oversrc;x[i].onmouseover=new Function("SimpleSwap(this,'oversrc');");var putback=x[i].getAttribute("origsrc")?"origsrc":"";x[i].onmouseout=new Function("SimpleSwap(this,'"+putback+"');");if(x[i].parentNode.getAttribute("id")=="proceedToCheckoutLink"){x[i].onmouseup=new Function("this.onmouseout = '';if (this.parentNode.getAttribute('class') == null) {this.parentNode.setAttribute('class', this.parentNode.getAttribute('id'));this.parentNode.removeAttribute('id');this.parentNode.setAttribute('hrefbkp', this.parentNode.getAttribute('href')); this.parentNode.removeAttribute('href');}")}x[i].setAttribute("origsrcbkp",x[i].src)}}function SimpleSwap(el,which){el.src=el.getAttribute(which||"origsrcbkp")}function SimpleSwapAttr(el,which,attr){el.setAttribute(attr,el.getAttribute(which||(attr+"bkp")));el.removeAttribute(which||(attr+"bkp"))}function ResetOnMouseOut(el){var putback=el.getAttribute("origsrcbkp")?"origsrcbkp":"";el.onmouseout=new Function("SimpleSwap(this,'"+putback+"');");SimpleSwapAttr(el.parentNode,"","href");SimpleSwapAttr(el.parentNode,"class","id");SimpleSwap(el,putback)}var PreSimpleSwapOnload=(window.onload)?window.onload:function(){};window.onload=function(){PreSimpleSwapOnload();SimpleSwapSetup()};
