﻿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)})})();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"){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(m){}try{$("#txtSearch").keypress(function(b){b.which==13&&DoPostSearch(b)})}catch(n){}try{$("#btnSearch").click(function(b){DoPostSearch(b)})}catch(o){}if(location.pathname.toLowerCase()=="/product.aspx"||location.pathname.toLowerCase().substring(0,6)=="/item/")try{$.getScript("/js/product.js?v=2")}catch(l){alert(l)}try{if($("#onSpecialControler").length!=
0){for(var h=$("#onSpecial li").length,g=1;g<=h;g++)$("#onSpecialControler").append('<li><a href="#">'+g.toString()+"</a></li>");$("#onSpecialControler li > a").css("background-color","#e5e5e5").css("color","Gray");$("#onSpecialControler li:first > a").css("background-color","#114376").css("color","White");$("#onSpecial li:first").fadeIn("fast",function(){$("#onSpecialControler li >  a").hover(function(){$(this).css("background-color","#114376").css("color","White")},function(){$(this).css("background-color",
"#e5e5e5").css("color","Gray")})});$("#onSpecialControler li").each(function(){var b=$(this).text()-1;$("#onSpecialControler li:eq("+b+")").click(function(){$("#onSpecial li:visible").fadeOut("fast",function(){$("#onSpecialControler li > a").css("background-color","#e5e5e5").css("color","Gray");$("#onSpecialControler li:eq("+b+") > a").css("background-color","#114376").css("color","White");$("#onSpecial li:eq("+b+")").fadeIn("fast")})})});var i=true,p=$("#onSpecial li:last");setInterval(function(){var b=
$("#onSpecial li:visible"),j=b.next();if(p.is(":visible"))j=$("#onSpecial li:first");if(i==true){j.fadeIn("fast");b.fadeOut("fast",function(){var q=$("#onSpecial li").index(j);$("#onSpecialControler li > a").css("background-color","#e5e5e5").css("color","Gray");$("#onSpecialControler li:eq("+q+") > a").css("background-color","#114376").css("color","White")})}},5E3);$("#onSpecial").hover(function(){i=false},function(){i=true});$("#onSpecialControler").hover(function(){i=false},function(){i=true})}}catch(t){}try{var d=
$("img.rescale");if(d.length!=0){var k=new Image;k.src=d.attr("src");d.height(48);d.width(k.width*48/k.height);if(d.width()>48){d.width(48);d.height(k.height*d.width()/k.width)}d.fadeIn()}}catch(u){}$("div.content").hide();$("#description").show();try{$("ul.faq > li").click(function(){$(this).children("ul").slideToggle("fast")})}catch(v){}try{$("#SideAdver").length!=0&&$.getScript("/ajax/SideAdver.aspx")}catch(r){alert(r)}(function(){$("#nav2").length!=0&&$("#nav2").css("display")!="none"&&window.setTimeout(function(){try{$.get("/view/elements/RightBottom.htm",
function(j){$("#nav2").append(j);$("#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="/images/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="/images/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="/images/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="/images/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="/images/getprice_buy_shop_logo.gif" border="0" class="space02"width="120" height="26"  />')}})})}catch(b){alert(b)}},500)})();try{$(".addthis_toolbox").length!=0&&$.getScript("http://s7.addthis.com/js/250/addthis_widget.js?pub=xa-4a8fe8c62a8b4ac2")}catch(s){alert(s)}$("#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(l){if(f){var h=f.indexOf(l+"=");if(h>-1){var g=f.indexOf(";",h);return f.substring(h+l.length+1,g<0?f.length:g)}}}var c=document,e=c.location,f=c.cookie,m=a("__utmx"),n=a("__utmxx"),o=e.hash;c.write('<script src="http'+(e.protocol=="https:"?"s://ssl":"://www")+".google-analytics.com/siteopt.js?v=1&utmxkey=2277098408&utmx="+(m?m:"")+"&utmxx="+(n?n:"")+"&utmxtime="+(new Date).valueOf()+(o?"&utmxhash="+escape(o.substr(1)):"")+'" type="text/javascript" charset="utf-8"><\/script>')})();