// JavaScript Document
<!--


function showNameMove(id, e)
{	
    var posx = 0;
	var posy = 0;
	if (!e) var e = window.event;

	if (e.pageX || e.pageY)
	{
		posx = e.pageX;
		posy = e.pageY;
	}
	else if (e.clientX || e.clientY)
	{
		posx = e.clientX + document.body.scrollLeft	+ document.documentElement.scrollLeft;
		posy = e.clientY + document.body.scrollTop	+ document.documentElement.scrollTop;
	}
	
    document.getElementById('name_' + id).style.display = "block";
    document.getElementById('name_' + id).style.top = (posy - 160) + "px";
    document.getElementById('name_' + id).style.left = (posx - 360) + "px";
 }

function hideNameMove(id, e)
{
    document.getElementById('name_' + id).style.display = "none";
}

function showName(id)
{
    document.getElementById('name_' + id).style.display = "block";
    document.getElementById('name_' + id + '_p').style.backgroundImage = "url(../images/square_" + id + ".jpg)";
    document.getElementById('name_' + id + '_p').style.backgroundPosition = "top left";
    document.getElementById('name_' + id + '_p').style.backgroundRepeat = "no-repeat";
    document.getElementById('td' + id).style.borderBottom = "1px solid #919ac2";
}

function hideName(id)
{
    document.getElementById('name_' + id).style.display = "none";
    //document.getElementById('td' + id).style.color = "#25649e";
    document.getElementById('td' + id).style.backgroundPosition = "top left";
    document.getElementById('td' + id).style.borderBottom = "1px solid #ffffff";
}

function openPopup(url, width, height, winname, closetext)    
{
	var trails = "width=" + width + ",height=" + height + ",toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes,menubar=no";
	newWindow = window.open(url, winname, trails);
	newWindow.document.body.innerHTML += "<a href='javascript:window.close();' style='display:block;width:400px;margin-top:20px;text-align:center;font-family:Verdana,Arial;font-size:12px;color:#7c7c7c;text-decoration:none;'>" + closetext + "</a>";
	newWindow.focus();
}

function openPopUp(pid, picwidth, langId)    
{
	width = picwidth + 80;
	height = 400 +80;
	winname = "detail";
	url = "/" + langId + "/popup_details.aspx?pid=" + pid + "&lnid=" + langId + "";
	
	var trails = "width=" + width + ",height=" + height + ",toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes,menubar=no";
	newWindow = window.open(url, winname, trails);
	newWindow.focus();
}

function openFlashmovie(filename, langId)    
{
	width = 400;
	height = 300;
	winname = "flashmovie";
	url = "/" + langId + "/popup_flashmovie.aspx?filename=" + filename + "&lnid=" + langId + "";
	
	var trails = "width=" + width + ",height=" + height + ",toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes,menubar=no";
	newWindow = window.open(url, winname, trails);
	newWindow.focus();
}

function openFlashmovieLarge(filename, langId)    
{
	width = 750;
	height = 650;
	winname = "flashmovie";
	url = "/" + langId + "/popup_flashmovie_large.aspx?filename=" + filename + "&lnid=" + langId + "";
	
	var trails = "width=" + width + ",height=" + height + ",toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes,menubar=no";
	newWindow = window.open(url, winname, trails);
	newWindow.focus();
}

function checkAGB()
{
	//if ( document.Form1._accept_agb.checked == true )
		document.formPayPal.submit();
	//else
		//alert("Setzen Sie bitte den Haken bei AGB um die Bestellung abzuschliessen!");					
}
        
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_changeProp(objName,x,theProp,theValue) { //v6.0
  var obj = MM_findObj(objName);
  if (obj && (theProp.indexOf("style.")==-1 || obj.style)){
    if (theValue == true || theValue == false)
      eval("obj."+theProp+"="+theValue);
    else eval("obj."+theProp+"='"+theValue+"'");
  }
}
//-->