<!--
	function OpenImage(id)
	{
		href = "../images/image/image" + id + ".PNG"
		name = "Image " + id
		
		switch (id)
		{
			case 1:
				width = 370
				height = 270
				break
			case 2:
				width = 620
				height = 340
				break
			case 3:
				width = 520
				height = 370
				break
			case 4:
				width = 520
				height = 370
				break
			case 5:
				width = 570
				height = 270
				break
			case 6:
				width = 420
				height = 270
				break
			case 7:
				width = 520
				height = 270
				break
			case 8:
				width = 570
				height = 370
				break
			default:
				width = 520
				height = 270
				break
		}
		
		x = (screen.width - width) / 2
		y = (screen.height - height) / 2
		
		
		window.open(href, name, "width = " + width + ", height = " + height + ", scrollbars = 0");
	}
	
	function openDownload(id)
	{
		href = 'http://bounty.indreams-studios.com/includes/downloads.php?ref=' + id
		
		width = 300
		height = 150
		
		x = (screen.width - width) / 2
		y = (screen.height - height) / 2
		
		window.open(href, name, "width = " + width + ", height = " + height + ", scrollbars = 0, screenX = " + x + ", screenY = " + y + ", status = \"no\"");
	}
	
	function AddSmiley(id)
	{
		switch(id)
		{
			case 0:
				smiley = " :) "
				break
			case 1:
				smiley = " :D "
				break
			case 2:
				smiley = " 8) "
				break
			case 3:
				smiley = " :( "
				break
			case 4:
				smiley = " :P "
				break
			case 5:
				smiley = " :| "
				break
			case 6:
				smiley = " ;) "
				break
			case 7:
				smiley = " :O "
				break
			default:
				smiley = " :) "
				break
		}
		
		document.getElementById('message').value = document.getElementById('message').value + smiley
		document.getElementById('message').focus()
	}
//-->