var Tab={Sel:function(){var B=1,C,A=$(this).attr("id").replace(/Tab([0-9]+)/,"");$("#"+A+"Bar li a").removeClass("selTab");$(this).attr("target","").addClass("selTab").blur();while($("#"+A+"Tab"+B).length>0){$("#"+A+"Tab"+(B++)+"Area").removeClass("selTab")}$("#"+$(this).attr("id")+"Area").addClass("selTab");$(this).hasClass("disableOS")?$("#SelectOS").attr("disabled","disabled"):$("#SelectOS").removeAttr("disabled");return false},Init:function(C,A){A=(typeof (A)=="string"&&A!="")?A:"click";for(var B=0;B<C.length;B++){$("#"+C[B]+"Bar li a").each(function(){$(this).bind(A,Tab.Sel);if($(this).hasClass("selTab")&&$(this).hasClass("disableOS")){$("#SelectOS").attr("disabled","disabled")}})}}};function cssToggle(C,B){if(C&&C.tagName){C.blur()}var A=$("#"+B);if(A){if(A.css("display")!="none"||A.css("display")==""){A.css({display:"none"})}else{A.css({display:"block"})}}return false}var backdropImg=[],backdropTimer=[];function backdrop(G,D,F,A,C){var H=$("#"+G);if(H.length!=1||!backdropImg[D]||!backdropImg[D].list||backdropImg[D].list.length<1){return }F=(F&&F===parseInt(F)&&F>1000)?F:10000;var B=backdropImg[D].list[backdropImg[D].idx][0];if(!B){B=backdropImg[D].list[backdropImg[D].idx]}if(!B){B="#fff"}var E=backdropImg[D].list[backdropImg[D].idx][1];if(!E){E="#000"}if(C){H.css({background:B,color:E})}if(backdropImg[D].list.length<2){return }if(C&&typeof (A)=="string"&&A.length>0){setTimeout(A+"("+backdropImg[D].idx+");",10)}backdropImg[D].idx=(backdropImg[D].idx>=backdropImg[D].list.length-1)?0:backdropImg[D].idx+1;backdropTimer[backdropImg[D].idx]=setTimeout("backdrop('"+G+"', "+D+", "+F+((typeof (A)=="string"&&A.length>0)?", '"+A+"'":"")+", true);",F)}function findPos(C){var B,G,F=0,E=0,D=document,A=true;C=(C.jquery)?C:((typeof (C)=="object")?$(C):$("#"+C));if(C.length!=1||!C.attr("offsetParent")){return{x:0,y:0}}B=C[0];while(A){F+=B.offsetLeft;if(!B.offsetParent){A=false}B=B.offsetParent}A=true;G=C[0];while(A){E+=G.offsetTop;if(!G.offsetParent){A=false}G=G.offsetParent}return{x:F,y:E}}function setMyCookie(E,A,B){var D=E+"="+A+";";if(B){var C=new Date();C.setTime(C.getTime()+(1000*60*60*24*B));D+=" expires="+C.toUTCString()+";"}D+=" path=/";document.cookie=D}function getMyCookie(D){var A=D+"=";var C=document.cookie.split(";");for(var E=0;E<C.length;E++){var B=C[E];while(B.charAt(0)==" "){B=B.substring(1,B.length)}if(B.indexOf(A)==0){return B.substring(A.length,B.length)}}return""}function oWindow(E,C,K,F,D,G,J,L,I,B){E=E||"/";if(E.toLowerCase()=="blank"){E=""}G=G||"buttons";if(!I){C=(C==parseInt(C))?C:500;K=(K==parseInt(K))?K:500;var A=oCenter(C,K);F=(F==parseInt(F))?F:0;D=(D==parseInt(D))?D:0;J=(J=="center")?A[0]:(J==parseInt(J))?J:50;L=(L=="center")?A[1]:(L==parseInt(L))?L:50;B=(B)?"dependent=1":"";I="toolbar=0,location=0,directories=0,status=0,menubar=0,resizable="+F+",scrollbars="+D+B+",width="+C+",height="+K+",left="+J+",top="+L}var H=window.open(E,G,I);H.focus()}function oCenter(A,B){return new Array((screen.width-A)/2,(((screen.height-B)/2)-20))}function buttonskin(A,B){if(typeof (jQuery)=="undefined"){return }(function(C){C(function(){var H,N,O,F,D,M,J,L,I,K,G,E;C(A).each(function(){G=C(this);E=(typeof (G.attr("type"))!="undefined")?G.attr("type").toLowerCase():"";if(G.attr("tagName").toLowerCase()=="input"&&G.css("display")!="none"&&(E=="submit"||E=="reset"||E=="button")&&G.parent().attr("tagName").toLowerCase()!="a"){N=G.attr("title");G.css({margin:"0px",border:"none",padding:"2px",background:"transparent none",outline:"none"}).wrap('<span class="btn" style="display:-moz-inline-block;display:inline-block;width:auto"><a class="'+G.attr("className")+'"></a></span>').removeAttr("class");G.focus(function(){C(this).parent("a").addClass("hover")}).blur(function(){C(this).parent("a").removeClass("hover")});G=G.parent("a");G.find("input:first").click(function(P){P.stopPropagation()});G.click(function(){C(this).find("input:first").click();return false}).attr("title",N)}if(G.attr("tagName").toLowerCase()=="a"&&G.find("i.m").length==0){G.css({margin:"0px",border:"none"});if((document.all&&!window.XMLHttpRequest)||window.opera){O=G.outerWidth()+1;F=parseInt(O*0.4);D=parseInt(O*0.6);M=G.width()-O+F+D+1;O=F+D;J=G.outerHeight();L=parseInt(J*0.4);I=parseInt(J*0.6);K=L+I-parseInt(G.css("paddingTop"))-parseInt(G.css("paddingBottom"))+1;J=L+I;G.css({width:M+"px",height:K+"px"});H='<i class="m" style="width:'+O+"px !important;height:"+J+'px !important"><span style="width:'+F+"px !important;height:"+L+'px !important"></span><b style="top:'+L+"px !important;width:"+F+"px !important;height:"+I+'px !important"></b></i><b class="m" style="width:'+O+"px !important;height:"+J+'px !important"><span style="left:'+F+"px !important;width:"+D+"px !important;height:"+L+'px !important"></span><i style="left:'+F+"px !important;top:"+L+"px !important;width:"+D+"px !important;height:"+I+'px !important"></i></b>'}else{H='<i class="m"><span></span><b></b></i><b class="m"><span></span><i></i></b>'}if(B){G.wrapInner('<span style="position:relative;display:block;z-index:1"></span>').prepend(H)}else{G.append(H)}}})})})(jQuery)}$(document).ready(function(){buttonskin(".btn",true);buttonskin(".btn1",true);buttonskin(".btn2",true)});function flyMenu(){var E,J,B,H,D,G,C,I=$("a.flydown"),F=$("a.flyup"),A=(window.location.host.toLowerCase().indexOf(".acer.")>-1);for(E=0;E<I.length;E++){H=null;B=null;G=I[E].id.split("_");if(G&&G.length>1&&(G[1]=="fly"||(G[1]&&G[2]&&G[1]==parseInt(G[1])&&G[2]==parseInt(G[2])))){D=$(I[E]).parent();if(G[3]&&G[3]==parseInt(G[3])){B=parseInt(G[3])}else{if(G[1]=="fly"&&G[2]&&G[2]==parseInt(G[2])){B=parseInt(G[2])}}if(B!==null&&B===Number(B)){B=((B&&parseInt(B)>D.attr("offsetWidth")&&parseInt($("#"+G[0]).css("width"))>D.attr("offsetWidth"))?(D.attr("offsetWidth")-parseInt($("#"+G[0]).css("width"))):((B==parseInt(B))?B:0));H=(B!==0)?"-"+B+"px":"";B=(H)?" margin-left:"+H:""}else{B=""}C=D.attr("offsetHeight")+parseInt(D.parent().css("paddingTop"));if(G[1]&&G[1]==parseInt(G[1])&&G[2]&&G[2]==parseInt(G[2])){$(I[E]).after('<span id="'+G[0]+'" class="flybox flydown" style="top:'+(A?0:C)+"px; width:"+G[1]+"px; height:"+G[2]+"px;"+B+'"><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{$("#"+G[0]).css({top:(A?0:C)+"px"});if(H){$("#"+G[0]).css({marginLeft:H})}}J=$("#"+G[0]+".flybox").outerWidth();$("#"+G[0]+".flybox").css({width:(((J<150)?150:J)+5)+"px"});$(I[E].parentNode).hover(function(){if(document.all&&!window.XMLHttpRequest){$("select").css({visibility:"hidden"});$("#site_header select").css({visibility:"visible"})}G=$(this).find("a:first-child").attr("id").split("_");D=$("#"+G[0]);if($("#"+G[0]+" div").hasClass("flyload")){D.load(this.href,null,function(){$("#"+G[0]).css({width:G[1]+"px",whiteSpace:"normal"})})}if(A){D.css({top:"-"+D.height()+"px",display:"block"});D.dequeue().animate({top:"0px"},{duration:"slow",easing:"swing"})}else{D.css({display:"block"})}$(this).addClass("goFocus").removeClass("goBlur")},function(){if(document.all&&!window.XMLHttpRequest){$("select").css({visibility:"visible"})}G=$($(this).children("a")[0]).attr("id").split("_");if(G){if(A){$("#"+G[0]).dequeue().animate({top:"-"+$("#"+G[0]).height()+"px"},{duration:"slow",easing:"swing"})}else{$("#"+G[0]).css({display:"none"})}}$(this).addClass("goBlur").removeClass("goFocus")})}}for(E=0;E<F.length;E++){H=null;B=null;G=F[E].id.split("_");if(G&&G.length>1&&(G[1]=="fly"||(G[1]==parseInt(G[1])&&G[2]==parseInt(G[2])))){D=$(F[E]).parent();if(G[3]&&G[3]==parseInt(G[3])){B=parseInt(G[3])}else{if(G[1]=="fly"&&G[2]&&G[2]==parseInt(G[2])){B=parseInt(G[2])}}if(B!==null&&B===Number(B)){B=((B&&parseInt(B)>D.attr("offsetWidth")&&parseInt($("#"+G[0]).css("width"))>D.attr("offsetWidth"))?(D.attr("offsetWidth")-parseInt($("#"+G[0]).css("width"))):((B==parseInt(B))?B:0));H=(B!==0)?"-"+B+"px":"";B=(H)?" margin-left:"+H:""}var K=(document.all&&!window.XMLHttpRequest)?-1:0;C=D.attr("offsetHeight")+parseInt(D.parent().css("paddingBottom"))+K;if(G[1]&&G[1]==parseInt(G[1])&&G[2]&&G[2]==parseInt(G[2])){$(F[E]).after('<div id="'+G[0]+'" class="flybox flyup" style="bottom:'+C+"px; width:"+G[1]+"px; height:"+G[2]+"px;"+B+'"><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{$("#"+G[0]).css({bottom:C+"px"});if(H){$("#"+G[0]).css({marginLeft:H})}}$(F[E].parentNode).hover(function(){if(document.all&&!window.XMLHttpRequest){$("select").css({visibility:"hidden"});$("#site_header select").css({visibility:"visible"})}G=$(this).find("a:first-child").attr("id").split("_");D=$("#"+G[0]);if($("#"+G[0]+" div").hasClass("flyload")){D.load(this.href,null,function(){$("#"+G[0]).css({width:G[1]+"px",whiteSpace:"normal"})})}D.css({display:"block"});$(this).addClass("goFocus").removeClass("goBlur")},function(){if(document.all&&!window.XMLHttpRequest){$("select").css({visibility:"visible"})}G=$($(this).children("a")[0]).attr("id").split("_");if(G){$("#"+G[0]).css({display:"none"})}$(this).addClass("goBlur").removeClass("goFocus")})}}}function showSubItem(A){A="#"+A+", ."+A;$(A).each(function(){if($(this).prop("tagName").toLowerCase()=="li"){$(this).addClass("hereSubNav")}});$(A).parents("li").addClass("hereSubNav")}function InitASPOnlyUser(){var A=getMyCookie("ASPUserStatus");if(A=="1"){$(".aspItem").removeClass("aspItem")}}function ASPUserCheck(A){if((document.referrer!="")&&(document.referrer.toLowerCase()==A.toLowerCase())){setMyCookie("ASPUserStatus","1",1)}}var cssDialog=null;function initDialog(){if(cssDialog==null){cssDialog=$("#dialog").dialog({draggable:false,modal:true,resizable:false,height:280,width:725})}if(!$("#dialog").dialog("isOpen")){$("#dialog").dialog("open")}}function showDialog(A){initDialog();productCatalog.tabIndex=A;productCatalog.init(FeedUrl+"?b="+productCatalog.brand)}function showDialogCat(A){initDialog();productCatalog.init(FeedUrl+"?b="+productCatalog.brand+"&c="+A)}function hideDialog(){initDialog();if($("#dialog").dialog("isOpen")){$("#dialog").dialog("close")}}function initProductSelector(C,A,B){productCatalog.linkUri=C;productCatalog.url=A;productCatalog.brand=B;productCatalog.label=["Category","Series","Model","Model"]}function resizeImage(B,A){obj=B;if(obj.length==0){return }else{if(A==undefined){A=200}obj.each(function(){if($(this).height()>$(this).width()){if($(this).height()>A){$(this).attr("height",A)}else{if($(this).width()>A){$(this).attr("width",A)}}}else{if($(this).width()>A){$(this).attr("width",A)}else{if($(this).height()>A){$(this).attr("height",A)}}}})}}$(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"});$("#site_bar .flybox").prepend('<div class="tb"><div class="tr"></div><div class="tl"></div><div class="tm">&nbsp;</div></div>');$("#site_bar .flybox").append('<div class="bb"><div class="br"></div><div class="bl"></div><div class="bm">&nbsp;</div></div>');$("#site_bar .flybox .flyinner").wrap('<div class="ml"><div class="mr"></div></div>').addClass("mm");var A,E,B,C,D=$("#site_bar .flybox");flyMenu();if($(".navB li a.m").length>0){for(A=0;A<$(".navB li a.m b").length;A++){if($($(".navB li a.m b")[A]).html()=="Products"){$("#wrapper").append('<div id="prodMnu" class="adj"></div>');E=$($(".navB li a.m")[A]).parents("li").find(".flyinner");E.parents("div.flybox").css({visibility:"hidden",display:"block"});B=$("#prodMnu.adj").height();B=(B&&B>0)?B:250;if(E.length>0&&E.height()>B){E.css({height:B+"px",overflow:"auto",overflowX:"hidden"})}E.parents("div.flybox").css({visibility:"visible",display:"none"})}if($($(".navB li a.m b")[A]).html()=="Favorites"){$("#wrapper").append('<div id="favoMnu" class="adj"></div>');E=$($(".navB li a.m")[A]).parents("li").find(".flyinner");E.parents("div.flybox").css({visibility:"hidden",display:"block"});B=$("#favoMnu.adj").height();B=(B&&B>0)?B:250;if(E.length>0&&E.height()>B){E.css({height:B+"px",overflow:"auto",overflowX:"hidden"})}E.parents("div.flybox").css({visibility:"visible",display:"none"})}}}InitASPOnlyUser()});function GW_setCookie(D,A,E,B){var C=new Date();C.setFullYear(C.getFullYear()+1);document.cookie=D+"="+escape(A)+((E==null)?"":"; domain="+E)+((B==null)?"":"; path="+B)+"; expires="+C.toGMTString()}function GW_getCookie(A){var C="";var B=A+"=";if(document.cookie.length>0){offset=document.cookie.indexOf(B);if(offset!=-1){offset+=B.length;end=document.cookie.indexOf(";",offset);if(end==-1){end=document.cookie.length}C=document.cookie.substring(offset,end)}}return unescape(C.replace(/\+/g," "))}var noCookiesMsg="Your browser does not appear to accept cookies.  This feature\nutilizes cookies.  If you have disabled cookies on your browser,\nyou will not be able to use this feature.\n \nFor Internet Explorer Users, under Tools select\nInternet Options and then the Privacy tab. Set\nthe Privacy Setting to Medium or below.\n\nFor Netscape 7.0 Users, under Tools select\nCookie Manager and make sure that cookies\nare being accepted from our site.\n\nFor older versions of Netscape, under Edit\nchoose Preferences, then Privacy & Security,\nthen Cookies.";function GW_checkCookies(){GW_DeleteCookie("test",null,null);GW_setCookie("test","testval",null,null);if(GW_getCookie("test")==""){alert(noCookiesMsg);return 0}else{GW_DeleteCookie("test",null,null);return 1}};
