var bIE=document.all && !window.opera;
var bNS=document.getElementById && !document.all;
var bCR=navigator.userAgent.toLowerCase().indexOf('chrome')>-1;
var bOP=window.opera;
var liveid="LiveSearch",compstr="",compcnt=0,comparr=new Array(),info,infi,hdrc=screen.height/80-screen.height%80/80;
var top10sel=1;
document.write('<div id=tipdiv></div><img id=tiparr src="'+bhref+'img/tooltip.gif">');
document.write('<div id=darken><img src="'+bhref+'img/_overlay.png" width='+(screen.width-22)+' height=3000></div>');

function setObj(o){
	if(document.getElementById){obj=document.getElementById(o);}
	else if(document.all){obj=document.all[o];}
	else if(document.layers){obj=document.layers[o];}
	return obj;
}
function emailOK(what){
	var itsOK=true;
	var Temp=eval("document."+what);
	var AtSym=Temp.value.indexOf("@");
	var Period=Temp.value.lastIndexOf(".");
	var Space=Temp.value.indexOf(" ");
	var Length=Temp.value.length-1;
	itsOK=(AtSym!=-1)&&(Period>AtSym+1)&&(Period!=Length)&&(Space==-1);
	if(!itsOK){alert("Lütfen e-posta adresinizi kontrol ediniz!");Temp.focus();}
	return itsOK;
}
function setCompstr(t,z){
	if(compcnt==z && t.checked==true){alert('Lütfen EN FAZLA '+z+' MODEL seçiniz.');t.checked=false;}
	else{
		comparr[compcnt]=t.value;
		compcnt=0;
		compstr="";
		if(t.checked==false)for(i=0;i<comparr.length;i++)if(comparr[i]==t.value){comparr[i]=null;}
		for(i=0;i<comparr.length;i++)if(comparr[i]){compstr+="i"+(i+1)+"="+comparr[i]+"&";compcnt++;}
	}
}
/// TIPBOX ///
var fromCurX=16,fromCurY=16,fromArrX=10,fromArrY=14,enabletip=false;
var tipobj=document.getElementById("tipdiv");
var arrobj=document.getElementById("tiparr");
function iebody(){
	return (document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body;
}
function posTip(e){
	if(!enabletip)return false;
	var nondefpos=false;
	var curX=(bNS)?e.pageX:event.clientX+iebody().scrollLeft;
	var curY=(bNS)?e.pageY:event.clientY+iebody().scrollTop;
	var winW=bIE?iebody().clientWidth:window.innerWidth-20;
	var winH=bIE?iebody().clientHeight:window.innerHeight-20;
	var rightedge=bIE?winW-event.clientX-fromCurX:winW-e.clientX-fromCurX;
	var bottomedge=bIE?winH-event.clientY-fromCurY:winH-e.clientY-fromCurY;
	var leftedge=(fromCurX<0)?fromCurX*(-1):-1000;
	if(rightedge<tipobj.offsetWidth){
		tipobj.style.left=curX-tipobj.offsetWidth+"px";arrobj.style.left=curX-50+fromCurX+"px";
	}
	else if(curX<leftedge){tipobj.style.left="5px";}
	else{tipobj.style.left=curX+fromCurX-fromArrX+"px";arrobj.style.left=curX+fromCurX+"px";}
	if(bottomedge<tipobj.offsetHeight){tipobj.style.top=curY-tipobj.offsetHeight-fromCurY+"px";nondefpos=true;}
	else{tipobj.style.top=curY+fromCurY+fromArrY+"px";arrobj.style.top=curY+fromCurY+"px";}
	tipobj.style.visibility="visible";
	if(nondefpos){arrobj.style.visibility="hidden"}else{arrobj.style.visibility="visible"}
}
function hideT(){
	if(bIE||bNS||bOP){
		tipobj.style.visibility="hidden";
		arrobj.style.visibility="hidden";
		tipobj.style.left="-1000px";
		tipobj.style.backgroundColor='';
		tipobj.style.width='';
		enabletip=false;
	}
}
function showTip(thetext){
	if(bIE||bNS||bOP){
		tipobj.style.width="252px";
		tipobj.style.backgroundColor="lightyellow";
		tipobj.innerHTML=thetext;
		enabletip=true;
	}
}
/// AJAX ///
var xmlHttp;
function GetXmlHttpObject(){
	var xmlHttp=null;
	try{xmlHttp=new XMLHttpRequest();} // Firefox, Opera 8.0+, Safari
	catch(e){ // IE
		try{xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}
		catch(e){xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}
	}
	return xmlHttp;
}
function showResult(str){
	oid=setObj(liveid);
	if(liveid=="LiveSearch"){
		if(str.length==0){
			oid.style.background="url('"+bhref+"img/livesearch.gif') no-repeat";
			//document.getElementById(liveid).style.left=(screen.width-200)/2;
			oid.innerHTML="Buraya aradığınız marka veya modelin adını yazınız. Sadece marka ya da sadece model adı yazabilirsiniz. Bu sözcüklere benzeyen ürünler bu kutuda listelenecektir.<br><br><u>Örnekler:</u><br>nokia 1100<br>pana fz8<br>a720<br>toshiba";
			oid.style.visibility="visible";
			//document.getElementById(liveid).style.background="url('')";
			return false;
		}
		var url=bhref+"AjaxLive.php?m="+liveid+"&k="+str+"&sid="+Math.random();
	}
	if(liveid=="LiveWiz"){
		liveoth="";//liveoth=document.getElementById("other").value;
		if(livecnt==0 && liveoth=="")return false;
		str="";
		for(var i=1;i<livesel.length;i++){if(livesel[i])str+=livesel[i]+"&";}
		if(liveoth!="")str+="other="+liveoth+"&";
		str+="xyz=";
		var url=bhref+"AjaxLive.php?m="+liveid+"&catid="+catid+"&image="+liveimg+ "&maxxx="+livemax+"&shows="+liverow+"&"+str+"&sid="+Math.random();
	}
	xmlHttp=GetXmlHttpObject();
	if(xmlHttp==null){alert ("Tarayıcınızın HTTP Desteği Açık Değil!");return;}
	xmlHttp.onreadystatechange=stateChanged;
	xmlHttp.open("GET",url,true);
    //if(xmlHttp.overrideMimeType){xmlHttp.overrideMimeType("text/xml; charset=iso-8859-9");}
	xmlHttp.send(null);
}
function stateChanged(){
	oid=setObj(liveid);
	if(xmlHttp.readyState==4 || xmlHttp.readyState=="complete"){
		oid.innerHTML=xmlHttp.responseText;
		if(liveid=="LiveSearch"){
			if(xmlHttp.responseText=="None!")oid.innerHTML="Model bulunamadı!<br><br>Bu model hızlı arama sonuçları içinde bulunamadı!<br><br>Model adını doğru yazdığınızdan eminseniz üstteki ARA düğmesine tıklayarak kapsamlı arama yaptırabilirsiniz.";
			//document.getElementById(liveid).style.background="url('"+bhref+"img/livesearch.gif') no-repeat";
			oid.style.visibility="visible";
		}
		if(liveid=="LiveWiz"){
			if(xmlHttp.responseText=="None!")oid.innerHTML="<br>Aradığınız özelliklere sahip model bulunamadı!";
		}
	}
	else{
		if(liveid=="LiveSearch"){
			oid.innerHTML="<img src='"+bhref+"img/wait6.gif' align=absmiddle> Arıyor...";
		}
		if(liveid=="LiveWiz"){
			if(livecnt>0 || liveoth!=""){oid.innerHTML="<br><table width=40 height=48 cellpadding=0 cellspacing=0 background='"+bhref+"img/wait0.gif'><tr><td align=center><img src='"+bhref+"img/wait6.gif' align=absmiddle><br><br></table><br>Arıyor...";}else{resetAll();}
		}
	}
}
/// REFLECTION ///
document.getElementsByClassName=function(className){
	var children=document.getElementsByTagName('*')||document.all;
	var elements=new Array();
	for(var i=0;i<children.length;i++){
		var child=children[i];
		var classNames=child.className.split(' ');
		for(var j=0;j<classNames.length;j++){if(classNames[j]==className){elements.push(child);break;}}
	}
	return elements;
}
var Reflection={
	defaultHeight:0.5,defaultOpacity:0.5,
	add:function(image,options){
		Reflection.remove(image);
		doptions={"height":Reflection.defaultHeight,"opacity":Reflection.defaultOpacity}
		if(options){for(var i in doptions){if(!options[i]){options[i]=doptions[i];}}}else{options=doptions;}
		try{
			var d=document.createElement('div');
			var p=image;
			var classes=p.className.split(' ');
			var newClasses='';
			for(j=0;j<classes.length;j++){
				if(classes[j]!="reflect"){if(newClasses){newClasses+=' '}newClasses+=classes[j];}
			}
			var reflectionHeight=Math.floor(p.height*options['height']);
			var divHeight=Math.floor(p.height*(1+options['height']));
			var reflectionWidth=p.width;
			if(document.all && !window.opera){
                if(p.parentElement.tagName=='A'){var d=document.createElement('a');d.href=p.parentElement.href;}  
				d.className=newClasses;
				p.className='reflected';
				d.style.cssText=p.style.cssText;
				p.style.cssText='vertical-align: bottom';
				var reflection=document.createElement('img');
				reflection.src=p.src;
				reflection.style.width=reflectionWidth+'px';
				reflection.style.marginBottom="-"+(p.height-reflectionHeight)+'px';
				reflection.style.filter='flipv progid:DXImageTransform.Microsoft.Alpha(opacity='+(options['opacity']*100)+',style=1,finishOpacity=0,startx=0,starty=0,finishx=0,finishy='+(options['height']*100)+')';
				d.style.width=reflectionWidth+'px';
				d.style.height=divHeight+'px';
				p.parentNode.replaceChild(d, p);
				d.appendChild(p);
				d.appendChild(reflection);
			}else{
				var canvas=document.createElement('canvas');
				if(canvas.getContext){
					d.className=newClasses;
					p.className='reflected';
					d.style.cssText=p.style.cssText;
					p.style.cssText='vertical-align: bottom';
					var context=canvas.getContext("2d");
					canvas.style.height=reflectionHeight+'px';
					canvas.style.width=reflectionWidth+'px';
					canvas.height=reflectionHeight;
					canvas.width=reflectionWidth;
					d.style.width=reflectionWidth+'px';
					d.style.height=divHeight+'px';
					p.parentNode.replaceChild(d,p);
					d.appendChild(p);
					d.appendChild(canvas);
					context.save();
					context.translate(0,image.height-1);
					context.scale(1,-1);
					context.drawImage(image,0,0,reflectionWidth,image.height);
					context.restore();
					context.globalCompositeOperation="destination-out";
					var gradient=context.createLinearGradient(0,0,0,reflectionHeight);
					gradient.addColorStop(1,"rgba(255,255,255,1.0)");
					gradient.addColorStop(0,"rgba(255,255,255,"+(1-options['opacity'])+")");
					context.fillStyle=gradient;
					if(navigator.appVersion.indexOf('WebKit')!=-1){context.fill();}
					else{context.fillRect(0,0,reflectionWidth,reflectionHeight*2);}
				}
			}
		} catch(e){
	   }
	},
	remove:function(image){
		if(image.className=="reflected"){
			image.className=image.parentNode.className;
			image.parentNode.parentNode.replaceChild(image,image.parentNode);
		}
	}
}
function addReflections(){
	var rimages=document.getElementsByClassName('reflect');
	for(i=0;i<rimages.length;i++){
		var rheight=ropacity=null;
		var classes=rimages[i].className.split(' ');
		for(j=0;j<classes.length;j++){
			if(classes[j].indexOf("rheight")==0){var rheight=classes[j].substring(7)/100;}
			else if(classes[j].indexOf("ropacity")==0){var ropacity=classes[j].substring(8)/100;}
		}
		Reflection.add(rimages[i],{height:rheight,opacity:ropacity});
	}
}
/// MULTI DIVs ///
var cur_lyr="lyr1";var cur_indice="1";
function swapLayers(id,indice){if(cur_lyr)hideLayer(cur_lyr,cur_indice);showLayer(id,indice);cur_lyr=id;cur_indice=indice}
function showLayer(id,indice){var a=getElemRefs("top10li"+indice);var span=getElemRefs("top10span"+indice);var lyr=getElemRefs(id);if(lyr&&lyr.css){lyr.css.visibility="visible";lyr.css.height="auto"}a.css.backgroundPosition="0% -42px";a.css.color="#FFFFFF";span.css.backgroundPosition="100% -42px";span.css.color="#FFFFFF"}
function hideLayer(id,indice){var a=getElemRefs("top10li"+indice);var span=getElemRefs("top10span"+indice);var lyr=getElemRefs(id);if(lyr&&lyr.css){lyr.css.visibility="hidden";lyr.css.height="0"}a.css.backgroundPosition="0% 0px";a.css.color="#666666";span.css.backgroundPosition="100% 0px";span.css.color="#666666"}
function getElemRefs(id){var el=(document.getElementById)?document.getElementById(id):(document.all)?document.all[id]:(document.layers)?document.layers[id]:null;if(el)el.css=(el.style)?el.style:el;return el}
/// SHOWHIDE ///
function divOnOff(obj){
	var ele,vis;
	if(document.getElementById){ele=document.getElementById(obj);}
	else if(document.all){ele=document.all[obj];}
	else if(document.layers){ele=document.layers[obj];}
	vis=ele.style;
	if(vis.display=='' && ele.offsetWidth!=undefined && ele.offsetHeight!=undefined)
	vis.display=(ele.offsetWidth!=0 && ele.offsetHeight!=0)?'block':'none';
	vis.display=(vis.display==''||vis.display=='block')?'none':'block';
}
/// THUMBS ///
var thumbViewer={
	enableTitle:true,
	enableAnimation:true,
	definefooter:'<div class=footerbar></div>',
	defineLoading:'<img src="'+bhref+'img/wait6.gif">',
	scrollbarwidth:16,
	opacitystring:'filter:progid:DXImageTransform.Microsoft.alpha(opacity=0);-moz-opacity:0;opacity:0',
	targetlinks:[],
	createthumbBox:function(){
		document.write('<div id=thumbBox onClick="thumbViewer.closeit()"><div id="thumbImage"></div>'+this.definefooter+'</div>');
		document.write('<div id=thumbLoading>'+this.defineLoading+'</div>');
		this.thumbBox=document.getElementById("thumbBox");
		this.thumbImage=document.getElementById("thumbImage");
		this.thumbLoading=document.getElementById("thumbLoading");
		this.standardbody=(document.compatMode=="CSS1Compat")?document.documentElement:document.body;
	},
	centerDiv:function(divobj){
		var ie=document.all && !window.opera;
		var dom=document.getElementById;
		var scroll_top=(ie)? this.standardbody.scrollTop : window.pageYOffset;
		var scroll_left=(ie)? this.standardbody.scrollLeft : window.pageXOffset;
		var docwidth=(ie)? this.standardbody.clientWidth : window.innerWidth-this.scrollbarwidth;
		var docheight=(ie)? this.standardbody.clientHeight: window.innerHeight;
		var docheightcomplete=(this.standardbody.offsetHeight>this.standardbody.scrollHeight)? this.standardbody.offsetHeight : this.standardbody.scrollHeight;
		var objwidth=divobj.offsetWidth;
		var objheight=divobj.offsetHeight;
		var topposition=(docheight>objheight)? scroll_top+docheight/2-objheight/2+"px" : scroll_top+10+"px";
		divobj.style.left=docwidth/2-objwidth/2+"px";
		divobj.style.top=Math.floor(parseInt(topposition))+"px";
		divobj.style.visibility="visible";
	},
	showthumbBox:function(){
		this.centerDiv(this.thumbBox);
		if (this.enableAnimation){
			this.currentopacity=0.1;
			this.opacitytimer=setInterval("thumbViewer.opacityanimation()",66);
		}
	},
	loadimage:function(link){
		document.getElementById("darken").style.display="block";
		if(this.thumbBox.style.visibility=="visible")this.closeit();
		var imageHTML='<img src="'+link.getAttribute("href")+'" style="'+this.opacitystring+'">';
		if(this.enableTitle && link.getAttribute("title"))imageHTML+='<br><font color=gray>'+link.getAttribute("title")+'</font>';
		this.centerDiv(this.thumbLoading);
		this.thumbImage.innerHTML=imageHTML;
		this.featureImage=this.thumbImage.getElementsByTagName("img")[0];
		this.featureImage.onload=function(){
			thumbViewer.thumbLoading.style.visibility="hidden";
			thumbViewer.showthumbBox();
		}
		if (document.all && !window.createPopup)this.featureImage.src=link.getAttribute("href");
		this.featureImage.onerror=function(){thumbViewer.thumbLoading.style.visibility="hidden";}
	},
	setimgopacity:function(value){
		var targetobject=this.featureImage;
		if (targetobject.filters && targetobject.filters[0]){
			if (typeof targetobject.filters[0].opacity=="number"){targetobject.filters[0].opacity=value*100;}
			else{targetobject.style.filter="alpha(opacity="+value*100+")";}
		}
		else if (typeof targetobject.style.MozOpacity!="undefined"){targetobject.style.MozOpacity=value;}
		else if (typeof targetobject.style.opacity!="undefined"){targetobject.style.opacity=value;}
		else this.stopanimation();
	},
	opacityanimation:function(){
		this.setimgopacity(this.currentopacity);
		this.currentopacity+=0.1;
		if (this.currentopacity>1)this.stopanimation();
	},
	stopanimation:function(){
		if (typeof this.opacitytimer!="undefined")clearInterval(this.opacitytimer);
	},
	closeit:function(){
		this.stopanimation();
		this.thumbBox.style.visibility="hidden";
		this.thumbImage.innerHTML="";
		this.thumbBox.style.left="-2000px";
		this.thumbBox.style.top="-2000px";
		document.getElementById("darken").style.display="none";
	},
	cleanup:function(){
		this.thumbLoading=null;
		if (this.featureImage) this.featureImage.onload=null;
		this.featureImage=null;
		this.thumbImage=null;
		for (var i=0; i<this.targetlinks.length; i++)this.targetlinks[i].onclick=null;
		this.thumbBox=null;
	},
	dotask:function(target, functionref, tasktype){
		var tasktype=(window.addEventListener)? tasktype : "on"+tasktype;
		if (target.addEventListener){target.addEventListener(tasktype, functionref, false);}
		else if (target.attachEvent){target.attachEvent(tasktype, functionref);}
	},
	init:function(){
		if (!this.enableAnimation)this.opacitystring=""
		var pagelinks=document.getElementsByTagName("a");
		for (var i=0; i<pagelinks.length; i++){
			if (pagelinks[i].getAttribute("rel") && pagelinks[i].getAttribute("rel")=="thumbnail"){
				pagelinks[i].onclick=function(){
					thumbViewer.stopanimation();
					thumbViewer.loadimage(this);
					return false;
				}
				this.targetlinks[this.targetlinks.length]=pagelinks[i];
			}
		}
		this.dotask(window, function(){if (thumbViewer.thumbBox.style.visibility=="visible") thumbViewer.centerDiv(thumbViewer.thumbBox)}, "resize");
	}
}
thumbViewer.createthumbBox();
thumbViewer.dotask(window,function(){thumbViewer.init()},"load");
thumbViewer.dotask(window,function(){thumbViewer.cleanup()},"unload");
/// EYES ///
UMeyes={img:bhref+"img/ucuzmatik.gif",w:256,h:72,link:"http://www.ucuzmatik.com"};
UMeye1={img:bhref+"img/umeyes.gif",w:8,h:8,x:17,y:21,xr:3,yr:3};
UMeye2={img:bhref+"img/umeyes.gif",w:8,h:8,x:36,y:21,xr:3,yr:3};
var UMeyesdeltat=40,UMeyesfollow=100,bXX=0,mousex=0,mousey=0,followx=0,followy=0;
if(bIE){bXX=1;UMeye1.y=UMeye1.y-4;UMeye2.y=UMeye2.y-4;}else if(bNS){bXX=2;}else if(bOP){bXX=3;}else{bXX=0;}
function UMeyesobj(id){
	var i,x;
	x=document[id];
	if(!x && document.all)x=document.all[id];
	for(i=0;!x && i<document.forms.length;i++)x=document.forms[i][id];
	if(!x && document.getElementById)x=document.getElementById(id);
	return(x);
}
function UMeyesmove(){
	var ex,ey,dx,dy;
	dx=mousex-followx;
	dy=mousey-followy;
	followx+=dx*UMeyesfollow/100;
	followy+=dy*UMeyesfollow/100;
	if(UMeyes.o && UMeye1.o && UMeye2.o && UMeyes.o.style){
		dx=followx-UMeyes.o.offsetLeft-UMeye1.x;
		dy=followy-UMeyes.o.offsetTop- UMeye1.y;
		r=Math.sqrt(dx*dx/(UMeye1.xr*UMeye1.xr)+dy*dy/(UMeye1.yr*UMeye1.yr));
		if(r<1)r=1;
		UMeye1.o.style.left=(dx/r+UMeye1.x-UMeye1.w/2)+"px";
		UMeye1.o.style.top=(dy/r+UMeye1.y-UMeye1.h/2)+"px";
		dx=followx-UMeyes.o.offsetLeft-UMeye2.x;
		dy=followy-UMeyes.o.offsetTop- UMeye2.y;
		r=Math.sqrt(dx*dx/(UMeye2.xr*UMeye2.xr)+dy*dy/(UMeye2.yr*UMeye2.yr));
		if(r<1)r=1;
		UMeye2.o.style.left=(dx/r+UMeye2.x-UMeye2.w/2)+"px";
		UMeye2.o.style.top=UMeye1.o.style.top; //(dy/r+UMeye2.y-UMeye2.h/2)+"px";
	}
}
function UMeyeswr(){
	var img,x,y,a=false;
	if(arguments.length==2){x=arguments[0];y=arguments[1];a=true;}
	if(bXX>0){
		img="<div id='UMeyeso' style='position:"+
		(a ? "absolute; left:"+x+"px; top:"+y+"px" : "relative")+
		"; z-index:5; overflow:hidden; cursor:hand;"+
		"width:"+UMeyes.w+"px; height:"+UMeyes.h+"px'>\n"+
		"<div id='UMeye1o' style='position:absolute; z-index:6; "+
		"left:"+(UMeye1.x-UMeye1.w/2)+"px; top:"+(UMeye1.y-UMeye1.h/2)+"px; "+
		"width:"+UMeye1.w+"px; height:"+UMeye1.h+"px'>\n"+
		"<img src='"+UMeye1.img+"' "+
		"width='"+UMeye1.w+"px' height='"+UMeye1.h+"px' "+
		"onClick=\"location.href='"+UMeyes.link+"'\">\n"+
		"</div>\n"+
		"<div id='UMeye2o' style='position:absolute; z-index:6; "+
		"left:"+(UMeye2.x-UMeye2.w/2)+"px; top:"+(UMeye2.y-UMeye2.h/2)+"px; "+
		"width:"+UMeye2.w+"px; height:"+UMeye2.h+"px'>\n"+
		"<img src='"+UMeye2.img+"' "+
		"width='"+UMeye2.w+"px' height='"+UMeye2.h+"px' "+
		"onClick=\"location.href='"+UMeyes.link+"'\">\n"+
		"</div>\n"+
		"<img src='"+UMeyes.img+"' "+
		"width='"+UMeyes.w+"px' height='"+UMeyes.h+"px' "+
		"onClick=\"location.href='"+UMeyes.link+"'\">\n"+
		"</div>\n";
		document.write(img);
		UMeyes.o=UMeyesobj('UMeyeso');
		UMeye1.o=UMeyesobj('UMeye1o');
		UMeye2.o=UMeyesobj('UMeye2o');
		setInterval("UMeyesmove()",UMeyesdeltat);
	}
}
function mousemoveNS(e){
	mousex=e.pageX;
	mousey=e.pageY;
	window.status="Ucuzmatik :: En ucuzu bulan robot";
	if(bhref=="")slideShow.posit();
	posTip();
	return(true);
}
function mousemoveIE(){
	mousex=window.event.clientX+document.body.scrollLeft;
	mousey=window.event.clientY+document.body.scrollTop;
	window.status="Ucuzmatik :: En ucuzu bulan robot";
	if(bhref=="")slideShow.posit();
	posTip();
}
/**if(document.layers)document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT);**/
/// SDDM ///
var timeout=500;
var closetimer=0;
var ddmenuitem=0;
function menuOpen(id){	
	menuCancelCloseTime();
	if(ddmenuitem)ddmenuitem.style.visibility='hidden';
	ddmenuitem=document.getElementById(id);
	ddmenuitem.style.visibility='visible';
}
function menuClose(){if(ddmenuitem)ddmenuitem.style.visibility='hidden';}
function menuCloseTime(){closetimer=window.setTimeout(menuClose,timeout);}
function menuCancelCloseTime(){if(closetimer){window.clearTimeout(closetimer);closetimer=null;}}
///STARTUP///
switch (bXX){
	case 1:document.onmousemove=mousemoveIE;break;
	case 2:document.captureEvents(Event.MOUSEMOVE);document.onmousemove=mousemoveNS;break;
	case 3:document.onmousemove=mousemoveIE;break;
}
var previousOnload=window.onload;
window.onload=function(){if(previousOnload)previousOnload();addReflections();}

