function searchwordfiledfocus() {
	document.getElementById("searchwordfield").style.color = "#ffffff"
}
function searchwordfiledblur() {
	document.getElementById("searchwordfield").style.color = "#B7B7B7"
}

function posbottomcontent() {
	var refY = parseInt(document.getElementById("z").style.top,10)
	var refX = parseInt(document.getElementById("z").style.left,10)
	document.getElementById("bottomContent").style.left = refX
	document.getElementById("bottomContent").style.top = refY + 498
	document.getElementById("bottomContent").style.display = "block"
	if (mi) {
		document.getElementById("searchwordfield").onfocus = new Function("searchwordfiledfocus()")
		document.getElementById("searchwordfield").onblur = new Function("searchwordfiledblur()")
	}
}

function openPopup(url,h,w) { var ww = 480, wh = 340, leftPos = null, topPos = null; 

IE=(document.all)?true:false; 
var wh = (IE)?document.body.clientHeight : window.innerHeight; 
var ww = (IE)?document.body.clientWidth : window.innerWidth; 

if (top.screen){ 
  if (screen.width){ 
    leftPos = Math.round((ww-w-10)/2); 
    topPos = Math.round((wh-h-29)/2); 
  } else { 
    leftPos = 50 
    topPos = 50 
  } 
} 

 popupWin = window.open(url, 'popup', 'status,scrollbars,height=' + h + ',width=' + w + ',top=' + topPos + ',left=' + leftPos + '') 
}

function openFlashPlayer(url,h,w) { 
	var ww = 480, wh = 340, leftPos = null, topPos = null; 

	if (!webeditoreditmode) {
		IE=(document.all)?true:false; 
		var wh = (IE)?document.body.clientHeight : window.innerHeight; 
		var ww = (IE)?document.body.clientWidth : window.innerWidth; 
	
		if (top.screen){ 
			if (screen.width){ 
				leftPos = Math.round((ww-w-10)/2); 
				topPos = Math.round((wh-h-29)/2); 
			} else { 
				leftPos = 50 
				topPos = 50 
			} 
		} 
		
		if (musicChecker == 'aktiv') {
			popupWin=window.open(url, 'popup', 'status,scrollbars,height=' + h + ',width=' + w + ',top=' + topPos + ',left=' + leftPos + '');
		}
	}
}

function changeSite() {
	var goUrl = document.getElementById("siteSelector").value

	if (goUrl != "") {
		location.href = goUrl
	}
}
