	var newwindow;
	var lastID=-1;
	var timeron=false;
	var mytimer;
	
	function show_Layer(obj ,id, language) 
	{
      var tpos;
      var xpos;
      var offset=0;
      if (ie4)
      {
		offset=12;
      }
      if (show_Layer.arguments.length < 3 ) { language=lang2;}
 	  if (lastID!=id)
	  {
	    HideObject(1);
	    lastID=id;
	    if (ns4) {
		     document.Translation.innerHTML="";
			}
		  else if (ie4) {
		     document.all.Translation.innerHTML="";
		  }
		  else {
		     document.getElementById('Translation').innerHTML="";
		  }
	    //getTranslation(id, language);
	  }
	  if (timeron)
	  {
	  	clearTimeout(mytimer);	  
	  }	
	  
     tpos = findPosY(obj)+offset+6+"px";	
	 if (findPosX(obj)+obj.offsetWidth>750)
	 {
		xpos = "510px";
	 }
	 else
	 {
	 	xpos = findPosX(obj)+obj.offsetWidth+offset+5+"px";
 	 }
  	  timeron=true;
  	  //mytimer=setTimeout("showObject('"+tpos+"','"+xpos+"')", 500);
	  mytimer=setTimeout("showTip('"+tpos+"','"+xpos+"','"+id.toString()+"','"+language.toString()+"')", 200);
	}
	
	function showTip(tpos, xpos, id, language)
	{
	  	getTranslation(id, language);
	  	clearTimeout(mytimer);
	  	mytimer=setTimeout("showObject('"+tpos+"','"+xpos+"')", 400);
	}
	
	function hide_Layer(e)
	{
	  clearTimeout(mytimer);
	  timeron=true;
	  mytimer=setTimeout("HideObject(1)", 500);
	}
	
	function openurl(url)
	{
		newwindow=window.open(url,'name','height=100,width=100');
		if (window.focus) {newwindow.focus()}
	}
	
   	ns4 = document.layers;
	ie4 = document.all;
	nn6 = document.getElementById && !document.all; 
	
	   function bodyOnLoad() 
	   
	   {
	      new Rico.Effect.Round( null, 'roundNormal' );
	      //new Rico.Effect.Round( null, 'roundCompact', {compact:true} );
	      //new Rico.Effect.Round( null, 'roundComBor', {compact:true, border: '#000044'} );
	      for ( var i = 0 ; i < onloads.length ; i++ )
	         onloads[i]();
	   }

	function showObject(tpos, xpos) {
	  
	  if (ns4) {
	     document.wordBox.visibility = "show";
	     document.wordBox.top=tpos;
	     document.wordBox.left=xpos;
		}

	  else if (ie4) {
	     document.all['wordBox'].style.visibility = "visible";
	     document.all['wordBox'].style.top=tpos;
	     document.all['wordBox'].style.left=xpos;
	
	  }
	  else {
	     document.getElementById('wordBox').style.visibility = "visible";
	     document.getElementById('wordBox').style.top=tpos;
	     document.getElementById('wordBox').style.left=xpos;
	  }
	  	
	  timeron=false; 
	}
	
	function HideObject() {
	  clearTimeout(mytimer);
	  if (ns4) {
	     document.wordBox.visibility = "hide";
	  }
	  else if (ie4) {
	     document.all['wordBox'].style.visibility = "hidden";
	  }
	  else {
	     document.getElementById('wordBox').style.visibility = "hidden";
	  }
	  lastID=0;
 	  	
	  timeron=false;
	}

	function findPosX(obj)
	{
		var curleft = 0;
		if (obj.offsetParent)
		{
			while (obj.offsetParent)
			{
				curleft += obj.offsetLeft
				obj = obj.offsetParent;
			}
		}
		else if (obj.x)
			curleft += obj.x;
		return curleft;
	}
	
	function findPosY(obj)
	{
		var curtop = 0;
		if (obj.offsetParent)
		{
			while (obj.offsetParent)
			{
				curtop += obj.offsetTop
				obj = obj.offsetParent;
			}
		}
		else if (obj.y)
			curtop += obj.y;
		return curtop;
	}
	
	var onloads = new Array();
   onloads.push( registerAjaxStuff );

   function registerAjaxStuff() {
      ajaxEngine.registerRequest( 'getTranslation', '/clip2go/getTranslation_Word.php?' );
      ajaxEngine.registerAjaxElement( 'Translation' );
   }

   function getTranslation(id, language) {
      if (language==0) 
      {
		language=lang2;
	  }
      ajaxEngine.sendRequest( 'getTranslation',
                              "id=" + id, "lang="+language );
   }
   
function show_stars(nr) {
	 //alert(stars[nr]);
	if (nr==6)
	{
		document.images["stern1"].src="/clip2go/img/"+stars[1];
		document.images["stern2"].src="/clip2go/img/"+stars[2];
		document.images["stern3"].src="/clip2go/img/"+stars[3];
		document.images["stern4"].src="/clip2go/img/"+stars[4];
		document.images["stern5"].src="/clip2go/img/"+stars[5];
	}
	else
	{
	  	for(i=1; i<6; i++)
	  	{
	  	  	if (i<=nr)
	  	  	{
				document.images["stern"+i].src="/clip2go/img/stern_gelb.png";  
			}
			else
			{	
			  	document.images["stern"+i].src="/clip2go/img/stern_leer.png";  
			}
		    
		}
		
	}
}