function proListTypesCut(a){for(var b=document.getElementById("mainLeftMidB").getElementsByTagName("div"),c=0;c<b.length;c++)if(b[c].className=="proTypesId")b[c].style.display="none";document.getElementById("proTypesId_"+a).style.display="block"}function proTitleTypesCut(a,zz){if(zz!='1'){for(var b=document.getElementById("titleAs").getElementsByTagName("a"),c=0;c<b.length;c++)b[c].className="off";document.getElementById("titleAs_"+a).className="on"}else{document.getElementById("titleAs_"+a).className="newHotTags"}} function isNumEmpty(a,b){if(a==null||a==""||isNaN(a)){alert(b);return true}else return false}function btn_select_go(a){var b=document.getElementById("goBtnClicked").value;if(!isNumEmpty(b,"You must enter a number!"))window.location.href=a+b+".html"}function proAllChange(a){proTitleTypesCut(a);proListTypesCut(a)} (function(a){a.fn.easySlider=function(b){b=a.extend({prevId:"prevBtn",prevText:"",nextId:"nextBtn",nextText:"",controlsShow:true,controlsBefore:"",controlsAfter:"",controlsFade:true,firstId:"firstBtn",firstText:"First",firstShow:false,lastId:"lastBtn",lastText:"Last",lastShow:false,vertical:false,speed:800,auto:true,pause:5E3,continuous:false},b);this.each(function(){function c(k,l){var g=f;switch(k){case "next":f=g>=h?b.continuous?0:h:f+1;break;case "prev":f=f<=0?b.continuous?h:0:f-1;break;case "first":f= 0;break;case "last":f=h;break;default:break}g=Math.abs(g-f);var m=g*b.speed;if(b.vertical){p=f*n*-1;a("ul",d).animate({marginTop:p},m)}else{p=f*i*-1;a("ul",d).animate({marginLeft:p},m)}if(!b.continuous&&b.controlsFade){if(f==h){a("a","#"+b.nextId).hide();a("a","#"+b.lastId).hide()}else{a("a","#"+b.nextId).show();a("a","#"+b.lastId).show()}if(f==0){a("a","#"+b.prevId).hide();a("a","#"+b.firstId).hide()}else{a("a","#"+b.prevId).show();a("a","#"+b.firstId).show()}}l&&clearTimeout(j);if(b.auto&&k=="next"&& !l)j=setTimeout(function(){c("next",false)},g*b.speed+b.pause)}var d=a(this),e=a("li",d).length,i=a("li",d).width(),n=a("li",d).height();d.width(i);d.height(n);d.css("overflow","hidden");var h=e-1,f=0;a("ul",d).css("width",e*i);b.vertical||a("li",d).css("float","left");if(b.controlsShow){e=b.controlsBefore;if(b.firstShow)e+='<span id="'+b.firstId+'"><a href="javascript:void(0);">'+b.firstText+"</a></span>";e+=' <span id="'+b.prevId+'"><a href="javascript:void(0);">'+b.prevText+"</a></span>";e+=' <span id="'+ b.nextId+'"><a href="javascript:void(0);">'+b.nextText+"</a></span>";if(b.lastShow)e+=' <span id="'+b.lastId+'"><a href="javascript:void(0);">'+b.lastText+"</a></span>";e+=b.controlsAfter;a(d).after(e)}a("a","#"+b.nextId).click(function(){c("next",true)});a("a","#"+b.prevId).click(function(){c("prev",true)});a("a","#"+b.firstId).click(function(){c("first",true)});a("a","#"+b.lastId).click(function(){c("last",true)});var j;if(b.auto)j=setTimeout(function(){c("next",false)},b.pause);if(!b.continuous&& b.controlsFade){a("a","#"+b.prevId).hide();a("a","#"+b.firstId).hide()}processPng(b.prevId,"banner_left.png");processPng(b.nextId,"banner_right.png");return false})}})(jQuery); function processPng(a,b){var c=document.getElementById(a).getElementsByTagName("a")[0];c.style.background="url(images/"+b+") no-repeat";c.style.cursor="pointer";c.nodeName=="IMG"?c.src.toLowerCase().indexOf(".png")>-1&&(c.style.background="none",c.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+c.src+"', sizingMethod='image')",c.src=""):c.style.backgroundImage.toLowerCase().indexOf(".png")>-1&&(c.origBg=c.origBg?c.origBg:c.currentStyle.backgroundImage.toString().replace('url("', "").replace('")',""),c.repeat=c.currentStyle.backgroundRepeat=="no-repeat"?"crop":"scale",c.runtimeStyle.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+c.origBg+"', sizingMethod='"+c.repeat+"')",c.runtimeStyle.backgroundImage="none")}function headerChange(a){for(var b=document.getElementById("warpHeader").getElementsByTagName("a"),c=0;c<b.length;c++)b[c].className="warp_a";b[a].className="warp_home_a_on"} function showAll(){document.getElementById("showAll").style.display="block"}function hiddAll(){document.getElementById("showAll").style.display="none";for(var a=document.getElementById("showFen").getElementsByTagName("div"),b=0;b<a.length;b++)if(a[b].className=="hidd_ul3")a[b].style.display="none"} function show(a,b){document.getElementById("showAll").style.display="block";var c=document.getElementById("showFen");c.style.top=b+"px";c.style.display="block";c=document.getElementById("showFen").getElementsByTagName("div");for(var d=0;d<c.length;d++)if(c[d].className=="hidd_ul3")c[d].style.display="none";document.getElementById(a).style.display="block"}function hidd(a){document.getElementById(a).style.display="none"}function showOne(a){document.getElementById(a).style.display="block"} function hiddOne(a){document.getElementById(a).style.display="none"}function imgPageToFirst(){imgPageAllHidden();var a=document.getElementById("links_imgList_index");a.value=1;imgInnerSpan();imgPageShow(a.value)}function imgPageToLast(){imgPageAllHidden();var a=document.getElementById("links_imgList_index"),b=document.getElementById("links_imgList_all");a.value=b.value;imgInnerSpan();imgPageShow(b.value)} function imgPageToNext(){imgPageAllHidden();var a=parseInt(document.getElementById("links_imgList_index").value),b=parseInt(document.getElementById("links_imgList_all").value);if(a<b){a+=1;document.getElementById("links_imgList_index").value=a}imgInnerSpan();imgPageShow(a)} function imgPageToProview(){imgPageAllHidden();var a=parseInt(document.getElementById("links_imgList_index").value);parseInt(document.getElementById("links_imgList_all").value);if(a>1){a-=1;document.getElementById("links_imgList_index").value=a}imgInnerSpan();imgPageShow(a)}function imgPageAllHidden(){for(var a=document.getElementById("divImageTable").getElementsByTagName("table"),b=0;b<a.length;b++)if(a[b].className=="links_imgList")a[b].style.display="none"} function imgPageShow(a){document.getElementById("links_imgList"+a).style.display=""}function imgInnerSpan(){document.getElementById("imgSpan").innerHTML=document.getElementById("links_imgList_index").value}function textPageToFirst(){textPageAllHidden();var a=document.getElementById("links_textList_index");a.value=1;textInnerSpan();textPageShow(a.value)} function textPageToLast(){textPageAllHidden();var a=document.getElementById("links_textList_index"),b=document.getElementById("links_textList_all");a.value=b.value;textInnerSpan();textPageShow(b.value)}function textPageToNext(){textPageAllHidden();var a=parseInt(document.getElementById("links_textList_index").value),b=parseInt(document.getElementById("links_textList_all").value);if(a<b){a+=1;document.getElementById("links_textList_index").value=a}textInnerSpan();textPageShow(a)} function textPageToProview(){textPageAllHidden();var a=parseInt(document.getElementById("links_textList_index").value);parseInt(document.getElementById("links_textList_all").value);if(a>1){a-=1;document.getElementById("links_textList_index").value=a}textInnerSpan();textPageShow(a)}function textPageAllHidden(){for(var a=document.getElementById("divImageTable").getElementsByTagName("ul"),b=0;b<a.length;b++)a[b].style.display="none"} function textPageShow(a){document.getElementById("links_strList_"+a).style.display="block"}function textInnerSpan(){document.getElementById("textSpan").innerHTML=document.getElementById("links_textList_index").value}function linkPageGo(a){var b=document.getElementById("page").value;if(isNaN(b))alert("Input error, please enter a number!");else window.location.href=a+b+".html"}function addDownloadCount(a){$.post(a,null,function(){})} function addPayCount(a,b,c,d){var e=$("input[name=pay]:checked").val();a+="&pid="+b+"&pname="+c+"&price="+d+"&type="+e;$.post(a,null,function(i){$("#item_number").val("Order Code: T"+i);e==1&&document.paypal_payment_info.submit()});e==2&&document.swregForm.submit()} this.sitemapstyler=function(){var a=document.getElementById("sitemap");if(a){this.listItem=function(c){if(c.getElementsByTagName("ul").length>0){var d=c.getElementsByTagName("ul")[0];d.style.display="block";var e=document.createElement("span");e.className="collapsed";e.onclick=function(){d.style.display=d.style.display=="none"?"block":"none";e.className=e.className=="collapsed"?"expanded":"collapsed"};c.appendChild(e)}};a=a.getElementsByTagName("li");for(var b=0;b<a.length;b++)listItem(a[b])}}; window.onload=sitemapstyler;function chkClick(a){var b=a.id.split("_")[1];if(a.checked==true||a.checked=="checked")document.getElementById("textfield_"+b)&&document.getElementById("textfield_"+b).focus();else if(document.getElementById("textfield_"+b))document.getElementById("textfield_"+b).value=""}function inputKeyUp(a){var b=a.id.split("_")[1];if(a.value!="")if(document.getElementById("checkbox_"+b))document.getElementById("checkbox_"+b).checked="checked"|true} function loadBannerBtn(){$("#slider").easySlider({controlsBefore:'<p id="controls">',controlsAfter:"</p>",auto:true,continuous:true})};