if (document.images) {

	/*topnavi*/
	
	nav_home_o = new Image(59, 28);
	nav_home_o.src = 'img/top_navi/nav_home2_o.gif';
	nav_home = new Image(59, 28);
	nav_home.src = 'img/top_navi/nav_home2.gif';
	
	nav_games_o = new Image(67, 28);
	nav_games_o.src = 'img/top_navi/nav_games2_o.gif';
	nav_games = new Image(67, 28);
	nav_games.src = 'img/top_navi/nav_games2.gif';
	
	nav_downloads_o = new Image(95, 28);
	nav_downloads_o.src = 'img/top_navi/nav_downloads2_o.gif';
	nav_downloads = new Image(95, 28);
	nav_downloads.src = 'img/top_navi/nav_downloads2.gif';
	
	nav_support_o = new Image(82, 28);
	nav_support_o.src = 'img/top_navi/nav_support2_o.gif';
	nav_support = new Image(82, 28);
	nav_support.src = 'img/top_navi/nav_support2.gif';
	
	nav_estore_o = new Image(56, 28);
	nav_estore_o.src = 'img/top_navi/nav_estore2_o.gif';
	nav_estore = new Image(56, 28);
	nav_estore.src = 'img/top_navi/nav_estore2.gif';
	
	nav_corporate_o = new Image(56, 28);
	nav_corporate_o.src = 'img/top_navi/nav_corporate2_o.gif';
	nav_corporate = new Image(56, 28);
	nav_corporate.src = 'img/top_navi/nav_corporate2.gif';
	
}

function di(id,name){
  if (document.images) {document.images[id].src=eval(name+".src"); }
}

/* Function that swaps images. */
function di20(id, newSrc) {
    var theImage = FWFindImage(document, id, 0);
    if (theImage) {
        theImage.src = newSrc.src;
	  }
}

/* Functions that track and set toggle group button states. */
function FWFindImage(doc, name, j) {
    var theImage = false;
    if (doc.images) {
        theImage = doc.images[name];
    }
    if (theImage) {
        return theImage;
    }
    if (doc.layers) {
        for (j = 0; j < doc.layers.length; j++) {
            theImage = FWFindImage(doc.layers[j].document, name, 0);
            if (theImage) {
                return (theImage);
            }
        }
    }
    return (false);
}

function newwin(link, w, h) {
	window.open( link,"new","toolbar=no,location=no,directories=no,status=,menubar=yes,scrollbars=auto,resizable=no,copyhistory=no,width="+w+",height="+h);
}

function gamejump(form) {
        var myindex=form.gamelist.selectedIndex;
				location=form.gamelist.options[myindex].value;
}

function sharejump(url){
				 windowshare = window.open(url, "place", "width=800,height=600,location=no,resizable=yes,scrollbars=yes");
				 windowshare.focus();
}

window.defaultStatus = "Eidos Deutschland"

function Browser()
{       
        if (navigator.appVersion.indexOf("(X11") != -1 || navigator.appVersion.indexOf("(Mac") != -1) return 1
        else return 0
}
		
function Description(url,dow,winwidth,winheight)
{
   if (stat == 0)
      {
                  description=window.open(url,'descr','screenX=1,screenY=1,toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbar=yes,scrollbars=yes,resizable=yes,copyhistory=yes,width='+winwidth+',height='+winheight)
                  description.focus()
                  stat=dow
                  if (Browser() == 1 ) window.open(url,'descr')
      }
   else
      {
                  description.close()
                  if (stat != dow)
                       { 
                          stat=dow
                          description=window.open(url,'descr','screenX=1,screenY=1,toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbar=yes,scrollbars=yes,resizable=yes,copyhistory=yes,width='+winwidth+',height='+winheight)
                          description.focus()
                          if (Browser() == 1 ) window.open(url,'descr')
                       }
                       else
                           {
                              stat=0
                           }
    }
}
