if (self.location.href != window.location.href) {
	window.location.href = self.location.href;
}

function scrollToPageTop () {
	if (window.scrollTo) {
		window.scrollTo (0, 0);
		return false;
	} else {
		return true;
	}
}

function preimg(){
var loadcomp = false;
	var preload = new Array();
	for(i = 0 ; i < preloadlist.length ; i++) {
		preload[i] = new Image();
		preload[i].src = preloadlist[i];
	}
	loadcomp = true;
}

function chgimg(target,filename){
	document.images[target].src = filename;
}

function OpenPopup(Link,WinTarget,breite,hoehe) {
	if (!!window && Link) {
	var iMyWidth = (window.screen.width/2) - (breite/2 + 10);
	var iMyHeight = (window.screen.height/2) - (hoehe/2 + 50);
	var winPopup = window.open(Link ,WinTarget,"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,favorites=no,width=" + breite + ",height=" + hoehe + ",left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight);
	winPopup.focus();
	}
}

function OpenPopupTargetBlank(Link,WinTarget,breite,hoehe) {
	if (!!window && Link) {
	var iMyWidth = (window.screen.width/2) - (breite/2 + 10);
	var iMyHeight = (window.screen.height/2) - (hoehe/2 + 50);
	var winPopup = window.open(Link ,WinTarget,"toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,favorites=yes,width=" + breite + ",height=" + hoehe + ",left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight);
	winPopup.focus();
	}
}

function openerJump(JumpURL,WinTarget) {
	if ( openerSur() == true ) {
	window.opener.location.href=JumpURL;
	window.blur();
	} else {
	var winPopup = window.open(JumpURL,WinTarget,"toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1");
	winPopup.focus();
	window.blur();
	}
}
function openerSur() {
	var ua = navigator.userAgent;
	if( !!window.opener ) {
		if( ua.indexOf('MSIE 4')!=-1 && ua.indexOf('Win')!=-1 ) {
		return !window.opener.closed;
		} else {
		return typeof window.opener.document  == 'object';
		}
	} else {
	return false
	}
}