var interupt=true;function findPos(a){var c=curtop=0;if(a.offsetParent){do{c+=a.offsetLeft;curtop+=a.offsetTop}while(a=a.offsetParent)}return[c,curtop]}function applyEvent(a,c,e){window.addEventListener?a.addEventListener(c,e,false):a.attachEvent("on"+c,e)}function closeIt(){try{var a=document.getElementById("curropenhl2l")}catch(c){}a&&a.parentNode.removeChild(a);interupt=true}function useHTML(a){var c=document.getElementById("hl2lta");c.value=a;document.getElementById("hl2lr1").style.backgroundColor="#ffffff";document.getElementById("hl2lr2").style.backgroundColor="#86C81A";c.select();return true}function useBBCODE(a){var c=document.getElementById("hl2lta");c.value=a;document.getElementById("hl2lr2").style.backgroundColor="#ffffff";document.getElementById("hl2lr1").style.backgroundColor="#86C81A";c.select();return true}function hl2l(a){var c;if(!a)a=window.event;if(a.which)c=a.which==3;else if(a.button)c=a.button==2;if(!c)return true;closeIt();c=186;var e;if(typeof event!="undefined"){e=event.srcElement;c-=10}else if(this)e=a.currentTarget;a=document.location.href;var b=e.getAttribute("src");if(b.substr(0,4).toLowerCase()!="http"){var d;d=a.substr(a.length-1,1)=="/"?a:a.indexOf("/",9)==-1?a+"/":a.substr(0,a.lastIndexOf("/")+1);var f=d.substr(0,d.indexOf("/",9));b=b.substr(0,1)!="/"?d+b:f+b}else{lastpos=b.indexOf("images/");d=b.substring(0,lastpos)}d=e.getAttribute("alt");if(d=="")d=e.getAttribute("title");d=d?d.replace("'",""):"";thtml="<a href='"+a+"'><img src='"+b+"' alt='"+d+"'></a>";tbbcode="[url="+a+"][img]"+b+"[/img][/url]";a=document.createElement("div");a.style.width="360px";a.style.height=c+"px";a.style.position="absolute";a.style.fontSize="11px";a.style.fontFamily="Verdana";a.style.padding="2px";a.style.margin="2px";texy=findPos(e);a.style.left=150+(texy[0]+e.offsetWidth/2-180)+"px";a.style.top=20+(texy[1]+e.offsetHeight/2-c/2)+"px";if(texy[1]+e.offsetHeight/2-c/2<0)a.style.top="0px";a.style.backgroundColor="#fff";a.setAttribute("id","curropenhl2l");b=document.createElement("div");b.setAttribute("id","lefttopcornerdiv");b.style.cssFloat="left";b.style.styleFloat="left";b.style.backgroundImage="url('"+document.getElementById("ARX_SiteURL_txt").value+"images/left_top_corner_trans.png')";b.style.backgroundRepeat="no-repeat";b.style.width="25px";b.style.height="29px";b.style.display="inline";b.style.zIndex=1;b.style.position="absolute";b.style.top="-1px";b.style.left="-2px";a.appendChild(b);b=document.createElement("div");b.setAttribute("id","topborder_div");b.style.width="333px";b.style.height="10px";b.style.backgroundImage="url('"+document.getElementById("ARX_SiteURL_txt").value+"images/top_middle.gif')";b.style.backgroundRepeat="repeat-x";b.style.display="inline";b.style.zIndex=1;b.style.position="absolute";b.style.left="15px";b.style.top="-1px";a.appendChild(b);b=document.createElement("div");b.setAttribute("id","leftbottomcornerdiv");b.style.cssFloat="left";b.style.styleFloat="left";b.style.backgroundImage="url('"+document.getElementById("ARX_SiteURL_txt").value+"images/left_bottom_corner_trans.png')";b.style.backgroundRepeat="no-repeat";b.style.width="25px";b.style.height="29px";b.style.display="inline";b.style.zIndex=1;b.style.position="absolute";b.style.bottom="-11px";b.style.left="-2px";a.appendChild(b);b=document.createElement("div");b.setAttribute("id","leftborder_div");b.style.width="5px";b.style.height=c-30+"px";b.style.backgroundImage="url('"+document.getElementById("ARX_SiteURL_txt").value+"images/left_middle.gif')";b.style.backgroundRepeat="repeat-y";b.style.display="inline";b.style.zIndex=1;b.style.position="absolute";b.style.left="-1px";b.style.top="18px";b.style.bottom="10px";a.appendChild(b);b=document.createElement("div");b.setAttribute("id","righttopcornerdiv");b.style.cssFloat="right";b.style.styleFloat="right";b.style.backgroundImage="url('"+document.getElementById("ARX_SiteURL_txt").value+"images/top_right_corner_trans.png')";b.style.backgroundRepeat="no-repeat";b.style.width="25px";b.style.height="29px";b.style.display="inline";b.style.zIndex=1;b.style.position="absolute";b.style.top="-2px";b.style.right="-7px";a.appendChild(b);b=document.createElement("div");b.setAttribute("id","righborder_div");b.style.width="10px";b.style.height=c-30+"px";b.style.backgroundImage="url('"+document.getElementById("ARX_SiteURL_txt").value+"images/right_border.gif')";b.style.backgroundRepeat="repeat-y";b.style.display="inline";b.style.zIndex=1;b.style.position="absolute";b.style.right="-1px";b.style.top="18px";b.style.bottom="10px";a.appendChild(b);b=document.createElement("div");b.setAttribute("id","rightbottomcornerdiv");b.style.cssFloat="right";b.style.styleFloat="right";b.style.backgroundImage="url('"+document.getElementById("ARX_SiteURL_txt").value+"images/right_bottom_corner_trans.png')";b.style.backgroundRepeat="no-repeat";b.style.width="25px";b.style.height="29px";b.style.display="inline";b.style.zIndex=1;b.style.position="absolute";b.style.bottom="-11px";b.style.right="-7px";a.appendChild(b);b=document.createElement("div");b.setAttribute("id","bottomborder_div");b.style.width="333px";b.style.height="10px";b.style.backgroundImage="url('"+document.getElementById("ARX_SiteURL_txt").value+"images/bottom_middle.gif')";b.style.backgroundRepeat="repeat-x";b.style.display="inline";b.style.zIndex=1;b.style.position="absolute";b.style.left="15px";b.style.bottom="-1px";a.appendChild(b);b=document.createElement("div");b.style.width="360px";b.style.height=navigator.appName=="Netscape"?c-135+"px":c-125+"px";d=document.createElement("div");d.style.cssFloat="right";d.style.styleFloat="right";d.style.zIndex=2;d.style.position="absolute";d.style.top=c+3-c+"px";d.style.right="5px";d.style.border="1px solid #444444";d.style.backgroundColor="#86C81A";d.style.width="35px";d.style.cursor="pointer";d.innerHTML="<B>Close</B>";b.appendChild(d);applyEvent(d,"click",closeIt);d=document.createElement("div");d.style.width="310px";d.style.height=c-135+"px";d.style.zIndex=2;d.style.position="absolute";d.style.top=c+6-c+"px";d.style.left="5px";d.innerHTML="<font color='#FF8632'><b> If you wish to use this image elsewhere, please select either HTML (for webpages) or BBCODE (for forums) and use the code provided:</b></font><br><br>";b.appendChild(d);a.appendChild(b);c=document.createElement("span");c.style.width="35px";c.style.border="1px solid black";c.style.padding="1px";c.style.backgroundColor="#ffffff";c.style.cursor="pointer";c.style.marginLeft="3px";c.innerHTML="<B>HTML</B>";c.setAttribute("id","hl2lr1");applyEvent(c,"click",function(){useHTML(thtml)});b=document.createElement("span");b.innerHTML="&nbsp;";b.style.width="10px";d=document.createElement("br");d=document.createElement("br");f=document.createElement("span");f.style.width="35px";f.style.border="1px solid black";f.style.padding="1px";f.style.backgroundColor="#86C81A";f.style.cursor="pointer";f.innerHTML="<b>BBCODE</B>";f.setAttribute("id","hl2lr2");applyEvent(f,"click",function(){useBBCODE(tbbcode)});a.appendChild(c);a.appendChild(b);a.appendChild(f);a.appendChild(d);b=document.createElement("textarea");b.setAttribute("cols","40");b.setAttribute("rows","5");b.setAttribute("wrap","soft");b.setAttribute("id","hl2lta");b.style.margin="2px";applyEvent(b,"mousemove",function(){document.getElementById("hl2lta").select()});a.appendChild(b);document.body.appendChild(a);c.checked=true;useHTML(thtml);e.oncontextmenu=function(){if(interupt)return interupt=false};a.oncontextmenu=function(){if(interupt)return interupt=false}}function checkValidSearch(a,c){for(var e=true,b=0;b<a.length;b++){var d=a.charAt(b).toLowerCase();if(c.indexOf(d)==-1){e=false;break}}return e}function removeSearchText(a){if(a.value=="Search Aroxo")a.value="";document.getElementById("txtSearch").className="roundbox"}function insertSearchText(a){if(a.value==""){a.value="Search Aroxo";document.getElementById("txtSearch").className="roundbox_grey"}}function trim_search(a){if(!a||typeof a!="string")return null;return a.replace(/^[\s]+/,"").replace(/[\s]+$/,"").replace(/[\s]{2,}/," ")}function checkSearchKey(){error=0;var a=document.searchfrm.txtSearch,c=a.value;if(c==null)error=1;if(!checkValidSearch(c,'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890./_-" ')){alert("Sorry, but we detected a character in your search term which our system didn't like :(");document.searchfrm.txtSearch.focus();return false}if(a.value.length<2)error=1;if(error==0)return true;else{alert("We need a little more to go on!");document.searchfrm.txtSearch.focus();return false}}function GetXmlHttpObject(){var a=null;try{a=new XMLHttpRequest}catch(c){try{a=new ActiveXObject("Msxml2.XMLHTTP")}catch(e){a=new ActiveXObject("Microsoft.XMLHTTP")}}return a}function showbgcolor(a,c){document.getElementById(a).style.backgroundColor=c}function checkProductConfigure(){var a=0;with(document.product_configure)for(i=0;i<elements.length;i++)if(a!=1)if(elements[i].type=="select-one"&&elements[i].value=="")a=1;return a==0?true:false}function SbtFrm(a){if(checkProductConfigure()){document.product_configure.action=a=="sell"?jsVarServerPath+"index.php?pgtp=stockcreate":jsVarServerPath+"index.php?pgtp=newwantedad";document.product_configure.method="post";document.product_configure.submit()}else alert("Select The Attributes Or Try Other Links")}var alertBox;function Common_AlertBox(a,c,e,b,d,f){head=a;if(document.getElementById(Focuson_TXTname))document.getElementById(Focuson_TXTname).disabled=true;alertBox=new DOMAlert({title:head,text:c,skin:"aroxo",width:d,height:f,ok:{value:true,text:e,onclick:result_AlertBox},cancel:{value:false,text:b,onclick:result_AlertBox}});alertBox.show()}function result_AlertBox(){curObj=result_AlertBox.arguments[0];if(document.getElementById(Focuson_TXTname)){document.getElementById(Focuson_TXTname).disabled=false;document.getElementById(Focuson_TXTname).focus()}curObj.close();return retval=result_AlertBox.arguments[1]}function buttonClick(a){className=a.className;clickStr=className.substr(7,5);newClassName=clickStr=="click"?className.substr(0,7):className+"click";a.className=newClassName}function buttonOut(a){className=a.className;clickStr=className.substr(7,5);if(clickStr=="click"){newClassName=className.substr(0,7);a.className=newClassName}}function buttonColorLGreen(a){a.className="container_lgreen"}function buttonColorGreen(a){a.className="container"}function buttonColorLOrange(a){a.className="container_lorange"}function buttonColorOrange(a){a.className="container_orange"}Focuson_TXTname="news_subscripe_email";function keyupFunction(a){if(a=="Mini"){txtPrdQuestionName="txtPrdQuestionMini";hidCntName="hidCntMini";text123Name="text123Mini";hidDefaultName="hidDefaultMini"}else if(a=="Big"){txtPrdQuestionName="txtPrdQuestion";hidCntName="hidCnt";text123Name="text123";hidDefaultName="hidDefault"}text=document.getElementById(txtPrdQuestionName).value;text=text.replace(/(<([^>]+)>)/ig,"");if(text.length>0&&text.length<200){document.getElementById(hidCntName).value=text.length;document.getElementById(text123Name).innerHTML=document.getElementById(hidDefaultName).value-document.getElementById(hidCntName).value}}function askquestiongreen(a,c){if(c=="Mini"){txtPrdQuestionName="txtPrdQuestionMini";frmPrdQuestionName="frmPrdQuestionMini"}else if(c=="Big"){txtPrdQuestionName="txtPrdQuestion";frmPrdQuestionName="frmPrdQuestion"}text=document.getElementById(txtPrdQuestionName).value;if(text.length>0){if(text.length>200){Common_AlertBox("Ask a question","<div align=center style='margin-top:20px;'>character left only 200. so,cut it remaing word!</div>","","OK",300,40);document.getElementById(txtPrdQuestionName).value=text.substr(0,200);return false}document.getElementById(frmPrdQuestionName).submit()}else if(text.length==0)Common_AlertBox("Ask a question","<div align=center style='margin-top:20px;'>character left only 200</div>","","OK",250,40);else{Common_AlertBox("Ask a question","<div align=center style='margin-top:20px;'>Hmmmm. There\u2019s not a lot for us to go on there...</div>","","OK",350,40);return false}}function getDealBoxData(a,c){a=a+"ajax_dealbox.php?product_id="+c;xmlHttpDealBox=GetXmlHttpObject();xmlHttpDealBox.onreadystatechange=handleDealBoxData;xmlHttpDealBox.open("GET",a,true);xmlHttpDealBox.send(null)}function handleDealBoxData(){if(xmlHttpDealBox.readyState==4){var a=xmlHttpDealBox.responseText;a=eval("("+a+")");document.getElementById("xboxcontent").className="xboxcontent_org";document.getElementById("xboxcontent").style.backgroundColor="#FF6600";document.getElementById("process_image").style.display="none";document.getElementById("org_bx_title").className="org_bx_title";var c=a.length;if(c=="undefine")c=a.__count__;for(i=0;i<c;i++)if(a[i].cash_box_id){var e=document.getElementById("varServerPath").value,b=document.createTextNode("\u00a3 "+a[i].price),d=a[i].retailer_logo,f=a[i].retailer_logo;f=document.createElement("img");f.className="or_bx_logo_img";f.title=a[i].retailer_full;f.src=d;f.alt=a[i].retailer_full+" "+a[i].product_id;d=a[i].iframe_url;var g=a[i].price_type;g=document.createElement("img");g.src=e+"/images/go1.gif";g.alt=a[i].retailer_full+" "+a[i].product_id;e=document.createElement("a");e.href=d;e.target="_blank";e.appendChild(g);d=document.getElementById("deal_box").insertRow(i);g=document.createElement("td");g.className="or_bx_price_td";g.style.width="220";g.appendChild(b);d.appendChild(g);b=document.createElement("td");b.className="or_bx_logo_td";b.appendChild(f);d.appendChild(b);b=document.createElement("td");b.className="or_bx_button_td";b.style.width="25";b.align="right";b.valign="middle";b.appendChild(e);d.appendChild(b)}else{b=document.createTextNode(a[i]);d=document.getElementById("deal_box").insertRow(i);f=document.createElement("td");f.colSpan=3;f.className="or_bx_pr_td";f.appendChild(b);d.appendChild(f)}}}if(typeof DOM=="undefined")DOM={};DOM.createElement=function(a,c,e,b){a=document.createElement(a);if(!a)return false;for(var d in c)a[d]=c[d];if(typeof e=="string"&&!b)a.appendChild(document.createTextNode(e));else if(typeof e=="string"&&b)a.innerHTML=e;else typeof e=="object"&&a.appendChild(e);return a};DOM.clearElement=function(a){a=this.getElement(a);if(!a)return false;for(;a.childNodes.length;)a.removeChild(a.childNodes[0]);return true};DOM.removeElement=function(a){return(a=this.getElement(a))?a.parentNode.removeChild(a)?true:false:false};DOM.replaceContent=function(a,c,e){a=this.getElement(a);if(!a)return false;this.clearElement(a);if(typeof c=="string"&&!e)a.appendChild(document.createTextNode(c));else if(typeof c=="string"&&e)a.innerHTML=c;else typeof c=="object"&&a.appendChild(c)};DOM.getElement=function(a){if(typeof a=="undefined")return false;else if(typeof a=="string")return(a=document.getElementById(a))?typeof a.appendChild!="undefined"?a:false:false;else return typeof a.appendChild!="undefined"?a:false};DOM.appendChildren=function(a,c){a=this.getElement(a);if(!a)return false;if(typeof c!="object")return false;for(var e=0;e<c.length;e++){var b=c[e];if(typeof b=="string")a.appendChild(document.createTextNode(b));else typeof b=="object"&&a.appendChild(b)}};DOM.createSelect=function(a,c,e){a=this.createElement("select",a);for(var b in c){var d={id:b};if(b==e)d.selected="selected";a.appendChild(this.createElement("option",d,c[b]))}return a};DOM.getPos=function(a){var c=a=this.getElement(a),e=0;if(c.offsetParent)for(;c.offsetParent;){e+=c.offsetLeft;c=c.offsetParent}else if(c.x)e+=c.x;c=a;a=0;if(c.offsetParent)for(;c.offsetParent;){a+=c.offsetTop;c=c.offsetParent}else if(c.y)a+=c.y;return{x:e,y:a}};function submitProdPulsePage(){var a=document.getElementById("PageForm"),c=a.productId.value,e=a.type.value,b=a.PageNumber.value;a=a.appUrl.value;xmlHttpChkCaptcha=GetXmlHttpObject();if(xmlHttpChkCaptcha==null)alert("Your browser does not support AJAX!");else{c=a+"getprodpulseurl.php?product_id="+c+"&type="+e+"&page="+b;xmlHttpChkCaptcha.onreadystatechange=handleProdPulsePage;xmlHttpChkCaptcha.open("GET",c,true);xmlHttpChkCaptcha.send(null)}}function handleProdPulsePage(){if(xmlHttpChkCaptcha.readyState==4){var a=xmlHttpChkCaptcha.responseText;document.getElementById("PageForm").action=a;document.getElementById("PageForm").submit()}}function showbgcolor(a,c){document.getElementById(a).style.backgroundColor=c}function chgSelectColor(a){document.getElementById(a).style.color="#FC6E16"}function viewMoreMake(){document.getElementById("more_make_box").style.display="block";document.getElementById("less_make_box").style.display="none"}function hideMoreMake(){document.getElementById("more_make_box").style.display="none";document.getElementById("less_make_box").style.display="block"}function showregform(){xmlHttpChkAvail=GetXmlHttpObject();if(xmlHttpChkAvail==null)alert("Your browser does not support AJAX!");else{var a=document.getElementById("ARX_SiteURL_txt").value+"quickregistration.php";xmlHttpChkAvail.onreadystatechange=showquickregform;xmlHttpChkAvail.open("GET",a,true);xmlHttpChkAvail.send(null)}}function showquickregform(){if(xmlHttpChkAvail.readyState==4){var a=xmlHttpChkAvail.responseText;a!=""&&Common_AlertBox("Create account",a,"","",500,250)}}function closequickregform(){alertBox.hide()};