function HomePage(){
	var peopleString = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="164" height="164" id="people" align="middle">';
	peopleString += '<param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="flash/people_new.swf" />';
	peopleString += '<param name="menu" value="false" /><param name="quality" value="high" />';
	peopleString += '<param name="wmode" value="transparent" /><param name="bgcolor" value="#ffffff" />';
	peopleString += '<embed src="flash/people_new.swf" menu="false" quality="high" wmode="transparent" bgcolor="#ffffff" width="164" height="164" name="people" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>';
	document.getElementById('people').innerHTML = peopleString;
	var travelString = '<img style="margin-bottom:11px;" width="116" height="116" border="0" usemap="#KnowErets" src="images/EretsNehederet_10.gif"/><map name="KnowErets"><area href="http://www.eretzn.org/index.php" coords="57, 58, 50" shape="circle"/></map>';
	/*var travelString = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="127" height="127" id="travel" align="middle">';
	travelString += '<param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="flash/travel.swf" />';
	travelString += '<param name="menu" value="false" /><param name="quality" value="high" />';
	travelString += '<param name="wmode" value="transparent" /><param name="bgcolor" value="#ffffff" />';
	travelString += '<embed src="flash/travel.swf" menu="false" quality="high" wmode="transparent" bgcolor="#ffffff" width="127" height="127" name="travel" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>';*/
	document.getElementById('travel').innerHTML = travelString;
	var storyString = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="111" height="111" id="story" align="middle">';
	storyString += '<param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="flash/story.swf" />';
	storyString += '<param name="menu" value="false" /><param name="quality" value="high" />';
	storyString += '<param name="wmode" value="transparent" /><param name="bgcolor" value="#ffffff" />';
	storyString += '<embed src="flash/story.swf" menu="false" quality="high" wmode="transparent" bgcolor="#ffffff" width="111" height="111" name="story" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>';
	document.getElementById('story').innerHTML = storyString;
	var movieString = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="118" height="118" id="movie" align="middle">';
	movieString += '<param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="flash/movie2.swf" />';
	movieString += '<param name="menu" value="false" /><param name="quality" value="high" />';
	movieString += '<param name="wmode" value="transparent" /><param name="bgcolor" value="#ffffff" />';
	movieString += '<embed src="flash/movie2.swf" menu="false" quality="high" wmode="transparent" bgcolor="#ffffff" width="118" height="118" name="movie" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>';
	document.getElementById('movie').innerHTML = movieString;
	var allOverString = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="800" height="600" id="txt800x600" align="middle">';
	allOverString +='<param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="flash/txt800x600.swf" />';
	allOverString +='<param name="menu" value="false" /><param name="quality" value="high" />';
	allOverString +='<param name="wmode" value="transparent" /><param name="bgcolor" value="#ffffff" />';
	allOverString +='<embed src="flash/txt800x600.swf" menu="false" quality="high" wmode="transparent" bgcolor="#ffffff" width="800" height="600" name="txt800x600" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />	</object>';
	document.getElementById('allOver').innerHTML = allOverString;
	screenSize();
}
function screenSize()
{
	switch (screen.width)
	{
		case 800: {sizeS()}
		case 1024: {sizeM()}
		case 1280: {sizeL()}
	}
}

function sizeS(){
	document.getElementById('allOver').style.position = 'absolute';
	document.getElementById('allOver').style.zIndex = '2';
	document.getElementById('allOver').style.top = '0px';
	document.getElementById('allOver').style.left = '19%';	
}
function sizeM(){
	document.getElementById('allOver').style.position = 'absolute';
	document.getElementById('allOver').style.zIndex = '2';
	document.getElementById('allOver').style.top = '0px';
	document.getElementById('allOver').style.left = '19%';	
}
function sizeL(){
	document.getElementById('allOver').style.position = 'absolute';
	document.getElementById('allOver').style.zIndex = '2';
	document.getElementById('allOver').style.top = '0px';
	document.getElementById('allOver').style.left = '19%';	
}
function fixflash(containerID){
var flashContainer = document.getElementById(containerID);
var flashMovie = document.createElement("div");
flashMovie.innerHTML = flashContainer.innerHTML.replace(/</g, "<").replace(/>/g, ">");
flashContainer.parentNode.insertBefore(flashMovie, flashContainer);
flashContainer.parentNode.removeChild(flashContainer);
flashMovie.setAttribute("id",containerID);
}


function changeStyleByLocation(myLocation)
{
	document.getElementById('Location').value = myLocation;
 	var myLocationString = document.getElementById('Location').value;
 	
	switch (myLocationString){
		case 'http://www.eretzn.org/content.php?id=14': {fixflash('our_story_eng')} break
		default: mainFlash();
	}	
}
function mainFlash(){
	document.getElementById('flashplace').innerHTML = '<EMBED pluginspage=http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash src=flash/title_eng.swf width=630 height=100 type=application/x-shockwave-flash controller="true" quality="high" scale="showall" bgcolor="" loop="true" wmode="transparent" showcontrols="true" autostart="true"></EMBED>';
}

