
function flashrotation() {
	if ( is_Flash ) {
		document.writeln('<div style="width:738px;height:408px;padding:0px;">');
		document.writeln('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="738" height="408" id="FlashID" title="Learn more">');
		document.writeln('	<param name="movie" value="/img/home/gallery.swf" />');
		document.writeln('	<param name="quality" value="high" />');
		document.writeln('	<param name="wmode" value="opaque" />');
		document.writeln('	<param name="swfversion" value="8.0.35.0" />');
		document.writeln('	<param name="base" value="/img/home/" />' );
		document.writeln('<!--[if !IE]>-->');
		document.writeln('<object type="application/x-shockwave-flash" data="/img/home/gallery.swf" width="738" height="408">');
		document.writeln('<!--<![endif]-->');
		document.writeln('	<param name="quality" value="high" />');
		document.writeln('	<param name="wmode" value="opaque" />');
		document.writeln('	<param name="swfversion" value="8.0.35.0" />');
		document.writeln('	<param name="base" value="/img/home/" />' );
		document.writeln('<!--[if !IE]>-->');
		document.writeln('<\/object>');
		document.writeln('<!--<![endif]-->');
		document.writeln('<\/object>');
		document.writeln('<\/div>');
	} else {
		homeJSVersion();
	}
}


var mainimage1 = new Array(3);
mainimage1[0]="/img/home-feibel.jpg";
mainimage1[1]="/img/home-zaldivar.jpg";
mainimage1[2]="/img/home-hoey.jpg";

var mainlink1 = new Array(3);
mainlink1[0]="/foresight/feibel.html";
mainlink1[1]="/foresight/zaldivar.html";
mainlink1[2]="/foresight/update-video.html";

var arrayindex2 = Math.floor(Math.random()*mainimage1.length);
myRandomObj2 = new Object;  
myRandomObj2.themainimage1 = mainimage1[arrayindex2];  
myRandomObj2.themainlink1 = mainlink1[arrayindex2];  


function homeJSVersion() {
	document.write('<a href="' + myRandomObj2.themainlink1 + '"><img src="' + myRandomObj2.themainimage1 + '" border="0" width="738" height="408" alt="Watch the video" /><\/a>');
}



function displayTVAd1Video() {
	if ( is_Flash ) {
		var Win = window.open('/video/video476/videoplayer.html?assetURL=tv-bridge','displayWindow','width=476,height=330,top=50,left=50,resizable=no,scrollbars=no,menubar=no,status=no');
	} else {
		var Win = window.open('/video/video476/flashrequired.html?id=tv-bridge','displayWindow','width=476,height=330,top=50,left=50,resizable=no,scrollbars=no,menubar=no,status=no');
	}
}

function displayTVAd2Video() {
	if ( is_Flash ) {
		var Win = window.open('/video/video476/videoplayer.html?assetURL=tv-glider','displayWindow','width=476,height=330,top=50,left=50,resizable=no,scrollbars=no,menubar=no,status=no');
	} else {
		var Win = window.open('/video/video476/flashrequired.html?id=tv-glider','displayWindow','width=476,height=330,top=50,left=50,resizable=no,scrollbars=no,menubar=no,status=no');
	}
}


var image1 = new Array(2);
image1[0]="/img/callout-bridge-ad.jpg";
image1[1]="/img/callout-glider-ad.jpg";

var link1 = new Array(2);
link1[0]="javascript:displayTVAd1Video();";
link1[1]="javascript:displayTVAd2Video();";

var arrayindex1 = Math.floor(Math.random()*image1.length);
myRandomObj1 = new Object;  
myRandomObj1.theimage1 = image1[arrayindex1];  
myRandomObj1.thelink1 = link1[arrayindex1];  


function homeVideoCallout() {
	document.write('<a href="' + myRandomObj1.thelink1 + '"><img src="' + myRandomObj1.theimage1 + '" border="0" alt="See our unique approach to moving your organization forward. Watch Now" class="videohomeimage" /><\/a>');
}


function displayCSRVideo() {
	if ( is_Flash ) {
		var Win = window.open('/video/video400/videoplayer.html?assetURL=csr','displayWindow','width=400,height=375,top=50,left=50,resizable=no,scrollbars=no,menubar=no,status=no');
	} else {
		var Win = window.open('/video/video400/flashrequired.html?id=csr','displayWindow','width=400,height=375,top=50,left=50,resizable=no,scrollbars=no,menubar=no,status=no');
	}
}

var CSRimage1 = new Array(2);
CSRimage1[0]="/img/callout-csrvideo.jpg";
CSRimage1[1]="/img/callout-csrreport.jpg";

var CSRlink1 = new Array(2);
CSRlink1[0]="javascript:displayCSRVideo();";
CSRlink1[1]="/about/csr/2010/index.html";

var CSRalt1 = new Array(2);
CSRalt1[0]="Watch video";
CSRalt1[1]="Read now";

var CSRarrayindex1 = Math.floor(Math.random()*CSRimage1.length);
myRandomCSRObj1 = new Object;  
myRandomCSRObj1.theCSRimage1 = CSRimage1[CSRarrayindex1];  
myRandomCSRObj1.theCSRlink1 = CSRlink1[CSRarrayindex1];  
myRandomCSRObj1.theCSRalt1 = CSRalt1[CSRarrayindex1];  


function CSRVideoCallout() {
	document.write('<a href="' + myRandomCSRObj1.theCSRlink1 + '"><img src="' + myRandomCSRObj1.theCSRimage1 + '" border="0" alt="' + myRandomCSRObj1.theCSRalt1 + '" class="videohomeimage" /><\/a>');
}



var SFGlink = new Array(2);
SFGlink[0]="<a href='/foresight/bellwetherconference.html'><img src='/img/callout-bellwether2011.jpg' width='218' height='188' border='0' alt='Learn More' class='videohomeimage' /></a>";
SFGlink[1]="<a href='/foresight/searchforgrowth.html'><img src='/img/callout-searchforgrowth.jpg' width='218' height='188' border='0' alt='Learn More' class='videohomeimage' /></a>";

var SFGarrayindex = Math.floor(Math.random()*SFGlink.length);
myRandomSFGObj = new Object;  
myRandomSFGObj.theSFGlink = SFGlink[SFGarrayindex];  


function SFGCallout() {
	document.write(myRandomSFGObj.theSFGlink);
}


function changeNews() {
	newsH1 = document.getElementById("newsTitle");
	eventsH1 = document.getElementById("eventsTitle");

	newsH1.className = "bold";
	eventsH1.className = "normal";
	
	newsDIV = document.getElementById("news");
	eventsDIV = document.getElementById("events");
	
	newsDIV.className = "show";
	eventsDIV.className = "hidden";
}

function changeEvents() {
	newsH1 = document.getElementById("newsTitle");
	eventsH1 = document.getElementById("eventsTitle");

	newsH1.className = "normal";
	eventsH1.className = "bold";
	
	newsDIV = document.getElementById("news");
	eventsDIV = document.getElementById("events");
	
	newsDIV.className = "hidden";
	eventsDIV.className = "show";
}


