function mouseOverCreate()
{	document.getElementById("create").style.background = "#FFCC66";
	document.body.style.cursor="pointer";
	stopFlash('grape');
}
function mouseOutCreate()
{	document.getElementById("create").style.background = "#FF8D1C";
	document.body.style.cursor="default";
	playFlash('grape');
}
function mouseOverMobile()
{	document.getElementById("mobile").style.background = "#FFFFBC";
	document.body.style.cursor="pointer";
	//changePic(string);
	stopFlash('grape');
}
function mouseOutMobile()
{	document.getElementById("mobile").style.background = "#FFFF66";
	document.body.style.cursor="default";
	playFlash('grape');
}
function mouseOverVideo()
{	document.getElementById("video").style.background = "#FF92B2";
	document.body.style.cursor="pointer";
	stopFlash('grape');
}
function mouseOutVideo()
{
	document.getElementById("video").style.background = "#FC2E42";
	document.body.style.cursor="default";
	playFlash('grape');
}
function mouseOverWeb()
{	document.getElementById("web").style.background = "#D9FF4C";
	document.body.style.cursor="pointer";
	stopFlash('grape');

}
function mouseOutWeb()
{	document.getElementById("web").style.background = "#92FA05";
	document.body.style.cursor="default";
	playFlash('grape');
}
function mouseOverAnim()
{	document.getElementById("anim").style.background = "#E9E95C";
	document.body.style.cursor="pointer";
	stopFlash('grape');
}
function mouseOutAnim()
{	document.getElementById("anim").style.background = "#C2B901";
	document.body.style.cursor="default";
	playFlash('grape');
}
function mouseOverMain()
{	document.getElementById("main").style.background = "#b3b3b3";
	document.body.style.cursor="pointer";
	stopFlash('grape');
}
function mouseOutMain()
{	document.getElementById("main").style.background = "#dcdcdc";
	document.body.style.cursor="default";
	playFlash('grape');
}
function overMenu()
{	document.getElementById("menuLink").style.background = "#cbcbcb";
	document.getElementById("menuLink").style.color = "#101010";
}
function outMenu()
{	document.getElementById("menuLink").style.background = "#343434";
	document.getElementById("menuLink").style.color = "#ffffff";
}
function goMain()
{	window.location="menu.html";	}
function goWeb()
{	window.location="webIndex.html";	}
function goCreate()
{	window.location="createIndex.html";	}
function goAnim()
{	window.location="animIndex.html";	}
function goMobile()
{	window.location="mobileIndex.html";	}
function goVideo()
{	window.location="videoIndex.html";	}

if (document.images)
{
	var goUp = new Image();
	goUp.src = "pics/goUp.gif";

	var goOverM = new Image();
	goOverM.src = "pics/goOver.gif";
}
function goOver()
{
	if (document.images)
	{document["menu"].src = goOverM.src;
	}}

function goOut()
{
	if (document.images)
	{document["menu"].src = goUp.src;
	}}

function open_win(webAddress)
{
window.open(webAddress,"_blank","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=no, width=100, height=260")
}

function overLink()
{	document.getElementById("link").style.background = "#222244";
	document.getElementById("link").style.color = "#fefefe";
}
function outLink()
{
	document.getElementById("link").style.background = "#333355";
	document.getElementById("link").style.color = "#bdbdbd";
}

function changePic(string)
{
	document.getElementById("myImage").src= string
}

var loaded=false;
function playFlash(id)
{
var flashFile = eval("window.document."+id);
if (!loaded)
{
while (!loaded)
{
if (flashFile.PercentLoaded() == 100)
{
flashFile.Play();
loaded = true;
}
}
}
else
flashFile.Play();
}
function stopFlash(id)
{
var flashFile = eval("window.document."+id);
flashFile.StopPlay();
}