function grow(img,name){
  var i=document.getElementById(img).width;
  for (i; i<=64;i++){ 
      doit(img,i);
      if (i==64){
      document.getElementById(img).src= "./interface/icons/"+name+"64.png";
      document.getElementById(img).style.position = "relative";
      document.getElementById(img).style.top = "-32px";
      document.getElementById("title_hover"+name).style.display="block";
    }
  }
}
function shrink(img,name){
  var i=document.getElementById(img).width;
  for (i; i>=32;i=i-1){ 
      doit(img,i);
    if (i==32){
    document.getElementById(img).src="./interface/icons/"+name+"32.png";
    document.getElementById(img).style.position="relative";
    document.getElementById(img).style.top="0px";
    document.getElementById("title_hover"+name).style.display="none";
    }
  }
} 
function doit(img,i){
  document.getElementById(img).width = i;
  document.getElementById(img).height = i;
}
function specialShow(show){

	$('#special_content').animate({top:50,opacity:0,fontSize:'6em'},600,'easeInOutCubic');
if (show=='one'){
	specialHide('two');
	specialHide('three');
	specialShower(show);
        document.getElementById('1').style.color = "#f00";
} else if (show=='two'){
	specialHide('one');
	specialHide('three');
	specialShower(show);
        document.getElementById('2').style.color = "#f00";
} else if (show=='three'){
	specialHide('one');
	specialHide('two');
	specialShower(show);
        document.getElementById('3').style.color = "#f00";
}
}

function specialHide(hide){
if (hide == "one") {
$('#'+hide).animate({top:50,opacity:0},800,'easeOutCubic'
);
} else {
$('#'+hide).animate({top:50,opacity:0,fontSize:'6em'},800,'easeOutCubic'
);
}
$('#'+hide).animate({top:100,opacity:0,fontSize:"0.4em"},1);
        document.getElementById('1').style.color = "#fff";
        document.getElementById('2').style.color = "#fff";
        document.getElementById('3').style.color = "#fff";
}
function specialShower(shower){
var width=window.outerWidth*0.0016;
$('#'+shower).animate({opacity:100,fontSize:width+"em"},2500,'easeInCubic');
}



/* EXPERIMENTAL DIV LOCKING via RENAMING
   function lock(img,name){
    var locked=img;
    document.getElementById(img).id="lock"+img;
    document.getElementById("title_hover"+name).style.display="none";
    }
   function unlock(img,name){
    document.getElementById("lock"+img).id=img;
   }
   */
   
function popUp (address) {
  MeinFenster = window.open(address, "Display", "width=480,height=640,right=100,top=100");
  MeinFenster.focus();
}

function openIFrame(IFrameID, URL){
ifId=gmobj(IFrameID)
ifId.location.href=URL // Opera Bug Fix. ifId.src=URL
}

function popup (url) {
 var height=window.outerHeight*0.7;
 var width=window.outerWidth*0.33;
 var current="width="+width+",height="+height+",top=50,left=20,resizable=no";
 fenster = window.open(url, "Popupfenster", current);
 fenster.focus();
 return false;
}