

//by moove 2005
/*
//Arrays for MISC-Page
titels=new Array("actsrc","stylesrc")
titel_DE= Array("Tools und Sourcen zum Akteur entwickeln","Tools und Sourcen zum Entwickeln von Styles")
titel_US= Array("Tools English","Styles English")


//Arrays for OUTFIT-Page


*/

_uL=navigator.userLanguage
distY =0
_structure="TRUE"

_mVis="false"

window.onload = getText;

function getText()
{
 if(window.parent.lang)
  {_structure="TRUE"}
  else
  {
   if(_uL=="de")
       window.location="http://www.moove.com/shop49.htm";
       else
       window.location="http://www.moove.com/shop.htm";

  }



if(_structure=="TRUE")
{

   if (document.readyState=="complete")
      {

	if((name!="developer") && (name!="externals") && (name!="misc"))
	{

	free = "TRUE";

		if(window.parent.lang=="german")
		{
			actArr=titel_DE;


		}
		else
		{
			actArr=titel_US;

		}


		titels_L=titels.length-1;


		for(n=0; n<=titels_L; n++)



		{
			if(titels[n].charAt(0)=="u")
			{
			eval('document.getElementById("'+titels[n]+'").innerHTML="'+actArr[n]+'"');
			eval('document.getElementById("'+titels[n]+'").style.fontFamily='+'"verdana"');
			eval('document.getElementById("'+titels[n]+'").style.fontSize='+'"10 px"');
			}
			else
			{
				if(titels[n].charAt(0)=="b")
				{
				eval('document.getElementById("'+titels[n]+'").innerHTML="'+actArr[n]+'"');
				}
				else
				{
				eval('document.getElementById("'+titels[n]+'").innerHTML="<b>'+actArr[n]+'</b>"');
				eval('document.getElementById("'+titels[n]+'").style.fontFamily='+'"verdana"');
				eval('document.getElementById("'+titels[n]+'").style.fontSize='+'"10 px"');
				}
			}

		}



		if( name=="sounds" )
		{


			content_L=contents.length-1;


			for(n=0; n<=content_L; n++)
	
			{
				eval('document.getElementById("'+contents[n]+'").innerHTML="'+contArr[n]+'"');
				eval('document.getElementById("'+contents[n]+'").style.fontFamily='+'"verdana"');
				eval('document.getElementById("'+contents[n]+'").style.fontSize='+'"10 px"');	
			}
		}





   }

   window.parent.changeIt('document.getElementById("'+name+'").childNodes[0]','','start')
if(name!="misc" && name!="developer")
{
   window.parent.isCookie();
}




	}
	else;
	{

	free = "TRUE";

	}



	window.parent.clearIt();		
}



}












window.onscroll = isStopper;

function isStopper() 
{
   if(_structure=="TRUE")

   {
	if((name!="developer") && (name!="externals") && (name!="misc"))
	{
		free="TRUE"
	}

	if(free=="FALSE")
		{
			window.scrollTo(0,0)

		}
	distY=document.body.scrollTop

	if(_mVis=="true")
	{
		document.getElementById("uMenue").style.top=distY

	}
   }
}

document.onselectstart = doSelectTest;
window.onerror=errareH
function errareH()
{
//alert("error")
 if(_structure=="TRUE")
 {
  window.parent.errorHandler;
 }
 else
 {
   if(_uL=="de")
       window.location="http://www.moove.com/shop49.htm";
       else
       window.location="http://www.moove.com/shop.htm";
 }
}

function doSelectTest() 
{
    //        return (null == event.srcElement)
}

function doit(d)
{
	if(free=="TRUE")
	{
		window.parent.doit(d)
	}

}


function doit2(d,e)
{
	if(free=="TRUE")
	{
		window.parent.doit2(d,e)
	}

}

function PopUp(l)
{
if(window.parent.lang=="german")
{
url=l+"_49.htm"
}
else
{
url=l+".htm"
}
window.open(url,"pop","menubar=no,width=700,height=500,resizable=yes,scrollbars=yes")
}

function mouseon(a,d,e)
{
	if(a.style.cursor=="hand")
	{
		a.style.filter="xray()";
		a.parentNode.style.backgroundColor="black" ;
	}
if(d && e)
{
	if(window.parent.lang=="english")
	{
		a.alt=e
	}
	else
	{
		a.alt=d
	}
}
}

