_W=window; _D=_W.document;
function _G(id){if(_D.getElementById){return _D.getElementById(id+'')}else{return null}}
function _GT(t,d){if(_D.getElementsByTagName){return (d?d:_D).getElementsByTagName(t+'')}else{return []}}
function _GA(o,id){var t='';if(typeof(o)=='object'){if(o.getAttribute){t = o.getAttribute(id+'')};return t}}
function _GC(t,d){var i,j,a,b,k,l,r=[]; a=(d?d:_D).getElementsByTagName("*");k=a.length;for(i=0;i<k;i++){if(a[i].className){b=a[i].className.split(' ');l=b.length;for(j=0;j<l;j++){if(t==b[j]){r[r.length]=a[i]};}}};return r;}
function _E(n,p,id,hide){var e=null;if(_D.createElement){e=_D.createElement(n); if(hide){e.style.display='none'}; (p?p:_D.body).appendChild(e)};if(id){e.id=id};return e}
function _O(o){return typeof(o)=='object'?true:false}


var preloaded_images = [];

window.onload = function(){
/*
	var nav = ['accessories', 'contacts', 'home', 'howtouse', 'instruction', 'ordernow', 'press', 'quikpod', 'wheretobuy'];

	for(var i=0; i<nav.length; i++)
	{
		var j = preloaded_images.length;

		preloaded_images[j] = new Image();
		preloaded_images[j].src = 'common/style/i/nav_'+ nav[i] +'_1.gif';
	}
*/

	var o = _G('nav2');
	if(o)
	{
		var a = _GC('L1', o);
		for(var i=0; i<a.length; i++)
		{
			a[i].onmouseover = function(){
				this.className += ' hover';
			}
			a[i].onmouseout = function(){
				this.className = this.className.replace(/\s*hover/ig,'');
			}
		}
	}


	try{
		browser_fixes();
	}catch(e){}


	if(typeof sIFR == "function")
	{
		sIFR.replaceElement("h1", named({sFlashSrc: "/include/site-2/flash/wicked.swf", sColor: "#000", sWmode: "transparent"}));
		sIFR.replaceElement("h2", named({sFlashSrc: "/include/site-2/flash/wicked.swf", sColor: "#000", sWmode: "transparent"}));
		sIFR.replaceElement(".subheader", named({sFlashSrc: "/include/site-2/flash/wicked.swf", sColor: "#000", sWmode: "transparent"}));
	}
}

function popwin(newURL, w, h) 
{
  window.open(newURL, "newwin","toolbar=no, width="+w+",height="+h+",location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no");
};

function popup(what)
{
	wopt="scrollbars=no,status=no,toolbar=no,menubar=no,resizable=yes,width=700,height=500,screenX=50,screenY=50";
	newpop=window.open("",what,wopt);
	newpop.document.open();
	newpop.document.write('<html><head><link href="/include/site/main.css" rel="stylesheet"></head>');
	wobo="this.resizeTo(this.document.getElementsByTagName('IMG').item(2).width+40,this.document.getElementsByTagName('IMG').item(2).height+155)";
	newpop.document.write('<body class="gPopup" onload="'+wobo+'"><table class="gPopup"><tr><td><table cellpadding="0" cellspacing="0" style="background: #06385D; width: 100%;"><tr><td><img src="/img/logo.gif" alt="Ma Simes" align="top"><img src="/img/masimes.gif" alt="Ma Simes"></td><td align="right" class="close"><br><a href="javascript:window.close();">close x</a> &nbsp;</td></tr></table></td></tr><tr><td><img src="/img/gallery/'+what+'.jpg" alt=""></td></tr></table></body></html>');
	newpop.document.close();
}