
$(window).load(function(){var imgs=$('.grayscaler img');imgs.css('position','relative');imgs.css('cursor','pointer');imgs.each(function(){var parent=$(this).parent();parent.css({'background':'#ffffff url('+$(this).attr('rel')+') no-repeat center center'});parent.css('height',$(this).height()+'px');parent.css('width',$(this).width()+'px');});imgs.parent().hover(function(e){var img=$(this).find('img');$(this).find("img").stop().fadeTo('fast',0,function(){$(this).hide();});return true;},function(e){$(this).find("img").stop().fadeTo('slow',1).show();});});var product=new Array;var subproduct=new Array;var subsubproduct=new Array;product[0]={link:'systems',name:'Systems',count:0,item:[undefined]};subproduct[0]=new Array;subproduct[0][0]={link:'systems/slender',name:'Slender',count:6,item:['/upload/b3246fb52e883a0981e0ac0f04a86526_t.png','/upload/05235c7bf31da283be9b3ef2d9dd633e_t.png','/upload/a436b656d8635829ffa805c5182b7d2a_t.png','/upload/2f8f37fa49332f9d4374d0da5ab145ad_t.png','/upload/6d9e2f82ff9b08030a6ef9da99b58176_t.png','/upload/9448fa9c70e90a364d460e681764888d_t.png',undefined]};subsubproduct[0]=new Array;subsubproduct[0][0]=new Array;subproduct[0][1]={link:'systems/slimo',name:'Slimo',count:7,item:['/upload/494b1f4d6c7acf3c8e1f7f13b6c8844c_t.png','/upload/cbc2437488728fe8dffd121f10e04b5b_t.png','/upload/7766e4ecaee3f622c1083de680b3e1fd_t.png','/upload/1be481bf73897f30743d8da3f4b1f7dd_t.png','/upload/826086b05f0f545150fb0251113f84d8_t.png','/upload/804c510e6e86b9a97a922419620aa627_t.png','/upload/d9a2a8c8bda571f10eb3cd905f5bee46_t.png',undefined]};subsubproduct[0]=new Array;subsubproduct[0][1]=new Array;subproduct[0][2]={link:'systems/sv',name:'SV',count:7,item:['/upload/47d985b890b2108bb4a642e46a469efb_t.png','/upload/e50c478f3795cd3685df6ed9f42ea31f_t.png','/upload/02d3977434cc85e7ca4be41372d5eb8b_t.png','/upload/859789be3f91dc43a5b857cfd56ae609_t.png','/upload/ea45a5d5bfbbb18d357b74a89a3b3329_t.png','/upload/55b4e829b9d8dae34f59064a370c3d40_t.png','/upload/c5a6196cac22cd1ac6ecb003b899e485_t.png',undefined]};subsubproduct[0]=new Array;subsubproduct[0][2]=new Array;product[1]={link:'partition',name:'Partition',count:5,item:['/upload/bba097039bb6bc86ca732e893deae474_t.png','/upload/3d89d3d08b1371e60d4f8ace907bc40a_t.png','/upload/86ad41725e4d7d9fdcb3b648305d85e6_t.png','/upload/28358d85e3fea0a70644bf5133e8db69_t.png','/upload/f43858222b2253527c72e397c0056835_t.png',undefined]};subproduct[1]=new Array;product[2]={link:'desking',name:'Desking',count:0,item:[undefined]};subproduct[2]=new Array;subproduct[2][0]={link:'desking/executive_desking',name:'Executive Desking',count:6,item:['/upload/032e6d53454b3622caf3296c4278f841_t.png','/upload/b3dfa7d111c05e5627088d7fe1712db8_t.png','/upload/9412b90c0f23f3f0773c2ac8a3ae317f_t.png','/upload/0ead173fea591b481aa1130c666866e5_t.png','/upload/dbf6b7ea12719daaaebb7a9c9ae3c9df_t.png','/upload/f76faa393828f0edec05a88050ff47d9_t.png',undefined]};subsubproduct[2]=new Array;subsubproduct[2][0]=new Array;subproduct[2][1]={link:'desking/staff_desking',name:'Staff Desking',count:9,item:['/upload/558686721c386433910cf6d437214e6e_t.png','/upload/36b8cae74ec8665ca8a8eca6dc1673bb_t.png','/upload/f299f24c490ba6289b41ea8aacb01123_t.png','/upload/093096eb28818b1ae1c9a06918321222_t.png','/upload/5b8921cc12756d4efdaa0a61c65eb1c7_t.png','/upload/1cbfc43eda344fab7cfedd4fc79b75ec_t.png','/upload/7e39ae069a0b3f6a311509c4ba78b69d_t.png','/upload/51426b24a72e7aac20fa58b0f7214da2_t.png','/upload/76b4c71df5dbd4b7c6bc163314520992_t.png',undefined]};subsubproduct[2]=new Array;subsubproduct[2][1]=new Array;subproduct[2][2]={link:'desking/conference_table',name:'Conference Table',count:5,item:['/upload/6730d226e9fe86ae1792ae38fd8b9f3c_t.png','/upload/20b4d278345042475f0df7fb8035c7d3_t.png','/upload/cee8c06424d51a581b4f56e2e999c2d1_t.png','/upload/1404b133c51b54552d50e434acace694_t.png','/upload/2e2de1da23549ecf5f922a51eeff4246_t.png',undefined]};subsubproduct[2]=new Array;subsubproduct[2][2]=new Array;subproduct[2][3]={link:'desking/folding_table',name:'Folding Table',count:7,item:['/upload/81e4deaa26c80c8a697fd8bb41c83e8a_t.png','/upload/820343e910bc8503f94f9b55e84d6dc6_t.png','/upload/8384d64ac15ea4c4ab076d2565d4c582_t.png','/upload/1695826db9f8dff91fb8305509d6653e_t.png','/upload/83863ed7c39f2f83159dac8a82c7a350_t.png','/','/upload/7253aebbd877162fc8d677f09e55f538_t.png',undefined]};subsubproduct[2]=new Array;subsubproduct[2][3]=new Array;product[3]={link:'cabinets',name:'Cabinets',count:0,item:[undefined]};subproduct[3]=new Array;subproduct[3][0]={link:'cabinets/slender_series',name:'Slender Series',count:5,item:['/upload/25038a253f2ca771c4c7a5d99a34a583_t.png','/upload/d0f0ad8db7a836ad4dd7030b1ec4d55c_t.png','/upload/edcde44eb93666939ea1246aaf062fe3_t.png','/upload/3c18d8779126ad5b570b51747db1a1fb_t.png','/upload/d35eeaef477582cc15da6c81361a7582_t.png',undefined]};subsubproduct[3]=new Array;subsubproduct[3][0]=new Array;subproduct[3][1]={link:'cabinets/slimo_series',name:'Slimo Series',count:5,item:['/upload/d448c4ca6231d41b9fc22caf5faa97a9_t.png','/upload/4c3de60eed282b1b5097f8b5c007800b_t.png','/upload/588e4558fe6c1f8992f8bf191bcfb614_t.png','/upload/5359f7d76d4528343a2edcd069bc826c_t.png','/upload/9837015a9bea08a4d63eb8bb5895e70b_t.png',undefined]};subsubproduct[3]=new Array;subsubproduct[3][1]=new Array;subproduct[3][2]={link:'cabinets/sv_series',name:'SV Series',count:5,item:['/upload/a2278206a2f1b1fb1b2925b4a977f880_t.png','/upload/bd6b5c93051daf44434fe205171d902e_t.png','/upload/ab28254cb8f20f954a8d3c925f416bed_t.png','/upload/2409e72662e428bb48fc47ed59ca2b3b_t.png','/upload/39568b3499cee5d35e1b2b9f52e56e41_t.png',undefined]};subsubproduct[3]=new Array;subsubproduct[3][2]=new Array;subproduct[3][3]={link:'cabinets/basic_shelf',name:'Basic Shelf',count:2,item:['/upload/01354105135ed3f366dfc8c70195909e_t.png','/upload/bf551c73b0e7429c6da826f356e8516b_t.png',undefined]};subsubproduct[3]=new Array;subsubproduct[3][3]=new Array;subproduct[3][4]={link:'cabinets/oval_door_handle',name:'Oval Door Handle',count:5,item:['/upload/e36d5a79fe08574db22c04b9398dc88e_t.png','/upload/92cadfab7f730cef5cb4c163eed7ec41_t.png','/upload/ec563660cbfeadb47a9a408b73fba7f8_t.png','/upload/459ec91bb3256965ca98cc801aa883d7_t.png','/upload/ffdacee00d3a99d4bf8f6a5bf52d5340_t.png',undefined]};subsubproduct[3]=new Array;subsubproduct[3][4]=new Array;subproduct[3][5]={link:'cabinets/plan_chest',name:'Plan Chest',count:2,item:['/upload/29481fb3b86081419b2122a2447f17e0_t.png','/upload/97afdf804293cfaa0b60124ce367c0fb_t.png',undefined]};subsubproduct[3]=new Array;subsubproduct[3][5]=new Array;subproduct[3][6]={link:'cabinets/mobile_filing_cabinet',name:'Mobile Filing Cabinet',count:2,item:['/upload/d8088cc9229f32fa26af65778569af2d_t.png','/upload/78b3de619c8b475247a86a9ed8c2e6aa_t.png',undefined]};subsubproduct[3]=new Array;subsubproduct[3][6]=new Array;product[4]={link:'seating',name:'Seating',count:0,item:[undefined]};subproduct[4]=new Array;subproduct[4][0]={link:'seating/management_chairs',name:'Management Chairs',count:9,item:['/upload/3186739c585f8340d786ac5e56ad22cf_t.png','/upload/1ad470976e7fe0c9ee20313b9a5bde1b_t.png','/upload/68a920c4a176ef04b90ff77bd1e474d4_t.png','/upload/e0c9a3c54df819022f679a1869dfd1c3_t.png','/upload/17eae29e3deb9efac946975e8de45739_t.png','/upload/1e9f3a699fb01cbc5f7fbe5c1cbb7f1e_t.png','/upload/b18056d6c0b59133c73bc792ebeef917_t.png','/upload/22700ac8ec5c09b274562ab54eb3abfb_t.png','/upload/89adb565aabc9658df80d44e0193682c_t.png',undefined]};subsubproduct[4]=new Array;subsubproduct[4][0]=new Array;subsubproduct[4][0][0]={link:'seating/management_chairs/executive_chairs',name:'Executive Chairs',count:10,item:['/upload/c70075f2a16933fffd40beac3e986a63_t.png','/upload/984eab0c2062f524a4d509d5a8e4024f_t.png','/upload/722877e80a528d85f72cf3dc35927c9f_t.png','/upload/f3fca3ed2f02e7b8ebd8b08956764c92_t.png','/upload/9beef8c2f14769bb4cafecde387d7e76_t.png','/upload/f2963ef4096eb53e39856234404fd3ff_t.png','/upload/bf4f37217f0445e7347070787c6290f7_t.png','/upload/7f146d60f3bcd9858999988796d78bdb_t.png','/upload/97fa58b7f9a0bec3c26816055d4b369f_t.png','/upload/8690cff9594ce3c97fdde103d6bbabcd_t.png',undefined]};subproduct[4][1]={link:'seating/clerical_chairs',name:'Clerical Chairs',count:14,item:['/upload/ffc7e7106b04b7f51f2383138711108a_t.png','/upload/9e87915556de11b7c62955b2f1fff4a1_t.png','/upload/44c0191c965991ad6dd792e2a6638689_t.png','/upload/fa24af7a147273ed49d0f52602fd899d_t.png','/upload/d161f082d2a8169d278f9057bf640573_t.png','/upload/e4e079f9ea7cb1780253f3b1fd34f240_t.png','/upload/a3f17235ab39a97811e38cdee1193c00_t.png','/upload/c8c688a8e4370fad78c646455fc76b8a_t.png','/upload/f8129347ad233a06619955704f5d9fc2_t.png','/upload/adb4cac388f5791df126f8caffce3212_t.png','/upload/e9a53aaaee1badadc682515f79c9ba93_t.png','/upload/d7d1f3cf2295138916ca9366915556fb_t.png','/upload/422ecf533e9b5d01de4dd4744ec64081_t.png','/upload/af11f2315d58cbcaf6eda4be61fb3802_t.png',undefined]};subsubproduct[4]=new Array;subsubproduct[4][1]=new Array;subproduct[4][2]={link:'seating/mesh_chairs',name:'Mesh Chairs',count:15,item:['/upload/4a6cf93831af53ad6c79047780605d6a_t.png','/upload/c777ae1013ef3a892a3c4e7f9205bd0c_t.png','/upload/e61c991fe1a3081b0d9b41fdde009cab_t.png','/upload/1770c83c41ed09788041ca41188af7b2_t.png','/upload/30fb4bba464f786f62d675a45ebf863c_t.png','/upload/cd9b1a09bf9e472388267a0c9a92276e_t.png','/upload/d153ac1f75e206435fc83fa2485eb097_t.png','/upload/d43bdeb7ee91d480d1cafba3749dfa1d_t.png','/upload/3beb21f752734317dd2972a9fe2ba54b_t.png','/upload/008f14e8181a9aa1b9a3e2f7a5fbdc1b_t.png','/upload/7126778bf78843f7ef6f27cdccca454a_t.png','/upload/52096763c201ea52975c2ac15d9eaebd_t.png','/upload/623aac93e0e7f09bcf444c3cb111452b_t.png','/upload/d70f1db4dcb8ad2a0816d1c0f3cbc1ff_t.png','/upload/06ec1666e7257e2bceb915d756441784_t.png',undefined]};subsubproduct[4]=new Array;subsubproduct[4][2]=new Array;subproduct[4][3]={link:'seating/utility_chairs',name:'Utility Chairs',count:9,item:['/upload/b3f87fee118e25e3538d3334e9a38e97_t.png','/upload/48dba27c783d2699ceaa7aa4b0ef2fbc_t.png','/upload/f645d9d2b7c878fed8e30ad2e4a6c89e_t.png','/upload/affdf1d95f0bd225e9c963263c350b64_t.png','/upload/960954d9e87f2ff7eca8c53e09cefa13_t.png','/upload/503d01b8bf1370737a00e451afe27d80_t.png','/upload/c609abde5ddb4e05c346aa2d8fb52875_t.png','/upload/30bf7ff8d44297fc8e5135bd5bc123d9_t.png','/upload/0f6f5ef9e980ae3a318c79f93faef7a1_t.png',undefined]};subsubproduct[4]=new Array;subsubproduct[4][3]=new Array;subproduct[4][4]={link:'seating/lounge_chairs',name:'Lounge Chairs',count:6,item:['/upload/e90a868a7f47c71d79c62e275dc30260_t.png','/upload/20c4765dfb9e8cbef39effa97d50ed9a_t.png','/upload/909e0d8e5abf0859c088d8ac68ce8243_t.png','/upload/8ad978d8d407e5b562d990761d2e4dce_t.png','/upload/7f1067ff9723fe10030fd2a7b8e59d29_t.png','/upload/a9dc05545685d17657153292fffa5562_t.png',undefined]};subsubproduct[4]=new Array;subsubproduct[4][4]=new Array;product[5]={link:'storage',name:'Storage',count:0,item:[undefined]};subproduct[5]=new Array;subproduct[5][0]={link:'storage/locker',name:'Locker',count:2,item:['/upload/3304bd8bb98238e23dcb1eb22cb69dee_t.png','/upload/406f384f2a470bf385f795f2b3d35d62_t.png',undefined]};subsubproduct[5]=new Array;subsubproduct[5][0]=new Array;subproduct[5][1]={link:'storage/racks',name:'Racks',count:3,item:['/upload/c18dafe6cba900702758d8a3ff38b0cf_t.png','/upload/94e10996990ebb34d07a2a0ffae420f7_t.png','/upload/34ef6e4e030160cd33f0b4c90afea31b_t.png',undefined]};subsubproduct[5]=new Array;subsubproduct[5][1]=new Array;subproduct[5][2]={link:'storage/safes',name:'Safes',count:0,item:[undefined]};subsubproduct[5]=new Array;subsubproduct[5][2]=new Array;product[6]={link:'library_furniture',name:'Library Furniture',count:8,item:['/upload/30d2ae872412b8d378f6cbd0acdd1ef6_t.png','/upload/62b32f5a9fbbe1216ad733d8355bee1f_t.png','/upload/1fb6b4e2197a960a3a82b5b08c663e5d_t.png','/upload/8e732be72ddfaa5d50bd8ab0eff3142b_t.png','/upload/8d89a8c2e4a2127394214db2a472795b_t.png','/upload/eba1ffe1a4e2b75d4d89f37d5c0855aa_t.png','/upload/85e15806fed9b29ef62ed205cd32d1ac_t.png','/upload/73b6a873bbf558d385cd552f67cfc77b_t.png',undefined]};subproduct[6]=new Array;product[7]={link:'ergonomicsergotron',name:'Ergonomics-Ergotron',count:0,item:[undefined]};subproduct[7]=new Array;subproduct[7][0]={link:'ergonomicsergotron/desk_mounts',name:'Desk Mounts',count:19,item:['/upload/46d88597cadc26e0d7d560bfa809d29e_t.png','/upload/c86b0085fc518b2d980f52579a4dd99e_t.png','/upload/d9f1192872c2640b9a65a056d5f98ffc_t.png','/upload/09ed9a996ac18af3e42df6adbde5c58e_t.png','/upload/4df746c2a8d16b0b6dae89e86f5188d3_t.png','/upload/9a391f7c61043a770e2db48d290a5e6c_t.png','/upload/6e939e809319f8529b7db5cd09b7a22c_t.png','/upload/42c3e68289f5f85957fe50345f21bca6_t.png','/upload/84b1ba9087e426e1045188b31664e2a8_t.png','/upload/034b5dc0ce1d3156d3a3b09cfdaad6e5_t.png','/upload/0d5a7f1a813ca9a027793b888d82f22d_t.png','/upload/bae687e2ce319f63c0769e6429047236_t.png','/upload/3e8cee3273839fdc3d8cde930eff9e8f_t.png','/upload/4f9934674174491eec7f0f6d0d831b52_t.png','/upload/c5b3461aa81b2491712d850f18947c0d_t.png','/upload/7abeb58bbc8ccbf00ae3c3f3cb3a3c3b_t.png','/upload/beae43e9326e758ff35ae9d79c91c915_t.png','/upload/93e4f64cba9b3d16c2160a2320967822_t.png','/upload/79474ad871547972840d664ea08a3e97_t.png',undefined]};subsubproduct[7]=new Array;subsubproduct[7][0]=new Array;subproduct[7][1]={link:'ergonomicsergotron/wall_mounts',name:'Wall Mounts',count:15,item:['/upload/07025e8c392059de8ca933bda77798fb_t.png','/upload/d6592ef9bd4914b056d164b25419adc5_t.png','/upload/e7129b6ab515fe669627a0859250a046_t.png','/upload/3c8c7f99ffba54cfd56fd6aeef047f0c_t.png','/upload/f3264f5d08f4764206a2bf0d2dd5391e_t.png','/upload/771ecc6fd40718e3dd559a3e9349bbf1_t.png','/upload/ed46db74a3eaa7bd324f9ed9dcce61c1_t.png','/upload/2a62fff209720bff347bb00fff07c9e7_t.png','/upload/74fd2ff1b6ec9cb1054804f3df0a6dc2_t.png','/upload/fcfde28795371931f759070a9e5a2834_t.png','/upload/9d8dc92128eb23b3c04199a38c105f9a_t.png','/upload/ad2c63621e9b8000fc75afdf5e3e56a9_t.png','/upload/744c5eb1b3b672aac80a63a72b05e1e0_t.png','/upload/c68becdf717a0ef032187d1ddaa3e571_t.png','/upload/75ac66c28ceb5785f789e597782e40f6_t.png',undefined]};subsubproduct[7]=new Array;subsubproduct[7][1]=new Array;subproduct[7][2]={link:'ergonomicsergotron/cart',name:'Cart',count:13,item:['/upload/5ec7f7fe5caef00d6c120fe320cfdd93_t.png','/upload/9a22268c10892893ba44266ba2bd94c3_t.png','/upload/05d3b556fc4a0db9c8943b018029af56_t.png','/upload/5cf125ed52288b370bc03319dd69ac9e_t.png','/upload/cf99ff8d6748f3bd9e0fe46289367f02_t.png','/upload/efdb3e19739967eef85ace2ec31ade28_t.png','/upload/8fd947db948f068782a6bd982158c378_t.png','/upload/021dd8ac6d2c6e1ee77e3f411efa39cd_t.png','/upload/ddf211b8c69d7a0d2ee291444c4170e1_t.png','/upload/8c0684b47756b1b725e71d37fc3a4ef7_t.png','/upload/08b4f5d2ba8f1313ebc5b50e551480e6_t.png','/upload/63b5f6c9c52d9c46ee76d8dc609f43fd_t.png','/upload/a72db3690ad5f7c33ae3e49d47bead0e_t.png',undefined]};subsubproduct[7]=new Array;subsubproduct[7][2]=new Array;product[product.length]={link:'http://www.webber-racks.com/',name:'Rack & Enclosures',count:-1};$(document).ready(function(){$('#login-login').inputLabel();$('#login-password').inputLabel();$('#search-keyword').inputLabel();$('.captionable').wrap('<div class="captionable-wrap" />');$('.captionable').after('<div class="text">'+$('.captionable').attr('title')+'</div>');$('.captionable-wrap').wrap('<div class="clearfix" />');$('.captionable-wrap').hover(function(e){$(e.currentTarget).find('.text').fadeTo('slow',0.7);},function(e){$(e.currentTarget).find('.text').fadeOut('slow');});$('.header .nested').hover(function(e){$(e.currentTarget).children('ul').css('opacity',0.9).stop(true,true).slideDown().fadeTo('slow',0.9);$(e.currentTarget).siblings('.nested').css('z-index','3');$(e.currentTarget).css('z-index','4');},function(e){$(e.currentTarget).children('ul').stop(false,true).delay(10).fadeOut();});$('.header .product-float').hover(function(e){$(e.currentTarget).children('div').css('opacity',0.9).stop(true,true).slideDown().fadeTo('slow',0.9);$(e.currentTarget).siblings('.nested').css('z-index','3');$(e.currentTarget).css('z-index','4');setTimeout(function(){$('.header .product-float .product-top').hover(product_top)},500);},function(e){$(e.currentTarget).children('div').stop(false,true).delay(10).fadeOut();});function product_third(e){var n=$(e.currentTarget).attr('rel');var floatVarString='';var height=Math.max($('.header .product-float .floatsubsubdiv').height(),Math.max($('.header .product-float .floatdiv').height(),$('.header .product-float .floatsubdiv').height()));if(subsubproduct[currentProduct][currentSubProduct][n].item.length>1){$('.header .product-float .floatdiv').stop(true,true).animate({paddingBottom:'70px'},200);$('.header .product-float .floatphoto').stop(true,true).animate({top:(height+40)+'px',height:'70px',width:'543px'},200);var productString='';for(var i=0;i<subsubproduct[currentProduct][currentSubProduct][n].item.length-1;i++){productString+='<img src="'+subsubproduct[currentProduct][currentSubProduct][n].item[i]+'" />';}
$('.header .product-float .floatphoto').html(productString);}
else{$('.header .product-float .floatdiv').stop(true,true).animate({paddingBottom:'0px'},200);$('.header .product-float .floatphoto').stop(true,true).animate({height:'0px',width:'543px'},200);}
return false;}
function product_second(e){var n=$(e.currentTarget).attr('rel');var floatVarString='';var width=Math.max($('.header .product-float .floatdiv').width(),362);var height=Math.max($('.header .product-float .floatsubsubdiv').height(),Math.max($('.header .product-float .floatdiv').height(),$('.header .product-float .floatsubdiv').height()));if(currentSubProduct!=n&&subsubproduct[currentProduct][n]&&subsubproduct[currentProduct][n].length>0){currentSubProduct=n;width=543;for(var i=0;i<subsubproduct[currentProduct][n].length;i++){if(subsubproduct[currentProduct][n][i].count>0){floatVarString+='<div><a class="product-third" rel="'+i+'" href="/en/products/'+subsubproduct[currentProduct][n][i].link+'">'+subsubproduct[currentProduct][n][i].name+'</a></div>';}
else{floatVarString+='<div><a class="product-third" rel="'+i+'" href="#">'+subsubproduct[currentProduct][n][i].name+'</a></div>';}}
$('.header .product-float .floatsubsubdiv').html(floatVarString).css('display','none');height=Math.max($('.header .product-float .floatsubsubdiv').height(),Math.max($('.header .product-float .floatdiv').height(),$('.header .product-float .floatsubdiv').height()));$('.header .product-float .floatdiv').stop(true,true).animate({width:width+'px'},200);$('.header .product-float .floatdiv').stop(true,true).animate({height:height+'px'},200);$('.header .product-float .floatsubsubdiv').stop(true,true).show('slide',{direction:'left'},200);$('.header .product-float .product-third').hover(product_third);}
if(subproduct[currentProduct][n].item.length>1){$('.header .product-float .floatdiv').stop(true,true).animate({paddingBottom:'70px'},200);$('.header .product-float .floatphoto').stop(true,true).animate({top:(height+40)+'px',height:'70px',width:width+'px'},200);var productString='';for(var i=0;i<subproduct[currentProduct][n].item.length-1;i++){productString+='<img src="'+subproduct[currentProduct][n].item[i]+'" />';}
$('.header .product-float .floatphoto').html(productString);}
else{$('.header .product-float .floatdiv').stop(true,true).animate({paddingBottom:'0px'},200);$('.header .product-float .floatphoto').stop(true,true).animate({height:'0px',width:width+'px'},200);}
return false;}
function product_top(e){var n=$(e.currentTarget).attr('rel');var floatVarString='';var height=Math.max($('.header .product-float .floatdiv').height(),$('.header .product-float .floatsubdiv').height());if(currentProduct!=n&&subproduct[n]&&subproduct[n].length>0){currentProduct=n;for(var i=0;i<subproduct[n].length;i++){if(subproduct[n][i].count>0){floatVarString+='<div><a class="product-second" rel="'+i+'" href="/en/products/'+subproduct[n][i].link+'">'+subproduct[n][i].name+'</a></div>';}
else{floatVarString+='<div><a class="product-second" rel="'+i+'" href="#">'+subproduct[n][i].name+'</a></div>';}}
$('.header .product-float .floatsubdiv').html(floatVarString).css('display','none');height=Math.max($('.header .product-float .floatdiv').height(),$('.header .product-float .floatsubdiv').height());$('.header .product-float .floatdiv').stop(true,true).animate({width:'362px'},200);$('.header .product-float .floatdiv').stop(true,true).animate({height:height+'px'},200);$('.header .product-float .floatsubdiv').stop(true,true).show('slide',{direction:'left'},200);if(currentSubProduct!=undefined){currentSubProduct=undefined;$('.header .product-float .floatsubsubdiv').stop(true,true).hide('slide',{direction:'left'},200,function(){$('.header .product-float .floatsubsubdiv').html('');});}
setTimeout(function(){$('.header .product-float .product-second').hover(product_second)},200);}
if(product[n].item.length>1){$('.header .product-float .floatdiv').stop(true,true).animate({paddingBottom:'70px'},200);$('.header .product-float .floatphoto').stop(true,true).animate({top:(height+40)+'px',height:'70px',width:'362px'},200);var productString='';for(var i=0;i<product[n].item.length-1;i++){productString+='<img src="'+product[n].item[i]+'" />';}
$('.header .product-float .floatphoto').html(productString);}
else{$('.header .product-float .floatdiv').stop(true,true).animate({paddingBottom:'0px'},200);$('.header .product-float .floatphoto').stop(true,true).animate({height:'0px',width:'362px'},200);}
return false;}
var currentProduct,currentSubProduct;var floatString='';for(var i=0;i<product.length;i++){if(product[i].count>0){floatString+='<div><a class="product-top" rel="'+i+'" href="/en/products/'+product[i].link+'">'+product[i].name+'</a></div>';}
else if(product[i].count<0){floatString+='<div><a class="product-top" rel="'+i+'" href="'+product[i].link+'">'+product[i].name+'</a></div>';}
else if(subproduct[i]&&subproduct[i].length>0){floatString+='<div><a class="product-top" rel="'+i+'" href="#">'+product[i].name+'</a></div>';}
else{floatString+='<div><a href="#">'+product[i].name+'</a></div>';}}
$('.header .product-float .floatdiv').html(floatString);$('.sidemenu .nested .catlink[href=#]').click(function(e){$(e.currentTarget).siblings('.toggle').click();});$('.sidemenu .nested .toggle').click(function(e){if($(e.currentTarget).attr('rel')=='off'){$(e.currentTarget).attr('rel','on');$(e.currentTarget).addClass('toggle-on');$(e.currentTarget).removeClass('toggle-off');$(e.currentTarget).html('^');$(e.currentTarget).parent().parent().children('ul').stop(true,true).slideDown();return false;}
else{$(e.currentTarget).attr('rel','off');$(e.currentTarget).addClass('toggle-off');$(e.currentTarget).removeClass('toggle-on');$(e.currentTarget).html('V');$(e.currentTarget).parent().parent().children('ul').stop(true,true).slideUp().fadeOut();return false;}});$('.sidemenu .nested .navlink').parents('.nested').find('> span > .toggle[rel=off]').click();$('.sidemenu ul').stop(true,true);function refPhotoChange(e){var targetSrc=$(e.currentTarget).attr('rel');if(targetSrc!=$('#replaceable').attr('src')){$('#replaceable').stop(true,true).fadeOut(function(){$(this).attr('src',targetSrc)}).fadeIn();var ifA=$('#replaceable').parent('a');if(ifA.length>0){ifA.attr('href',$(e.currentTarget).attr('ref'));}}
return false;}
$('#replaceable').load(function(){$('#replaceable').parent().height($('#replaceable').height());});$('.for-replace').hover(refPhotoChange);$('.for-replace').click(refPhotoChange);$('#home-splash').jqFancyTransitions({width:870,height:435,titleOpacity:0,effect:'zipper'});$('.lightbox').fancybox();$('.product-slide').click(function(e){$(".lightbox[href='"+$(e.currentTarget).attr('href')+"']").click();return false;});$('.click-2c-slide').click(function(e){$(".lightbox[rel='"+$(e.currentTarget).attr('src')+"']").click();return false;});});function toggleCart(sender,id){sender=$(sender);$.ajax({url:'/en/cart',type:'post',data:'id='+id,dataType:'json',success:function(data){$('#basket-count').text(data.totalCount);if(data.status=='added'){sender.addClass('checkbox-on');sender.removeClass('checkbox-off');sender.html('Remove from Basket');}
else{sender.removeClass('checkbox-on');sender.addClass('checkbox-off');sender.html('Add to Basket');}}});}
function switchLng(l){var r=/\/(zh|zh-cn|en)\//gi;location.href=location.href.replace(r,'/'+l+'/');}