function mouseoff(a)
{
	if(a.style.cursor=="hand")
	{
		a.parentNode.style.backgroundColor="white" ;
		a.style.filter="";
	}
}


function delCookie()
{

//document.getElementById("switchit").style.display="none"
text=document.cookie.toString();
newArray=text.split(",");
oNumber=newArray.length-1;
end=pageNr.length;
postArray=new Array();
n=-1;
for(var i=0; i<=oNumber; i++)
{
	oStr=newArray[i]
	if(oStr.slice(0,end)==pageNr)
	{
	oStr=eval(oStr);
	oStr.style.filter="";
	oStr.style.cursor="hand";
	oStr.parentNode.style.backgroundColor="white" ;
	newArray[i]=""
	}else{
		n++
		postArray[n]=newArray[i]
		}
}



cook=postArray.toString();
document.cookie=cook+';expires=Wed, 01-Jan-2027 00:00:00 GMT; path=/;';
window.parent.ftPage=""
window.parent.isCookie()
document.getElementById("switchit").style.display="none"

}




function mouseon2(a,d)
{


	if(a.style.cursor=="hand")
	{
		a.style.filter="xray()";
		a.parentNode.style.backgroundColor="black" ;
	}

	if(window.parent.lang=="english")
	{
		d=eval(d)
		window.parent.infotext.innerHTML=miscStdText+d
	}
	else
	{
		d=eval(d+"_49")
		window.parent.infotext.innerHTML=miscStdText_49+d
	}

}



function mouseon3(a,d)
{


	if(a.style.cursor=="hand")
	{
		a.style.filter="xray()";
		a.parentNode.style.backgroundColor="black" ;
	}

	if(window.parent.lang=="english")
	{
		d=eval(d)
		window.parent.infotext.innerHTML=d
	}
	else
	{
		d=eval(d+"_49")
		window.parent.infotext.innerHTML=d
	}

}

function mouseoff2(a)
{
	if(a.style.cursor=="hand")
	{
		a.parentNode.style.backgroundColor="white" ;
		a.style.filter="";
	}
		window.parent.infotext.innerHTML=""
}


document.onmousemove = doCoordChild;

var g_bIE=(document.all);

function doCoordChild(e)
{


    	if(g_bIE)
	{
	 x=event.clientX;
	 y=event.clientY;
	}
   	else
	{
	  x=e.clientX;
	  y=e.clientY;
	}



window.parent.doCoord(x,y,"unten")
//window.parent.titel.innerText=x+";"+y
}


function placeIt(posX)
{

document.getElementById("uMenue").style.left=posX


}

function hideIt(s)
{

if(s==1)
	{
	s=""
	document.getElementById("uMenue").style.display=""
	_mVis="true"
	}
	else
	{

	if(typeof document.getElementById("uMenue")!="undefined")
		{
		document.getElementById("uMenue").style.display="none"
		_mVis="false"
		}

	}

}





function Letitbe() 
{
//window.parent.Letitbe()
}


function buildIt(i,oWidth,posX)
{

  document.getElementById("uMenue").style.left=posX

  document.getElementById("uMenue").style.top=distY

  document.getElementById("uMenue").style.display=""

  document.getElementById("uMenue").innerHTML=i


  oDimMX=document.getElementById("uMenue").clientWidth
  if(oDimMX<oWidth)
    {
    oDimMX=oWidth
    document.getElementById("mTable").style.width=oWidth
    }
  oDimMY=document.getElementById("uMenue").clientHeight
  window.parent.nDim(oDimMX,oDimMY)
  _mVis="true"
}




function mDeco(o,p)
{
if(p==1)
	{
	o.children[0].style.color=window.parent.col1on//"black"
	o.style.background=window.parent.col2on//"white"
	}
	else
	{
	o.children[0].style.color=window.parent.col1off
	o.style.background=""
	}
}

function changeIt(a,b)
{
window.parent.setLastSub(a.parentElement.id)
window.parent.changeIt(a,b)
}


function linkSim(o,p,col)
{
if(p==1)
	{

	o.style.textDecoration="underline"
	o.style.color=col
	}
	else
	{
	o.style.textDecoration="none"
	o.style.color=col
	}
}