var Tab={Sel:function(N){var P=1,O=true,M,I=N.replace(/Tab([0-9]+)/,"");var K=I+"Tab",L=document.getElementById(N);var J=document.getElementById(N+"Area");while(O){O=document.getElementById(K+P);if(O){if(L&&O.id!=L.id){O.className=""}M=document.getElementById(K+(P++)+"Area");if(M&&J&&M.id!=J.id){M.className=((I!="")?K+" ":"")+"offTab"}}}if(L){if(J){J.className=((I!="")?K+" ":"")+"selTab"}L.className="selTab";L.blur()}return false},Init:function(H,F){var I,J,G=true;F=(F&&F.length>0)?F:"click";for(I=0;I<H.length;I++){J=1;G=true;while(G){G=document.getElementById(H[I]+"Tab"+(J++));if(G){G["on"+F]=function(){return Tab.Sel(this.id)}}}}}};function cssToggle(E,F){if(E&&E.tagName){E.blur()}var D=$("#"+F);if(D){if(D.css("display")!="none"||D.css("display")==""){D.css({display:"none"})}else{D.css({display:"block"})}}return false}var backdropImg=[],backdropTimer=[];function backdrop(L,O,M,J,P){var K=$("#"+L);if(K.length!=1||!backdropImg[O]||!backdropImg[O].list||backdropImg[O].list.length<1){return }M=(M&&M===parseInt(M)&&M>1000)?M:10000;var I=backdropImg[O].list[backdropImg[O].idx][0];if(!I){I=backdropImg[O].list[backdropImg[O].idx]}if(!I){I="#fff"}var N=backdropImg[O].list[backdropImg[O].idx][1];if(!N){N="#000"}if(P){K.css({background:I,color:N})}if(backdropImg[O].list.length<2){return }if(P&&typeof (J)=="string"&&J.length>0){setTimeout(J+"("+backdropImg[O].idx+");",10)}backdropImg[O].idx=(backdropImg[O].idx>=backdropImg[O].list.length-1)?0:backdropImg[O].idx+1;backdropTimer[backdropImg[O].idx]=setTimeout("backdrop('"+L+"', "+O+", "+M+((typeof (J)=="string"&&J.length>0)?", '"+J+"'":"")+", true);",M)}function findPos(K){var L,N,H=0,I=0,J=document,M=true;K=(K.jquery)?K:((typeof (K)=="object")?$(K):$("#"+K));if(K.length!=1||!K.attr("offsetParent")){return{x:0,y:0}}L=K[0];while(M){H+=L.offsetLeft;if(!L.offsetParent){M=false}L=L.offsetParent}M=true;N=K[0];while(M){I+=N.offsetTop;if(!N.offsetParent){M=false}N=N.offsetParent}return{x:H,y:I}}function setMyCookie(I,H,G){var J=I+"="+H+";";if(G){var F=new Date();F.setTime(F.getTime()+(1000*60*60*24*G));J+=" expires="+F.toUTCString()+";"}J+=" path=/";document.cookie=J}function getMyCookie(J){var H=J+"=";var F=document.cookie.split(";");for(var I=0;I<F.length;I++){var G=F[I];while(G.charAt(0)==" "){G=G.substring(1,G.length)}if(G.indexOf(H)==0){return G.substring(H.length,G.length)}}return""}function oWindow(X,N,R,W,M,V,S,Q,T,O){X=X||"/";if(X.toLowerCase()=="blank"){X=""}V=V||"buttons";if(!T){N=(N==parseInt(N))?N:500;R=(R==parseInt(R))?R:500;var P=oCenter(N,R);W=(W==parseInt(W))?W:0;M=(M==parseInt(M))?M:0;S=(S=="center")?P[0]:(S==parseInt(S))?S:50;Q=(Q=="center")?P[1]:(Q==parseInt(Q))?Q:50;O=(O)?"dependent=1":"";T="toolbar=0,location=0,directories=0,status=0,menubar=0,resizable="+W+",scrollbars="+M+O+",width="+N+",height="+R+",left="+S+",top="+Q}var U=window.open(X,V,T);U.focus()}function oCenter(D,C){return new Array((screen.width-D)/2,(((screen.height-C)/2)-20))}function flyMenu(){var M,H,J,K,L=$("a.flydown"),N=$("a.flyup");for(M=0;M<L.length;M++){H=null;K=L[M].id.split("_");if(K&&K.length>1&&(K[1]=="fly"||(K[1]==parseInt(K[1])&&K[2]==parseInt(K[2])))){if(K[3]&&K[3]==parseInt(K[3])){H=parseInt(K[3])}else{if(K[1]=="fly"&&K[2]&&K[2]==parseInt(K[2])){H=parseInt(K[2])}}J=$(L[M]).parent();if(H){H=((K[2]&&parseInt(K[2])>J.attr("offsetWidth")&&parseInt($("#"+K[0]).css("width"))>J.attr("offsetWidth"))?(J.attr("offsetWidth")-parseInt($("#"+K[0]).css("width"))):((K[2]==parseInt(K[2]))?K[2]:0))}if(K[1]&&K[1]==parseInt(K[1])&&K[2]&&K[2]==parseInt(K[2])){$(L[M]).after('<span id="'+K[0]+'" class="flybox flydown" style="top:'+J.attr("offsetHeight")+"px; width:"+K[1]+"px; height:"+K[2]+"px"+((K[3]&&K[3]==parseInt(K[3]))?"; margin-left:-"+K[3]+"px":"")+'"><div class="flyload" style="text-align:center; margin-top:50px"><img src="/media/page_loading.gif" width="187" height="105" alt="Loading" /><br />Please Wait&hellip;</div></span>')}else{$("#"+K[0]).css({top:J.outerHeight()+"px"})}$(L[M].parentNode).hover(function(){if(document.all&&!window.XMLHttpRequest){$("select").css({visibility:"hidden"});$("#site_header select").css({visibility:"visible"})}K=$(this).find("a:first-child").attr("id").split("_");J=$("#"+K[0]);if($("#"+K[0]+" div").hasClass("flyload")){J.load(this.href,null,function(){$("#"+K[0]).css({width:K[1]+"px",whiteSpace:"normal"})})}J.css({display:"block"});$(this).addClass("goFocus").removeClass("goBlur")},function(){if(document.all&&!window.XMLHttpRequest){$("select").css({visibility:"visible"})}K=$($(this).children("a")[0]).attr("id").split("_");if(K){$("#"+K[0]).css({display:"none"})}$(this).addClass("goBlur").removeClass("goFocus")})}}for(M=0;M<N.length;M++){H=null;K=N[M].id.split("_");if(K&&K.length>1&&(K[1]=="fly"||(K[1]==parseInt(K[1])&&K[2]==parseInt(K[2])))){if(K[3]&&K[3]==parseInt(K[3])){H=parseInt(K[3])}else{if(K[1]=="fly"&&K[2]&&K[2]==parseInt(K[2])){H=parseInt(K[2])}}J=$(N[M]).parent();if(H){H=((K[2]&&parseInt(K[2])>J.attr("offsetWidth")&&parseInt($("#"+K[0]).css("width"))>J.attr("offsetWidth"))?(J.attr("offsetWidth")-parseInt($("#"+K[0]).css("width"))):((K[2]==parseInt(K[2]))?K[2]:0))}if(K[1]&&K[1]==parseInt(K[1])&&K[2]&&K[2]==parseInt(K[2])){$(N[M]).after('<div id="'+K[0]+'" class="flybox flyup" style="bottom:'+J.attr("offsetHeight")+"px; width:"+K[1]+"px; height:"+K[2]+"px"+((K[3]&&K[3]==parseInt(K[3]))?"; margin-left:-"+K[3]+"px":"")+'"><div class="flyload" style="text-align:center; margin-top:50px"><img src="/media/page_loading.gif" width="187" height="105" alt="Loading" /><br />Please Wait&hellip;</div></div>')}else{var I=(document.all&&!window.XMLHttpRequest)?-1:0;$("#"+K[0]).css({bottom:(J.outerHeight()+I)+"px"})}$(N[M].parentNode).hover(function(){if(document.all&&!window.XMLHttpRequest){$("select").css({visibility:"hidden"});$("#site_header select").css({visibility:"visible"})}K=$(this).find("a:first-child").attr("id").split("_");J=$("#"+K[0]);if($("#"+K[0]+" div").hasClass("flyload")){J.load(this.href,null,function(){$("#"+K[0]).css({width:K[1]+"px",whiteSpace:"normal"})})}J.css({display:"block"});$(this).addClass("goFocus").removeClass("goBlur")},function(){if(document.all&&!window.XMLHttpRequest){$("select").css({visibility:"visible"})}K=$($(this).children("a")[0]).attr("id").split("_");if(K){$("#"+K[0]).css({display:"none"})}$(this).addClass("goBlur").removeClass("goFocus")})}}}function InitASPOnlyUser(){var B=getMyCookie("ASPUserStatus");if(B=="1"){$(".aspItem").removeClass("aspItem")}}function UpdateCountry(){var C=getMyCookie("country");if(C=="LA"){$("#country").html("Latin America");$("#fly1_fly").attr("href","http://www.acla.acer.com/");$("#fly3_fly").attr("href","http://www.acla.acer.com/acer/buy.do");$("#left_shop").attr("href","http://www.acla.acer.com/");$("#left_buy").attr("href","http://www.acla.acer.com/acer/buy.do");$("#foot_about").attr("href","http://www.acla.acer.com/acer/about_us.do");$("#foot_contact").attr("href","http://www.acla.acer.com/acer/contact_us.do");$("#foot_news").attr("href","http://www.acla.acer.com/acer/news.do");$("#foot_partner").attr("href","http://www.acla.acer.com/acer/partner.do");$("#foot_privacy").attr("href","http://www.acla.acer.com/acer/privacy.do");$("#foot_disclaimer").attr("href","http://www.acla.acer.com/acer/disclaimer.do");$("#foot_hot_buys").attr("href","http://www.acla.acer.com/acer/hot_buys.do");$("#foot_product_cat").attr("href","http://www.acla.acer.com/acer/products.do");$("#foot_technology").attr("href","http://www.acla.acer.com/acer/technology.do")}else{if(C=="BR"){$("#country").html("Brasil");$("#fly1_fly").attr("href","http://br.acer.com/");$("#fly3_fly").attr("href","http://br.acer.com/acer/buy.do");$("#left_shop").attr("href","http://br.acer.com/");$("#left_buy").attr("href","http://br.acer.com/acer/buy.do");$("#foot_about").attr("href","http://br.acer.com/acer/about_us.do");$("#foot_contact").attr("href","http://br.acer.com/acer/contact_us.do");$("#foot_news").attr("href","http://br.acer.com/acer/news.do");$("#foot_partner").attr("href","http://br.acer.com/acer/partner.do");$("#foot_privacy").attr("href","http://br.acer.com/acer/privacy.do");$("#foot_disclaimer").attr("href","http://br.acer.com/acer/disclaimer.do");$("#foot_hot_buys").attr("href","http://br.acer.com/acer/hot_buys.do");$("#foot_product_cat").attr("href","http://br.acer.com/acer/products.do");$("#foot_technology").attr("href","http://br.acer.com/acer/technology.do")}else{if(C=="CA"){var D=getMyCookie("language");if(D=="FR"){$("#country").html("Canada (French)")}else{$("#country").html("Canada (English)");D="en"}D=D.toLowerCase();$("#fly1_fly").attr("href","http://www.acer.ca/"+D);$("#fly3_fly").attr("href","http://www.acer.ca/acer/buy.do");$("#left_shop").attr("href","http://www.acer.ca/"+D);$("#left_buy").attr("href","http://www.acer.ca/acer/buy.do");$("#foot_about").attr("href","http://www.acer.ca/acer/about_us.do");$("#foot_contact").attr("href","http://www.acer.ca/acer/contact_us.do");$("#foot_news").attr("href","http://www.acer.ca/acer/news.do");$("#foot_partner").attr("href","http://www.acer.ca/acer/partner.do");$("#foot_privacy").attr("href","http://www.acer.ca/acer/privacy.do");$("#foot_disclaimer").attr("href","http://www.acer.ca/acer/disclaimer.do");$("#foot_hot_buys").attr("href","http://www.acer.ca/acer/hot_buys.do");$("#foot_product_cat").attr("href","http://www.acer.ca/acer/products.do");$("#foot_technology").attr("href","http://www.acer.ca/acer/technology.do")}else{if(C=="MX"){$("#country").html("Mexico");$("#fly1_fly").attr("href","http://www.acer.com.mx/");$("#fly3_fly").attr("href","http://www.acer.com.mx/acer/buy.do");$("#left_shop").attr("href","http://www.acer.com.mx/");$("#left_buy").attr("href","http://www.acer.com.mx/acer/buy.do");$("#foot_about").attr("href","http://www.acer.com.mx/acer/about_us.do");$("#foot_contact").attr("href","http://www.acer.com.mx/acer/contact_us.do");$("#foot_news").attr("href","http://www.acer.com.mx/acer/news.do");$("#foot_partner").attr("href","http://www.acer.com.mx/acer/partner.do");$("#foot_privacy").attr("href","http://www.acer.com.mx/acer/privacy.do");$("#foot_disclaimer").attr("href","http://www.acer.com.mx/acer/disclaimer.do");$("#foot_hot_buys").attr("href","http://www.acer.com.mx/acer/hot_buys.do");$("#foot_product_cat").attr("href","http://www.acer.com.mx/acer/products.do");$("#foot_technology").attr("href","http://www.acer.com.mx/acer/technology.do")}}}}}$(document).ready(function(){$("img").attr("title",function(){return this.alt});$("form.search").bind("submit",function(){if(this.text){this.text.value=this.text.value.replace(/\s*$/,"").replace(/^\s*/,"");if(this.text.value.match(/\w+/)&&this.text.value.toLowerCase()!="search"){this.attr1.value=this.text.value;return true}else{alert("You must enter a search term.")}}return false});$("form.search input#searchtxt").click(function(){if(this.value.toLowerCase()=="search"){this.value=""}this.className="searchFocus"}).focus(function(){if(this.value.toLowerCase()=="search"){this.value=""}this.className="searchFocus"}).blur(function(){if(this.value==""){this.value="Search"}this.className="searchBlur"});flyMenu();UpdateCountry();InitASPOnlyUser()});