function addEvent(obj, evType, fn){
	if (obj.addEventListener){
		obj.addEventListener(evType, fn, true);
		return true;
	} else if (obj.attachEvent){
		var r = obj.attachEvent("on"+evType, fn);
		return r;
	} else {
		return false;
	}
}

var Melodiwebsite = (top == self);
function onTop(){
	if (!Melodiwebsite) top.location.href = document.location.href;
}

function showimage(image){
	document.large_image.src = image ;
}

function popup() {
	var image = document.large_image.src ;
	var url = 'pop.htm?' + image;
	window.open(url,'pop','scrollbars=no,toolbar=no,location=no,resizable=yes,status=no,directories=no,menubar=no');
}

function pop(sUrl){

		nWidth_Real	= window.screen.width;
		nHeight_Real = window.screen.height;

		nWidth = nWidth_Real
		nHeight = nHeight_Real

		if(nWidth >= 1024){
			nWidth	= 550;
			nHeight	= 650;
		}

		nLeft = (nWidth_Real-nWidth)/2;
		nTop = (nHeight_Real-nHeight)/2;

		nWidth	= nWidth-8;
		nHeight	= nHeight-82;

		//nLeft=0
		//nTop=0
		//sUrl = "ForumOrbital/frontend/asp/home.asp?=1"
		sPage = sUrl+"?popup=yes";

		window.open(sPage, null,"height="+nHeight+", width="+nWidth+", top="+nTop+", left="+nLeft+",fullscreen=no,toolbar=no,location=no,status=no,scrollbars=no,menubar=no,resizable=no");
	}

