window.onload = lade;
//setTimeout("showDiv()", 3000);

function lade() {

  if(window.location.search != "") {
    subsite=window.location.search;
    subsite=subsite.split("?");
	document.getElementById("iframe").src=decodeURIComponent(subsite[1]);
	
  }
 

}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function showDiv(){
	var oDiv = document.getElementById("adLayer");
	var height =(window.innerHeight/2)-(parseInt(oDiv.style.height)/2);
	oDiv.style.display = 'block';
	if (parseInt(oDiv.style.top) < height) {
		oDiv.style.top = (parseInt(oDiv.style.top)+5)+'px';
		
		setTimeout("showDiv()", 3);
	}
	else
		setTimeout("hideDiv()", 15000);
}

function hideDiv(){
	var oDiv = document.getElementById("adLayer");
	oDiv.style.display = 'none';
}


function setBackground(){
	if (navigator.appName == 'Opera'){
		document.getElementById("site").background = "pics/bgOpera.jpg";
		document.getElementById("site").style = "background-attachment:fixed";
	}
}