﻿function PutBackgroundColor(){if($.browser.msie){try{$("#fp li:odd").css("background-color","#ffffe8");$("#fp li:even").css("background-color","#f8f5c7")}catch(a){alert(a)}try{$("#Products .grid p:odd").css("background-color","#ffffe8");$("#Products .grid p:even").css("background-color","#f8f5c7")}catch(c){alert(c)}try{$("#Products tr:even td").css("background-color","#ffffe8");$("#Products tr:odd td").css("background-color","#f8f5c7")}catch(e){alert(e)}}}
$(document).ready(function(){(function(){$("#fp").length!=0&&$.get("/ajax/FeaturedProducts.aspx",function(b){$("#fpHead").show();$("#fp").append(b);imagePreview()})})();PutBackgroundColor();if(location.href.toLowerCase().indexOf("/categories/")!=-1||location.href.toLowerCase().indexOf("/category/")!=-1||location.pathname.toLowerCase().indexOf("/promotion.aspx")==0)$.getScript("/js/categories.js?v=5");location.href.toLowerCase().indexOf("/search/")!=-1&&$.getScript("/js/search.js?v=2");$("#ltsContainer").length!=
0&&function(){try{$.getScript("/lts/",function(){$.getScript("/lts/CD.aspx")})}catch(b){alert(b)}}();if($.browser.msie&&$.browser.version=="6.0")try{$("#cat > div").each(function(){$(this).hover(function(){$(this).children("p").height()>330&&$(this).children("p").css("width","570px");$(this).children("h2").css("background-position","0 -136px");$(this).children("p").show()},function(){$(this).children("h2").css("background-position","0 -81px");$(this).children("p").hide()})})}catch(a){}try{if(location.pathname.toLowerCase()==
"/categories/"||location.pathname.toLowerCase().indexOf("/category/")!=-1||location.pathname.toLowerCase()=="/product.aspx"||location.pathname.toLowerCase().substring(0,6)=="/item/"||location.pathname.toLowerCase()=="/promotion.aspx"||location.pathname.toLowerCase()=="/cart.aspx"||location.pathname.toLowerCase()=="/search/"||location.pathname.toLowerCase()=="/specials.aspx"||location.pathname.toLowerCase()=="/popular.aspx"||location.pathname.toLowerCase()=="/newarrivals.aspx"||location.pathname.toLowerCase()==
"/pc/"){var c;$("#cat").hover(function(){window.clearTimeout(c)},function(){c=window.setTimeout(function(){$("#cat").fadeOut(100)},200)});$("#all_categories").hover(function(){window.clearTimeout(c);$("#cat").fadeIn(100)},function(){c=window.setTimeout(function(){$("#cat").fadeOut(100)},200)})}}catch(e){alert(e)}try{$("#txtSearch").focus(function(){$(this).val()=="Product search"&&$(this).val("").css("color","#999")})}catch(f){}try{$("#txtSearch").blur(function(){$(this).val().trim()==""&&$(this).val("Product search").css("color",
"#eee")})}catch(l){}try{$("#txtSearch").keypress(function(b){b.which==13&&DoPostSearch(b)})}catch(m){}try{$("#btnSearch").click(function(b){DoPostSearch(b)})}catch(n){}if(location.pathname.toLowerCase()=="/product.aspx"||location.pathname.toLowerCase().substring(0,6)=="/item/")try{$.getScript("/js/product.js?v=2")}catch(k){alert(k)}try{if($("#onSpecial").length!=0){$("#onSpecial").children(":lt(5)").each(function(){var b=$(this).children("a.space04");b.html()==""&&b.html('<img src="'+b.attr("data")+
'" width="96" height="96" />')});for(var h=$("#onSpecial li").length/4,g=1;g<=h;g++)$("#onSpecialControler").append("<li><a>"+g.toString()+"</a></li>");$("#onSpecialControler li:first a").addClass("current");$("#onSpecialControler li a").click(function(){$(this).parent().parent().children("li").children(".current").removeClass("current");$(this).addClass("current");var b=$(this).text()-1;b=$("#onSpecial").children("li").eq(b*4);b.prevAll().animate({width:"0",marginLeft:"-115px"},"fast",function(){});
b.nextAll(":lt(3)").andSelf().animate({width:"115px",marginLeft:"0"},"fast",function(){var i=$(this).children("a.space04");i.html()==""&&i.html('<img src="'+i.attr("data")+'" width="96" height="96" />')})});$("#onSpecialControler li a").hover(function(){$(this).click()},function(){});setInterval(function(){var b=$("#onSpecialControler li a.current");b.text()<$("#onSpecialControler li").size()?b.parent().next().children("a").click():b.parent().parent().children(":first").children("a").click()},1E4)}}catch(s){}try{if($("#midAdv").size()>
0){var o=true;setInterval(function(){if(o){var b=$("#midAdv").children(":visible");b.fadeOut("slow");b.next().index()>-1?b.next().fadeIn("slow"):b.parent().children(":first").fadeIn("slow")}},5E3);$("#midAdv").children().hover(function(){o=false},function(){o=true})}}catch(p){alert(p)}try{var d=$("img.rescale");if(d.length!=0){var j=new Image;j.src=d.attr("src");d.height(48);d.width(j.width*48/j.height);if(d.width()>48){d.width(48);d.height(j.height*d.width()/j.width)}d.fadeIn()}}catch(t){}$("div.content").hide();
$("#description").show();try{$("ul.faq > li").click(function(){$(this).children("ul").slideToggle("fast")})}catch(u){}try{$("#SideAdver").length!=0&&$.getScript("/ajax/SideAdver.aspx")}catch(q){alert(q)}(function(){$("#nav2").length!=0&&$("#nav2").css("display")!="none"&&window.setTimeout(function(){if(location.pathname.toLowerCase().substring(0,4)!="/pc/")try{$.get("/view/elements/RightBottom.htm",function(i){$("#nav2").append(i);$("#nav2 > ul > li > a").each(function(){$(this).attr("target","_blank");
if($(this).attr("href")=="http://shopferret.com.au/"){$(this).attr("title","Shop Ferret - Compare Prices & Stores Before You Buy! Price Comparison & Product Reviews, Australia");$(this).html('<img src="http://image0.skycomp.com.au/logo03.jpg" class="space02" width="120" height="50" />')}if($(this).attr("href")=="http://staticice.com.au/"){$(this).attr("title","staticICE - Compare Prices - Australia - Price comparison for gadgets and computer hardware");$(this).html('<img src="http://image0.skycomp.com.au/logo04.jpg" class="space02" width="119" height="59" />')}if($(this).attr("href")==
"http://www.shopmania.com.au"){$(this).attr("title","Visit SKYCOMP TECHNOLOGY on ShopMania");$(this).html('<img src="http://image0.skycomp.com.au/logo05.gif" class="space02"width="111" height="31" />')}if($(this).attr("href")=="http://www.shopbot.com.au/"){$(this).attr("title","Shopbot - Compare prices - Australia - Price Comparison - Comparison Shopping");$(this).html('<img src="http://image0.skycomp.com.au/logo06.jpg" class="space02" width="121" height="34" />')}if($(this).attr("href")=="http://www.getprice.com.au/shopreview.asp"){$(this).attr("title",
"getprice Compare Buy & save - officially certified vendor");$(this).html('<img src="http://image0.skycomp.com.au/getprice_buy_shop_logo.gif" border="0" class="space02"width="120" height="26"  />')}})})}catch(b){alert(b)}},500)})();document.title.indexOf("Skycomp PC Configuration Manager")!=-1&&$.get("/js/pc.js");document.title.indexOf("Your Shopping Cart","")!=-1&&$.get("/js/cart.js");try{$(".addthis_toolbox").length!=0&&$.getScript("/js/addthis.js")}catch(r){alert(r)}$("#footer").corner();$(".rcorner").corner()});
function DoPostSearch(a){a.preventDefault();a=$.trim($("#txtSearch").val());if(a!="")location.href="/search/?q="+a}
function ChkNumbers(a){if(a.keyCode==46)return true;else if(a.keyCode==9)return true;else if(a.keyCode==96)return true;else if(a.keyCode==97)return true;else if(a.keyCode==98)return true;else if(a.keyCode==99)return true;else if(a.keyCode==100)return true;else if(a.keyCode==101)return true;else if(a.keyCode==102)return true;else if(a.keyCode==103)return true;else if(a.keyCode==104)return true;else if(a.keyCode==105)return true;else if(a.keyCode==8)return true;else{var c;if(window.event)c=a.keyCode;
else if(a.which)c=a.which;return/\d/.test(String.fromCharCode(c))}}function OpenPrintItem(a){window.open("PrintItem.aspx?pid="+a)}function utmx_section(){}function utmx(){}
(function(){function a(k){if(f){var h=f.indexOf(k+"=");if(h>-1){var g=f.indexOf(";",h);return f.substring(h+k.length+1,g<0?f.length:g)}}}var c=document,e=c.location,f=c.cookie,l=a("__utmx"),m=a("__utmxx"),n=e.hash;c.write('<script src="http'+(e.protocol=="https:"?"s://ssl":"://www")+".google-analytics.com/siteopt.js?v=1&utmxkey=2277098408&utmx="+(l?l:"")+"&utmxx="+(m?m:"")+"&utmxtime="+(new Date).valueOf()+(n?"&utmxhash="+escape(n.substr(1)):"")+'" type="text/javascript" charset="utf-8"><\/script>')})();
