if(top.location!=document.location){top.location=document.location;}window.onload=function(){WOR();X1(window,'resize',WOR,false);if (window.app_init) app_init();};function WOR(){var sc=$('idSideColumn');var mc=$('idMainColumn');var ftr=$('idFooter');var x,y=X25(mc),h=X19(mc);if(sc){h=Math.max(X19(sc),h);x=X24(sc);}else{x=X24(mc);}X1T(ftr,x,y+h+20);ftr.style.visibility='visible';if(window.winOnLoad)winOnLoad();}function atc_submit(pid, price, desc){var f = document.forms['frmAddToCart'];f.amount.value = price;f.item_number.value = pid;f.item_name.value = desc;f.shopping_url.value = document.URL;f.submit();}function view_cart(){var f = document.forms['frmViewCart'];f.shopping_url.value = document.URL;f.submit();}
/* Compiled from X 4.02 with XC 1.0 on 18Oct06 */
function X1(e,eT,eL,cap){if(!(e=$(e)))return;eT=eT.toLowerCase();if(e==window&&(!X1D&&!e.opera)){if(eT=='resize'){e.xPCW=X8();e.xPCH=X7();e.xREL=eL;xResizeEvent();return;}if(eT=='scroll'){e.xPSL=X2H();e.xPST=X2I();e.xSEL=eL;xScrollEvent();return;}}if(e.addEventListener)e.addEventListener(eT,eL,cap);else if(e.attachEvent)e.attachEvent('on'+eT,eL);else e['on'+eT]=eL;}function xResizeEvent(){if(window.xREL)setTimeout('xResizeEvent()',250);var w=window,cw=X8(),ch=X7();if(w.xPCW!=cw||w.xPCH!=ch){w.xPCW=cw;w.xPCH=ch;if(w.xREL)w.xREL();}}function xScrollEvent(){if(window.xSEL)setTimeout('xScrollEvent()',250);var w=window,sl=X2H(),st=X2I();if(w.xPSL!=sl||w.xPST!=st){w.xPSL=sl;w.xPST=st;if(w.xSEL)w.xSEL();}}function X7(){var h=0,d=document,w=window;if(d.compatMode=='CSS1Compat'&&!w.opera&&d.documentElement&&d.documentElement.clientHeight){h=d.documentElement.clientHeight;}else if(d.body&&d.body.clientHeight){h=d.body.clientHeight;}else if(XE(w.innerWidth,w.innerHeight,d.width)){h=w.innerHeight;if(d.width>w.innerWidth)h-=16;}return h;}function X8(){var w=0,d=document,w=window;if(d.compatMode=='CSS1Compat'&&!w.opera&&d.documentElement&&d.documentElement.clientWidth){w=d.documentElement.clientWidth;}else if(d.body&&d.body.clientWidth){w=d.body.clientWidth;}else if(XE(w.innerWidth,w.innerHeight,d.height)){w=w.innerWidth;if(d.height>w.innerHeight)w-=16;}return w;}function XE(){for(var i=0;i<arguments.length;++i){if(typeof(arguments[i])=='undefined')return false;}return true;}function XU(oEle,sProp,bInt){var s,p='undefined';var dv=document.defaultView;if(dv&&dv.getComputedStyle){s=dv.getComputedStyle(oEle,'');if(s)p=s.getPropertyValue(sProp);}else if(oEle.currentStyle){var a=sProp.split('-');sProp=a[0];for(var i=1;i<a.length;++i){c=a[i].charAt(0);sProp+=a[i].replace(c,c.toUpperCase());}p=oEle.currentStyle[sProp];}else return null;return bInt?(parseInt(p)||0):p;}function $(e){if(typeof(e)=='string'){if(document.getElementById)e=document.getElementById(e);else if(document.all)e=document.all[e];else e=null;}return e;}function X19(e,h){if(!(e=$(e)))return 0;if(X1X(h)){if(h<0)h=0;else h=Math.round(h);}else h=-1;var css=XE(e.style);if(e==document||e.tagName.toLowerCase()=='html'||e.tagName.toLowerCase()=='body'){h=X7();}else if(css&&XE(e.offsetHeight)&&X2S(e.style.height)){if(h>=0){var pt=0,pb=0,bt=0,bb=0;if(document.compatMode=='CSS1Compat'){var gcs=XU;pt=gcs(e,'padding-top',1);if(pt!==null){pb=gcs(e,'padding-bottom',1);bt=gcs(e,'border-top-width',1);bb=gcs(e,'border-bottom-width',1);}else if(XE(e.offsetHeight,e.style.height)){e.style.height=h+'px';pt=e.offsetHeight-h;}}h-=(pt+pb+bt+bb);if(isNaN(h)||h<0)return;else e.style.height=h+'px';}h=e.offsetHeight;}else if(css&&XE(e.style.pixelHeight)){if(h>=0)e.style.pixelHeight=h;h=e.style.pixelHeight;}return h;}var X21,X20,X1D,X1C,X1E,X1W,xUA=navigator.userAgent.toLowerCase();if(window.opera){var i=xUA.indexOf('opera');if(i!=-1){var v=parseInt(xUA.charAt(i+6));X21=v>=7;X20=v<7;}}else if(navigator.vendor!='KDE'&&document.all&&xUA.indexOf('msie')!=-1){X1D=parseFloat(navigator.appVersion)>=4;X1C=xUA.indexOf('msie 4')!=-1;X1E=xUA.indexOf('msie 5')!=-1;}else if(document.layers){X1W=true;}X1O=xUA.indexOf('mac')!=-1;function X1K(e,iX){if(!(e=$(e)))return 0;var css=XE(e.style);if(css&&X2S(e.style.left)){if(X1X(iX))e.style.left=iX+'px';else{iX=parseInt(e.style.left);if(isNaN(iX))iX=0;}}else if(css&&XE(e.style.pixelLeft)){if(X1X(iX))e.style.pixelLeft=iX;else iX=e.style.pixelLeft;}return iX;}X1L={version:'4.02',license:'GNU LGPL',url:'http://cross-browser.com/'};function X1T(e,x,y){X1K(e,x);X36(e,y);}function X1X(){for(var i=0;i<arguments.length;++i){if(isNaN(arguments[i])||typeof(arguments[i])!='number')return false;}return true;}function X24(e){if(!(e=$(e)))return 0;var x=0;while(e){if(XE(e.offsetLeft))x+=e.offsetLeft;e=XE(e.offsetParent)?e.offsetParent:null;}return x;}function X25(e){if(!(e=$(e)))return 0;var y=0;while(e){if(XE(e.offsetTop))y+=e.offsetTop;e=XE(e.offsetParent)?e.offsetParent:null;}return y;}function X2H(e,bWin){var offset=0;if(!XE(e)||bWin||e==document||e.tagName.toLowerCase()=='html'||e.tagName.toLowerCase()=='body'){var w=window;if(bWin&&e)w=e;if(w.document.documentElement&&w.document.documentElement.scrollLeft)offset=w.document.documentElement.scrollLeft;else if(w.document.body&&XE(w.document.body.scrollLeft))offset=w.document.body.scrollLeft;}else{e=$(e);if(e&&X1X(e.scrollLeft))offset=e.scrollLeft;}return offset;}function X2I(e,bWin){var offset=0;if(!XE(e)||bWin||e==document||e.tagName.toLowerCase()=='html'||e.tagName.toLowerCase()=='body'){var w=window;if(bWin&&e)w=e;if(w.document.documentElement&&w.document.documentElement.scrollTop)offset=w.document.documentElement.scrollTop;else if(w.document.body&&XE(w.document.body.scrollTop))offset=w.document.body.scrollTop;}else{e=$(e);if(e&&X1X(e.scrollTop))offset=e.scrollTop;}return offset;}function X2S(s){for(var i=0;i<arguments.length;++i){if(typeof(arguments[i])!='string')return false;}return true;}function X36(e,iY){if(!(e=$(e)))return 0;var css=XE(e.style);if(css&&X2S(e.style.top)){if(X1X(iY))e.style.top=iY+'px';else{iY=parseInt(e.style.top);if(isNaN(iY))iY=0;}}else if(css&&XE(e.style.pixelTop)){if(X1X(iY))e.style.pixelTop=iY;else iY=e.style.pixelTop;}return iY;}
