<!--
//
//      (c) 2004 Maik Lindner - http://flux.nifox.de
//

function openWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}

function openNav(b) {
  //str = '';
 
  if ( b == 'true' ) //logged in
    {
    //str = 'sessiontrue';			
	if ( parent.frames['contents'].document.getElementsByName('logout')[0].name == 'logout' ) //not logged in
	   {
       //alert('Alert' + str + 'not logged in (logout set)');		   
       parent.frames['contents'].location.href = 'http://www.tomblogmain.schmorfy.de/nav.php';
	   }   
	}
	
  if ( b == 'false' ) //not logged in
    {
    //str = 'sessionfalse';      	
	if ( parent.frames['contents'].document.getElementsByName('login')[0].name == 'login' ) //logged in
	  {
      //alert('Alert' + str + 'not logged in (login set)');
      parent.frames['contents'].location.href = 'http://www.tomblogmain.schmorfy.de/nav.php';	  
	  }
	}		
}

function openFrame(theURL,frameName) {
  if ( parent.frames[frameName])
  	 { 
  	 parent.frames[frameName].location.href = theURL;
	 }
}

function zeve(uid)
{
        if (document.getElementById(uid).style.display == 'none')
        {
                document.getElementById(uid).style.display = 'block';
        }
        else
        {
                document.getElementById(uid).style.display = 'none';
        }
}

function preloadImages () {
   if (document.images) {
       if (!document.preloadedImages)
           document.preloadedImages = new Array();
       toLoad = preloadImage.arguments;
       len = document.preloadedImages.length;
       for (i=0; i < toLoad.length; i++) {
           document.preloadedImages[len+i] = new Image();
           document.preloadedImages[len+i].src = toLoad[i];
       }
   }   }

function changeImage(name, src) {
   if (document.images) {
       for (i=0; i < window.document.images.length; i++) {
           if (window.document.images[i].name == name) {
               window.document.images[i].src = src;
           }
       }
   }
}


function openBrWindow(theURL,winName,features) { //v2.0
  window.open('http://www.branvan3000.de.vu/','BranVan3000');
}


// -->
