function loadHeader() {
	//alert('function is running');
	document.write('<object style="margin-left:4px" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="709" height="282" ...>\n');
    document.write('<param name="movie" value="https://secure.realestate-websites.com/header.swf" />\n');
	document.write('<param name="wmode" value="transparent" />\n');
	document.write('<embed src="https://secure.realestate-websites.com/header.swf" quality="high" pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="709" height="282"></embed>');
	document.write('</object>');
}

function loadAgentBrokerHeader() {
	//alert('function is running');
	document.write('<object style="margin-left:4px" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="709" height="282" ...>\n');
    document.write('<param name="movie" value="https://secure.realestate-websites.com/header.swf" />\n');
	document.write('<param name="wmode" value="transparent" />\n');
	document.write('<embed src="https://secure.realestate-websites.com/header.swf" quality="high" pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="709" height="282"></embed>');
	document.write('</object>');
}

function loadCustomHeader() {
	//alert('function is running');
	document.write('<object style="margin-left:4px" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="709" height="282" ...>\n');
    document.write('<param name="movie" value="https://secure.realestate-websites.com/header_custom_page.swf" />\n');
	document.write('<param name="wmode" value="transparent" />\n');
	document.write('<embed src="https://secure.realestate-websites.com/header_custom_page.swf" quality="high" pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="709" height="282"></embed>');
	document.write('</object>');
}

function loadHeader2() {
	//alert('function is running');
	document.write('<object style="margin-left:4px" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="709" height="282" ...>\n');
    document.write('<param name="movie" value="header.swf?playHeaderAnimation=false" />\n');
	document.write('<param name="wmode" value="transparent" />\n');
	document.write('<embed src="header.swf?playHeaderAnimation=false" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="709" height="282"></embed>');
	document.write('</object>');
}

function loadHeader3() {
	//alert('function is running');
	document.write('<object style="margin-left:4px" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="709" height="282" ...>\n');
    document.write('<param name="movie" value="../header.swf" />\n');
	document.write('<param name="wmode" value="transparent" />\n');
	document.write('<embed src="../header.swf quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="709" height="282"></embed>');
	document.write('</object>');
}

function openMailingListSignup(){
	Alert("mailing list button was clicked on");	
}


var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the FSCommand messages in a Flash movie.
function header_DoFSCommand(command, args) {
	var headerObj = isInternetExplorer ? document.all.header : document.header;
	//
	// Place your code here.
	if (command == "alert") {
    alert(args);
	} else if (command == "popup") {
		window.open(args, "mmwin", "width=500,height=300");
	}
}
// Hook for Internet Explorer.
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 header_FSCommand(ByVal command, ByVal args)\n');
	document.write('	Call header_DoFSCommand(command, args)\n');
	document.write('End Sub\n');
	document.write('</script\>\n');
}

