var oxid={nav:{timeout:400,activem:null,timerid:null,elclass:"",opclass:" open",open:function(a){oxid.nav.stoptm();oxid.nav.setclass(oxid.nav.activem,false);oxid.nav.activem=this.id;oxid.nav.setclass(oxid.nav.activem,true)},close:function(){oxid.nav.setclass(oxid.nav.activem,false)},starttm:function(){oxid.nav.timerid=window.setTimeout(oxid.nav.close,oxid.nav.timeout)},stoptm:function(){if(oxid.nav.timerid){window.clearTimeout(oxid.nav.timerid);oxid.nav.timerid=null}},setclass:function(c,b){var a=document.getElementById(c);if(a){if(b){oxid.nav.elclass=a.parentNode.className;a.parentNode.className+=oxid.nav.opclass}else{a.parentNode.className=oxid.nav.elclass}}}},catnav:function(c){var e=document.getElementById(c);if(e){var d=0;for(var b=0;b<e.childNodes.length;b++){if(e.childNodes[b].tagName&&e.childNodes[b].tagName.toUpperCase()=="LI"){var a=e.childNodes[b];for(var f=0;f<a.childNodes.length;f++){if(a.childNodes[f].tagName&&a.childNodes[f].tagName.toUpperCase()=="A"){a.childNodes[f].onmouseover=a.childNodes[f].onfocus=oxid.nav.open;a.childNodes[f].onmouseout=a.childNodes[f].onblur=oxid.nav.starttm;d++}if(a.childNodes[f].tagName&&a.childNodes[f].tagName.toUpperCase()=="UL"){a.childNodes[f].onmouseover=a.childNodes[f].onfocus=oxid.nav.stoptm;a.childNodes[f].onmouseout=a.childNodes[f].onblur=oxid.nav.starttm}}}}if(d>0){document.onclick=oxid.nav.close}}},topnav:function(d,b){var a=document.getElementById(d);if(a){a.onmouseover=a.onfocus=oxid.nav.open;a.onmouseout=a.onblur=oxid.nav.starttm}var c=document.getElementById(b);if(c){c.onmouseover=c.onfocus=oxid.nav.stoptm;c.onmouseout=c.onblur=oxid.nav.starttm}document.onclick=oxid.nav.close},blank:function(b){var a=document.getElementById(b);if(a){a.setAttribute("target","_blank")}},search:function(c,d){var b=document.getElementById(c);var a=document.getElementById(d);if(b&&a&&a.value.length){b.submit()}},popup:{load:function(){oxid.popup.setClass("wait","popup load on","on")},show:function(){oxid.popup.setClass("popup","popup on","on")},hide:function(a){oxid.popup.setClass(a?a:"popup","popup","")},setClass:function(e,a,c){var b=document.getElementById("mask");var d=document.getElementById(e);if(b&&d){b.className=c;d.className=a}},addShim:function(){var b,a=document.getElementById("mask");if(a){b=document.createElement("iframe");b.setAttribute("src","javascript:false;");a.appendChild(b)}},open:function(c,a,d,e){if(c!==null&&c.length>0){var b="status=yes,scrollbars=no,menubar=no,width="+a+",height="+d+(e?",resizable=yes":"");window.open(c,"_blank",b)}},compare:function(a){oxid.popup.open(a,620,400,true)},zoom:function(){oxid.popup.setClass("zoom","popup zoom on","on")},addResizer:function(c,b,a,d){var e=document.getElementById(c);if(e){e.onload=function(f){if(this.tagName.toUpperCase()=="IMG"){oxid.popup.resize(b,this.width+a,this.height+d)}}}},resize:function(f,d,a){if(d===0&&a===0){return}var e=document.getElementById(f);var c=d;var b=b;if(e){if(typeof(window.innerWidth)=="number"){c=window.innerWidth;b=window.innerHeight}else{if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){c=document.documentElement.clientWidth;b=document.documentElement.clientHeight}}if(d>c){d=c}if(a>b){a=b}e.style.width=d+24+"px";e.style.height=a+10+"px";e.style.marginLeft="-"+Math.round(d/2)+"px";if(window.XMLHttpRequest){e.style.top="10px";e.style.marginTop="0px"}else{e.style.marginTop="-"+Math.round(a/2)+"px"}}}},tags:{input:null,select:function(a){oxid.tags.input.value+=" "+this.innerHTML;this.className="sel";this.removeAttribute("onclick")},addSelect:function(e,b){var d=document.getElementById(e);var a=document.getElementById(b);if(d&&a){oxid.tags.input=a;for(var c=0;c<d.childNodes.length;c++){if(d.childNodes[c].tagName&&d.childNodes[c].tagName.toUpperCase()=="A"){d.childNodes[c].onclick=oxid.tags.select;d.childNodes[c].removeAttribute("href")}}}}},form:{send:function(b){var a=document.forms[b];if(a){a.submit()}},reload:function(c,d,a,e){if(c){return}var b=document.forms[d];if(b){b.elements.cl.value=a;b.elements.fnc.value=e;b.submit()}},clear:function(c,d,e){if(c){return}var b=document.forms[d].elements,a;if(b){for(a=0;a<b.length;a++){if(e.test(b[a].name)){if(b[a].tagName.toUpperCase()==="INPUT"){b[a].value=""}if(b[a].tagName.toUpperCase()==="SELECT"){b[a].item(0).selected=true}}}}},select:function(c,a){var b=document.getElementsByName(c);if(b){b[a].checked="true"}}},showhide:function(c,a){var b=document.getElementById(c);if(b){b.style.display=a?"":"none"}},focus:function(b){var a=document.getElementById(b);if(a){a.focus()}},image:function(c,a){var b=document.getElementById(c);if(b){b.src=a}},password:function(e,c,b){var d=document.getElementById(e);var a=document.getElementById(c);if(d){d.focus();a.style.display=(d.value===b)?"none":""}},checkAll:function(d,a){if(document.getElementsByTagName){var b=document.getElementsByTagName("input");for(var c=0;c<b.length;c=c+1){if(b[c].type=="checkbox"&&b[c].checked!=d.checked&&a==b[c].name.split("[")[0]){b[c].checked=d.checked}}}}};function showReview(){document.getElementById("write_review").style.display="block";document.getElementById("write_new_review").style.display="none";if(arguments.length==1){var b=document.getElementById("rating");if(b!==null){if(b.artrating){b.artrating.value=arguments[0]}else{if(b.recommlistrating){b.recommlistrating.value=arguments[0]}}var a=arguments[0]*20;document.getElementById("current_rate").style.width=a+"%"}}}function setSellList(b){var a=document.getElementById("wlist");if(a!==null){a.href=a.href+"&"+b.name+"="+b.value}var c=document.getElementById("slist");if(c!==null){c.href=c.href+"&"+b.name+"="+b.value}};