var emoBilder = new Array();
if (top.frames.length == 0 && (WebFrameSet !="" & WebFrameSet!="NOFRAME"))
{
	top.location.href = "../LUPFrame/"+WebFrameSet+"?OpenDocument&Document="+WebKey+
            "&Cat="+WebCat+"&Last="+WebCatLast+"&";
}
    
function switchPicture(FileName,Key)
{
      for(i = 0; i < document.images.length; ++i)
  {
    if(document.images[i].name == Key)
    {
       document.images[i].src = FileName;
    }
  }
}
function addEMO( strURL )
{
			emoBilder.push( strURL );
}
function doEMOStart()
{
	window.setTimeout("choosPicture()",10000);
}
function choosPicture()
{
	var nIndex = Math.round(Math.random() * (emoBilder.length-1));
	var strURL = emoBilder[nIndex];
	nextPicture( strURL );
	window.setTimeout("choosPicture()",15000);
	
}
function switchPicture(strURL)
{
	var el = document.getElementById("StartEMO");
	el.style.backgroundImage = "url("+strURL+")";
}
function nextPicture( strURL )
{
	$("StartEMO").fade( { duration: 1.3 });	
	window.setTimeout("switchPicture('"+strURL+"')",1300);
 	$("StartEMO").appear({ duration: 5.0, queue:'end'});
}
function Preload(picArr)
{
}
function OpenFormular(key,width,height)
{
       var F1 = window.open("/servlet/Formular?"+key,"FORMULAR","width="+width+
         ",height="+height+",statusbar,scrollbars,resizeable");
}
function ChangeFrames(key,ContentUrl,last)
{
   parent.NavView.location.href="../WFC/View?OpenDocument&KEY="+key+"&";
    parent.Content.location.href="../Content/"+ContentUrl+"?OpenDocument";
    if (last == 0)
    {      
           parent.CatNavigation.location.href="../WFC/Navigation?OpenDocument&KEY="+key+"&";
    }     
}
function OpenDocument(key,width,height)
{
       var F1 = window.open(key,"Document","width="+width+
         ",height="+height+",statusbar,scrollbars,resizeable");
}
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

