/*------------------------------------------------------------------------------
	Shanipiap, la l�gende du monde des r�ves
	Fonctions Javascript
	
	� Tous droits r�serv�s 2005 Trin�me inc.
------------------------------------------------------------------------------*/

// Function that opens the game window
leftPos=0
if (screen) {
	leftPos=(screen.width-800)/2
}
topPos=0
if (screen) {
	topPos=(screen.height-550)/2
}
function openGame(gameUrl)	{
	//gameWindow=window.open(gameUrl,'Player','width=800,height=550,scrollbars=no,left='+leftPos+',top='+topPos+'')
	gameWindow=window.open(gameUrl,'Player','width=800,height=550,scrollbars=no,status=no,left='+leftPos+',top='+topPos+'')
	
}

//fct qui remplace les 2 getURL
function openJeu(gameUrl)	{
	document.location='jeu.html';
	gameWindow=window.open(gameUrl,'Player','width=800,height=550,scrollbars=no,status=no,left='+leftPos+',top='+topPos+'')
	
}

// Function that closes the game and returns to the homepage
function closeGame()	{
	
	window.close();
	window.opener.document.location='../index.html';
	
	
}


// Function that opens the Video player
function openPlayer(theUrl)	{
	playerWindow=window.open(theUrl,'Player','width=478,height=393,scrollbars=no')
}

// Function that opens the Credits and Legal Notes (or any other pop-up)
function openNotes(theUrl)	{
	notesWindow=window.open(theUrl,'Notes','width=500,height=400,scrollbars=yes')
}
