/*******************************************************
FLASH DETECT 2.5
All code by Ryan Parman and mjac, unless otherwise noted.
(c) 1997-2004 Ryan Parman and mjac
http://www.skyzyx.com
*******************************************************/

// This script will test up to the following version.
flash_versions = 20;

// Initialize variables and arrays
var flash = new Object();
flash.installed=false;
flash.version='0.0';

// Dig through Netscape-compatible plug-ins first.
if (navigator.plugins && navigator.plugins.length) {
	for (x=0; x < navigator.plugins.length; x++) {
		if (navigator.plugins[x].name.indexOf('Shockwave Flash') != -1) {
			flash.version = navigator.plugins[x].description.split('Shockwave Flash ')[1];
			flash.installed = true;
			break;
		}
	}
}

// Then, dig through ActiveX-style plug-ins afterwords
else if (window.ActiveXObject) {
	for (x = 2; x <= flash_versions; x++) {
		try {
			oFlash = eval("new ActiveXObject('ShockwaveFlash.ShockwaveFlash." + x + "');");
			if(oFlash) {
				flash.installed = true;
				flash.version = x + '.0';
			}
		}
		catch(e) {}
	}
}

// Create sniffing variables in the following style: flash.ver[x]
// Modified by mjac
flash.ver = Array();
for(i = 4; i <= flash_versions; i++) {
	eval("flash.ver[" + i + "] = (flash.installed && parseInt(flash.version) >= " + i + ") ? true : false;");
}


// *********************************************************************** //
// 
// *********************************************************************** //
function mainMenu(strSection)
{
    if(strSection == "home")
        document.writeln("<div id=\"idHomeMenu\">");
    else
		document.writeln("<div id=\"idSubMenu\">");
		
		document.writeln("  <a href=\"index.htm\" id=\"idHome\">Home</a>");
		document.writeln("  <span id=\"idDivider1\">|</span>");
		
		document.writeln("  <a href=\"aboutus.htm\" id=\"idAboutUs\">About Us</a>");
		document.writeln("  <span id=\"idDivider2\">|</span>");
		
		document.writeln("  <a href=\"famousfaces.htm\" id=\"idFamousFaces\">Famous Faces</a>");
		document.writeln("  <span id=\"idDivider3\">|</span>");
		
		document.writeln("  <a href=\"industryscoop.htm\" id=\"idIndustryScoop\">Industry Scoop</a>");
		document.writeln("  <span id=\"idDivider4\">|</span>");
		
		document.writeln("  <a href=\"pressroom.aspx\" id=\"idPressRoom\">Press Room</a>");
		document.writeln("  <span id=\"idDivider5\">|</span>");
		
		document.writeln("  <a href=\"enewsletter.aspx\" id=\"idENewsletter\">eNewsletter</a>");
		document.writeln("  <span id=\"idDivider6\">|</span>");
				
		document.writeln("  <a href=\"getdiscovered.aspx\" id=\"idGetDiscovered\">Get Discovered</a>");
		
		document.writeln("</div>");
}
function mainFooter(strSection)
{
    if(strSection == "home")
    {
        document.writeln("<div id=\"idHomeFooter\">");
    }
    else
    {
        document.writeln("<div id=\"idBottomLink\">");
        document.writeln("    <a href=\"http://www.pageparkescenter.com/\" target=\"_blank\">Page Parkes Center of Modeling & Acting</a>");
        document.writeln("    &nbsp;&nbsp;|&nbsp;&nbsp;");
        document.writeln("    <a href=\"http://www.pageparkesmgmt.com/\" target=\"_blank\">Page Parkes Management</a>");
        document.writeln("    &nbsp;&nbsp;|&nbsp;&nbsp;");
        document.writeln("    <a href=\"http://www.page713.com/\" target=\"_blank\">Page.713 Model & Talent Agency</a>");
        document.writeln("</div>");    
    }
    document.writeln("<div id=\"idSubFooter\">");    
    document.writeln("  <a href=\"privacypolicy.htm\">Privacy Policy</a>");
    document.writeln("  &nbsp;&nbsp;|&nbsp;&nbsp;");
    document.writeln("  <a href=\"contactus.aspx\">Contact Us</a>");
    document.writeln("  &nbsp;&nbsp;|&nbsp;&nbsp;");
    document.writeln("  <a href=\"http://www.bbbonline.org/cks.asp?id=103051913571231498\">BBBOnLine</a>");
    document.writeln("  <br />");
    document.writeln("  Copyright &copy; 2006 Page Parkes Corporation");
    document.writeln("</div>");
}

function openwindow(url, width, height) {
	var w;
		
	w=window.open(url,w,"width="+width+",height="+height+",scrollbars=yes");
}
