// =========================================================================================
// Created by Ioulian Alexeev ©2009 Alexju
// Contact:
// Webiste: http://www.alexju.be
// E-mail: ioulian@alexju.be
// =========================================================================================
// Special credit(s) go to:
// =========================================================================================

var project;
var container;

function init()
{
	project = window.location.href.substr(window.location.href.indexOf("?project=") + 9);
	var flashvars = {};
	flashvars.whichProject = project;
	var params = {};
	params.wmode = "window";
	params.allowfullscreen = "true";
	var attributes = {};
	swfobject.embedSWF("main.swf", "content", "100%", "100%", "10.0.0", false, flashvars, params, attributes);
}

function setLocation(currentProject, currentProjectName)
{
	window.location.hash = "?project=" + currentProject;
	document.title = currentProjectName + " - Alexju";
}

function setRootLocation()
{
	window.location.hash = "";
	document.title = "Personal portfolio of Ioulian Alexeev - Alexju";
}

// Init
if(document.addEventListener)
{
	window.addEventListener("load", init, false);
}
else if(document.attachEvent)
{
	window.attachEvent("onload", init);
}