function clearFlash(){
	document.getElementById('flashcontent').innerHTML = '<img usemap=#windmill src=images/windmill_still.jpg>';
}

function ContactUs(){
	window.document.location = "contactus.php?p=contactus"
}

function Connected(){
	window.document.location = "connected.php?p=connected"
}


function LearningZone(){
	window.document.location = "learningzone.php?p=learningzone"
}

function WhoWePlayWith(){
	window.document.location = "whoweplaywith.php?p=whoweplaywith"
}

function WhoWeAre(){
	window.document.location = "whoweare.php?p=whoweare"
}

function HowWeDoIt(){
	window.document.location = "howwedoit.php?p=howwedoit"
}

function WhatWeDo(){
	window.document.location = "whatwedo.php?p=whatwedo"
}

function WhatWeDo_r(element) {
	setTimeout('window.document.location = \"whatwedo.php?p=whatwedo\"', 3000);
}

function HowWeDoIt_r(element) {
	setTimeout('window.document.location = \"howwedoit.php?p=howwedoit\"', 3000);
}	

function LearningZone_r(element) {
	setTimeout('window.document.location = \"learningzone.php?p=learningzone\"', 3000);
}

function ContactUs_r(element) {
	setTimeout('window.document.location = \"contactus.php?p=contactus\"', 3000);
}

function Connected_r(element) {
	setTimeout('window.document.location = \"connected.php?p=connected\"', 3000);
}

function WhoWePlayWith_r(element) {
	setTimeout('window.document.location = \"whoweplaywith.php?p=whoweplaywith\"', 3000);
}

function WhoWeAre_r(element) {
	setTimeout('window.document.location = \"whoweare.php?p=whoweare\"', 3000);
}


function GoToPage(page){
	if (page == 'whatwedo'){ 
		window.document.location = "whatwedo.php?p=whatwedo";
	}
	if (page == 'howwedoit'){ 
		window.document.location = "howwedoit.php?p=howwedoit";
	}
	if (page == 'whoweare'){ 
		window.document.location = "whoweare.php?p=whoweare";
	}
	if (page == 'whoweplaywith'){ 
		window.document.location = "whoweplaywith.php?p=whoweplaywith";
	}
	if (page == 'learningzone'){ 
		window.document.location = "learningzone.php?p=learningzone";
	}
	if (page == 'connected'){ 
		window.document.location = "connected.php?p=connected";
	}
	if (page == 'contactus'){ 
		window.document.location = "contactus.php?p=contactus";
	}
}

function getFlashMovieObject(movieName)
{
  if (window.document[movieName]) 
  {
    return window.document[movieName];
  }
  if (navigator.appName.indexOf("Microsoft Internet")==-1)
  {
    if (document.embeds && document.embeds[movieName])
      return document.embeds[movieName]; 
  }
  else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
  {
    return document.getElementById(movieName);
  }
}

function RewindFlashMovie(id)
{
	var flashMovie=getFlashMovieObject(id);
	flashMovie.Rewind();
}

function StopFlashMovie()
{
	var flashMovie=getFlashMovieObject("simplemovie");
	flashMovie.StopPlay();
}

function GotoFrame()
{
	var flashMovie=getFlashMovieObject("simplemovie");
	flashMovie.GotoFrame(5);
	flashMovie.Play();
}

function TotalFrames()
{
	var flashMovie=getFlashMovieObject("simplemovie");
	var total = flashMovie.TotalFrames();
	alert(total);
}

function clearText(thefield) 
{ 
	if (thefield.defaultValue == thefield.value) {
		thefield.value = ""; 
	} else {  
		thefield.value = thefield.defaultValue;
	}
} 