window.onload=function()
{	
	switch(window.location.hash)
	{
		case "#stars":
			starsClick();
			break;
		case "#video":
			galleryClick();
			break;
		case "#anounce":
			anounceClick();
			break;
		case "#guest":
			guestClick();
			break;
		case "#wedding":
			weddingClick();
			break;
		case "#dancepole":
			dancepoleClick();
			break;
		case "#info":
			infoClick();
			break;
		default:
			//// homeClick();
			break;
	}
}
/*
function getGlobals()
{
	return {
		content : document.getElementById("content"),
		flash_content : document.getElementById("flash_content")
	};
}

function turnOn(object)
{
	var g = getGlobals();
	
	switch(object)
	{
		case "flash":
			g.content.className = "content_hidden";
			g.flash_content.className = "content_visible";
			break;
		case "text":
			g.flash_content.className = "content_hidden";
			g.content.className = "content_visible";
			break;
	}
}*/

function homeClick()
{
	window.location = "http://kunak.ru/";
}

function starsClick()
{
	window.location = "http://kunak.ru/stars/";
	//loadPage("stars","doXSLT.php?xml=getStars.php&xsl=gallery.xsl");
}

function galleryClick()
{
	window.location = "http://kunak.ru/video/";
	//loadPage("gallery","doXSLT.php?xml=video.xml&xsl=video.xsl");
}

function anounceClick()
{
	window.location = "http://kunak.ru/anounce/";
	//loadPage("anounce","anounce/1.html");
}

function guestClick()
{
	window.location = "http://kunak.ru/guestbook/";
	//loadPage("guest","getGuest.php");
}

function weddingClick()
{
	window.location = "http://kunak.ru/wedding/";
	//loadPage("wedding","wedding.html");
}

function dancepoleClick()
{
	window.location = "http://kunak.ru/dancepole/";
	//loadPage("dancepole","doXSLT.php?xml=getDancepole.php&xsl=gallery.xsl")
}

function infoClick()
{
	window.location = "http://kunak.ru/info/";
	//loadPage("info","info.html");
}
/*
function rollClick(imgHref)
{
	//alert("a");
	//window.open(imgHref, "", "{width:600, height:600, toolbar:0, location:0, directories:0, menubar:0, scrollbars:0, resizeable:0,status:0,fullscreen:0}");
	///window.open(imgHref, "", "width=600, height=500, toolbar=0, location=0, directories=0, menubar=0, scrollbars=0, resizeable=0,status=0,fullscreen=0");
	//window.location = "http://kunak.ru/image.php?i="+imgHref;
	//alert(imgHref);
	//loadPage("","image.php?imgHref="+imgHref);
	
	
}
*/
/*
function loadPage(hash,src)
{
	window.location.hash = hash;
	var g = getGlobals();
	
	var d = new Date();
	var rnd = d.getTime();
	
	var src_no_cache = src + "?rnd=" + rnd;
	
	g.content.innerHTML = "<iframe name='"+hash+"' src='"+src_no_cache+"' width='100%' height='100%' frameborder='0' marginheight='0' marginwidth='0' hspace='0' vspace='0' class='ifrCasual' ></iframe>";
	//window.frames[hash].location.href = src_no_cache;
}
*/

