// Home Page Function to display Flash Intro
var noFlashActivePg;

function launchBanner(){
if ( actualVersion >= 7 ) {
var flashTags='<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"'
+ 'WIDTH="766" HEIGHT="356" id="PCCBanner" NAME="PCCBanner" ALIGN="">'
+ '<PARAM NAME=movie VALUE="common/flash/pcc_main.swf">'
+ '<PARAM NAME=quality VALUE=high>'
+ '<param name="menu" value="false">'
+ '<PARAM NAME="scale" VALUE="noscale" />'
+ '<EMBED src="common/flash/pcc_main.swf" quality=high bgcolor=#FFFFFF  WIDTH="766" HEIGHT="356" NAME="PCCBanner" ALIGN=""'
+ 'TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>'
+ '</OBJECT>'
document.write(flashTags); 
} else {
noFlash_Load();
var alternateContent = '';
alternateContent += '<div id="noflash"><img src="common/noflash/noflash_home.jpg" name="imgnoflash" width="766" height="356" border="0" usemap="#imgnoflashMap"></div>'
document.write(alternateContent); 
}
}

function noFlashLink(pg){
	changePic('imgnoflash',pg);
	datamain.location.href="content/"+pg
	noFlashActivePg = pg;
}
function noFlashSubLink(linkNo){
	var pgLink;
	linkArray_Home= new Array("#","#","#","#");
	linkArray_About= new Array("mission.html","philosophy.html","services.html","testimonials.html");
	linkArray_Careers= new Array("profiles.html","benefits.html","apply.asp","#");
	linkArray_Nutrition= new Array("jwegman.asp","resources.html","#","#");
	linkArray_Contact= new Array("?contact=corporate","?contact=recruitment","?contact=sales","#");				
//	----------------------------------------------------------------------------------------------	
	if (noFlashActivePg=="home"){ pgLink = linkArray_Home[linkNo]	}
	else if (noFlashActivePg=="about"){ pgLink = linkArray_About[linkNo]	}
	else if (noFlashActivePg=="careers"){ pgLink = linkArray_Careers[linkNo]	}
	else if (noFlashActivePg=="nutrition"){ pgLink = linkArray_Nutrition[linkNo]	}
	else if (noFlashActivePg=="contact"){ pgLink = linkArray_Contact[linkNo]	}
//	----------------------------------------------------------------------------------------------	
	datamain.location.href="content/"+noFlashActivePg+"/"+pgLink
}

// ----- CHANGE PICTURE FUNCTION ---------------------------------
function changePic(destpic, picsrc) { 
		source = eval("img_"+picsrc+ ".src"); 
       document[destpic].src = source; 
}
function noFlash_Load(){
//--- IMAGE DECLARATIONS ------------------------------------------	
	img_home = new Image();
	img_home.src = "common/noflash/noflash_home.jpg";
//	--------------------------------------------------------		
	img_about = new Image();
	img_about.src = "common/noflash/noflash_about.jpg";
//	--------------------------------------------------------	
	img_careers = new Image();
	img_careers.src = "common/noflash/noflash_careers.jpg";
//	--------------------------------------------------------		
	img_nutrition = new Image();
	img_nutrition.src = "common/noflash/noflash_nutrition.jpg";
//	--------------------------------------------------------	
	img_contact = new Image();
	img_contact.src = "common/noflash/noflash_contact.jpg";
//	--------------------------------------------------------
}					