document.onmousemove = updateTooltipp;

function updateTooltipp(e) {
	x = (document.all) ? window.event.x + document.body.scrollLeft : e.pageX;
	y = (document.all) ? window.event.y + document.body.scrollTop  : e.pageY;
	wmtt = document.getElementById('tooltip');
	wmtt.style.left = x + 10 + "px";
	wmtt.style.top 	= (y - 30) + "px";	
}

function showTooltipp(what) {
	wmtt = document.getElementById('tooltip');
	if(what.indexOf('.gif')!=-1 || what.indexOf('.jpg')!=-1){
		what = '<img src="'+what+'" width="400" height="257" border="0">';
	}	
	wmtt.innerHTML = what;
	wmtt.style.display = "block";
}

function hideTooltipp() {
	document.getElementById('tooltip').style.display = "none";	
}

function showEK(what){
	if(document.getElementById('ek_anzahl')){
		anz = parseInt(document.getElementById('ek_anzahl').innerHTML)+1;		
		for(i=1;i<anz;i++){
			temp = document.getElementById('ek_'+i);
			if(temp){
				if(what == 1)
					temp.style.display = 'block';
				else
					temp.style.display = 'none';
			}
		}
		
		
		jetzt=new Date();
		auszeit = new Date(jetzt.getTime()+31536000);      
		
		if(what==1){
			if(document.getElementById('ek_netto'))
				document.getElementById('ek_netto').style.display = 'block';
	      document.cookie = "ShopCasioEK=1;expires="+auszeit.toGMTString()+";";			      
			document.getElementById('textEK').innerHTML = '<a href="javascript:showEK(0)" style="font-size:11px;">'+ek_ausblenden+'</a>';
		}else{
			if(document.getElementById('ek_netto'))
document.getElementById('ek_netto').style.display = 'none';
			document.cookie = "ShopCasioEK=0;expires="+auszeit.toGMTString()+";";
			document.getElementById('textEK').innerHTML = '<a href="javascript:showEK(1)" style="font-size:11px;">'+ek_einblenden+'</a>';
		}
	}
}

