// JavaScript Document
function hideScrollBar()
{
	if (navigator.appName.indexOf("Microsoft") != -1) {
		document.body.scroll="no";
	}
}
	
function LoadOtherShow(id,type)
{
	if (type=="group")
	{
		window.opener.LoadOtherGroupShow(id);
	} else if (type=="comp") {
		window.opener.LoadOtherCompShow(id);
	}
	this.close();
}

function PopUpGroupPresentation(id,findex,uid)
{
	w = screen.width;
	h = screen.height;
	presWin = window.open("grouppres.php?uid=" + uid + "&gid=" + id + "&firstImage=" + findex,"",'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=yes,width=' + w +',height=' + h );
}

function PopUpWin()
{
	w = screen.width;
	h = screen.height;
	presWin = window.open("cdrom.php","",'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=' + w +',height=' + h );
}

function PopUpSoloPresentation(id,ye)
{
	w = screen.width;
	h = screen.height;
	presWin = window.open("solopres.php?im2start=" + id + "&ye=" + ye,"",'toolbar=0,scrollbars=0,location=1,statusbar=0,menubar=0,resizable=0,width=' + w +',height=' + h );
}

function PopUpCompPresentation(id,findex,uid)
{
	w = screen.width;
	h = screen.height;
	presWin = window.open("comppres.php?uid=" + uid + "&gid=" + id + "&firstImage=" + findex,"",'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=' + w +',height=' + h );
}

function LoadOtherGroupShow(gid)
{
	getFlashObj("flashMovie").InitGroupInfo(gid);
}

function LoadOtherCompShow(gid)
{
	getFlashObj("flashMovie").InitCompInfo(gid);
}

function getFlashObj(movieName) {
	if (navigator.appName.indexOf("Microsoft") != -1) {
		return window[movieName];
	}
	else {
		return document[movieName + "em"];
	}
}

function ClosePopUp()
{
	window.close();	
}

function BackToIntro(id)
{
	window.opener.getFlashObj("flashMovie").BackToIntro();
	window.close();
}
