function resize(h,bigimg,img, bl, js) {
	if(h<350) {
		h = 350;	
	}
	document.getElementById("resize").style.height = h + "px";
	if(bl==1) {
	tmpString = "<a href=\"javascript:;\" onClick=\"openPlan('" + bigimg + "','" + js + "')\"><img src=\"" + img + "\" id=\"imggross\" /></a>";
	} else {
	tmpString = "<img src=\"" + bigimg + "\" id=\"imggross\" />";
	}

	document.getElementById("resize").innerHTML = tmpString;
}


function schliessen() {
 slideUp();
}


function openPlan(bigimg,js) {
	openplan = window.open(bigimg,'plan',js);
	openplan.focus();
	
}

function showWerbung() {
 document.getElementById("werbung").style.visibility = 'visible';
 document.getElementById("cover").style.visibility = 'visible';
}

function Werbung() {
	showWerbung();
	init();
	slideDown();
	setTimeout("schliessen()",100000);
}


function moveTo(obj, x, y) {
        if (document.getElementById) {
        document.getElementById('menuDiv').style.left = x;
        document.getElementById('menuDiv').style.top = y;
        }
}

function init(){
        if(document.getElementById){
        obj = document.getElementById("werbung");
       	obj.style.top = -600 + "px";
        }
}

function slideDown(){
        if(document.getElementById){
                if(parseInt(obj.style.top) < 10){
                        obj.style.top = parseInt(obj.style.top) + 15 + "px";
                        setTimeout("slideDown()",10);
                }
        }
}

function slideUp(){
        if(document.getElementById){
                if(parseInt(obj.style.top) > -600){
                        obj.style.top = parseInt(obj.style.top) - 20 + "px";
                        setTimeout("slideUp()",10);
                } else {
				 	document.getElementById("werbung").style.visibility = 'hidden';
					 document.getElementById("cover").style.visibility = 'hidden';
				}
        }
}

function moveTo(obj, x, y) {
        if (document.getElementById) {
        document.getElementById('menuDiv').style.left = x;
        document.getElementById('menuDiv').style.top = y;
        }
}