// homeFlash.js
function flipPage(hidden) {
	if (hidden == 'pageTwo') {
		document.getElementById('pageOne').style.display='none';
		document.getElementById('pageTwo').style.display='block';
	}
	else if (hidden == 'pageOne') {
		document.getElementById('pageTwo').style.display='none';
		document.getElementById('pageOne').style.display='block';
	}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_controlShockwave(objStr,x,cmdName,frameNum) { //v3.0
  var obj=MM_findObj(objStr);
  if (obj) eval('obj.'+cmdName+'('+((cmdName=='GotoFrame')?frameNum:'')+')');
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the FSCommand messages in a Flash movie.
function map12_DoFSCommand(command, args) {
	var map12Obj = isInternetExplorer ? document.all.map12 : document.map12;
	//
	// Place your code here.
	//
}

var open = 0;

function showSpace(){
	if (open == 1)
	{
		document.getElementById("spacer").style.display = "none";		
		open = 0;
		document.getElementById("openMap").style.display = "block";		
		document.getElementById("closeMap").style.display = "none";
	}
	else
	{
		document.getElementById("spacer").style.display = "block";
		open = 1;
		document.getElementById("openMap").style.display = "none";		
		document.getElementById("closeMap").style.display = "block";
	}
}

if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
	document.write('<script language=\"VBScript\"\>\n');
	document.write('On Error Resume Next\n');
	document.write('Sub map12_FSCommand(ByVal command, ByVal args)\n');
	document.write('	Call map12_DoFSCommand(command, args)\n');
	document.write('End Sub\n');
	document.write('</script\>\n');
}

