function changeHeight($element, $startheight, $height, $duration, $transition) 
{
	if(document.getElementById('bookmarks').style.height == "25px") {

	} else {
		var myEffect = $($element).effect('height', {duration: $duration,transition: $transition});
		myEffect.start($startheight, $height);
	}
        
}




        function submitGoogle() {
            if(document.getElementById('searchfield')) {
                valu = document.getElementById('searchfield').value;
                window.location.href='http://www.google.de/search?q='+valu;
            }
        }








function hideLightbox() {
	
    var fadeOut = new Fx.Style('lightbox1', 'opacity',{duration:300});  
  
    fadeOut.start(1.0, 0.0);

    setTimeout("hideOverlay()", 500);

}

function hideOverlay() {
	
   document.getElementById('lightbox1').style.display = "none";
	
    var fadeOutOverlay = new Fx.Style('overlay', 'opacity',{duration:300});
    fadeOutOverlay.start(0.8, 0.0);

}

function showLightbox() {
	
    document.getElementById('overlay').style.display = "block";

    var fadeInOverlay = new Fx.Style('overlay', 'opacity',{duration:300});
    fadeInOverlay.start(0.0, 0.8);

    setTimeout("showBoxItself()", 300);

}

function showBoxItself() {
	
    document.getElementById('lightbox1').style.display = "block";

    var fadeIn = new Fx.Style('lightbox1', 'opacity',{duration:300});    
    fadeIn.start(0.0, 1.0);

}



function transfer(mode, to, from) {
if (mode == 'code') { document.getElementById(to).innerHTML = from; }
if (mode == 'div')  { document.getElementById(to).innerHTML = document.getElementById(from).innerHTML; }


}	


