/* Setup Browser Detection */
/* #################################### */
function setup(){

	if(document.layers){			
		theIndustryMenu = document.IndustryMenu;
		theFunctionalMenu = document.FunctionalMenu;
		theHowMenu = document.HowMenu;	
		theCaseMenu = document.CaseMenu;
		theOrgMenu = document.OrgMenu;
		theAboutMenu = document.AboutMenu;		

   	} else if(document.all) {			
		theIndustryMenu = document.all.IndustryMenu.style;	
		theFunctionalMenu = document.all.FunctionalMenu.style;
		theHowMenu = document.all.HowMenu.style;	
		theCaseMenu = document.all.CaseMenu.style;
		theOrgMenu = document.all.OrgMenu.style;
		theAboutMenu = document.all.AboutMenu.style;
   }
   
}
/* #################################### */
	
		

/* Hides DOM */
/* #################################### */
function HideIndustryMenu(){		
	theIndustryMenu.visibility = 'hidden';
}
function HideFunctionalMenu(){		
	theFunctionalMenu.visibility = 'hidden';
}
function HideCaseMenu(){		
	theCaseMenu.visibility = 'hidden';
}
function HideAboutMenu(){		
	theAboutMenu.visibility = 'hidden';
}
function HideOrgMenu(){		
	theOrgMenu.visibility = 'hidden';
}
function HideHowMenu(){		
	theHowMenu.visibility = 'hidden';
}
/* #################################### */



/* Shows DOM */
/* #################################### */
function ShowIndustryMenu(){		
	theIndustryMenu.visibility = 'visible';
}
function ShowFunctionalMenu(){		
	theFunctionalMenu.visibility = 'visible';
}
function ShowCaseMenu(){		
	theCaseMenu.visibility = 'visible';
}
function ShowAboutMenu(){		
	theAboutMenu.visibility = 'visible';
}
function ShowOrgMenu(){		
	theOrgMenu.visibility = 'visible';
}
function ShowHowMenu(){		
	theHowMenu.visibility = 'visible';
}
/* #################################### */


var timeout_state;	
function Timer() {
		stop();	
		timeout_state = setTimeout("HideIndustryMenu();HideFunctionalMenu();HideCaseMenu();HideAboutMenu();HideOrgMenu();HideHowMenu();", 5000);		
}

function stop(){
	clearTimeout(timeout_state);
	return;
}


if (document.images) {
 	industry_a = new Image;
	industry_b = new Image;	
	functional_a = new Image;
	functional_b = new Image;
	how_a = new Image;
	how_b = new Image;
	cases_a = new Image;
	cases_b = new Image;
	org_a = new Image;
	org_b = new Image;
	about_a = new Image;
	about_b = new Image;
	
	Thome_a = new Image;
	Thome_b = new Image;
	Tindustry_a = new Image;
	Tindustry_b = new Image;	
	Tfunctional_a = new Image;
	Tfunctional_b = new Image;
	Thow_a = new Image;
	Thow_b = new Image;
	Tcases_a = new Image;
	Tcases_b = new Image;
	Torg_a = new Image;
	Torg_b = new Image;
	Tabout_a = new Image;
	Tabout_b = new Image;
	
	industry_a.src = 'img/bttn_industry_a.gif';
	industry_b.src = 'img/bttn_industry_b.gif';
	functional_a.src = 'img/bttn_functional_a.gif';
	functional_b.src = 'img/bttn_functional_b.gif';
	how_a.src = 'img/bttn_how_we_a.gif';
	how_b.src = 'img/bttn_how_we_b.gif';
	cases_a.src = 'img/bttn_case_a.gif';
	cases_b.src = 'img/bttn_case_b.gif';
	org_a.src = 'img/bttn_orgnz_a.gif';
	org_b.src = 'img/bttn_orgnz_b.gif';
	about_a.src = 'img/bttn_about_a.gif';
	about_b.src = 'img/bttn_about_b.gif';
	
	Thome_a.src = 'img/bttn2_home_a.gif';
	Thome_b.src = 'img/bttn2_home_b.gif';
	Tindustry_a.src = 'img/bttn2_industry_a.gif';
	Tindustry_b.src = 'img/bttn2_industry_b.gif';
	Tfunctional_a.src = 'img/bttn2_functional_a.gif';
	Tfunctional_b.src = 'img/bttn2_functional_b.gif';
	Thow_a.src = 'img/bttn2_how_we_a.gif';
	Thow_b.src = 'img/bttn2_how_we_b.gif';
	Tcases_a.src = 'img/bttn2_case_a.gif';
	Tcases_b.src = 'img/bttn2_case_b.gif';
	Torg_a.src = 'img/bttn2_orgnz_a.gif';
	Torg_b.src = 'img/bttn2_orgnz_b.gif';
	Tabout_a.src = 'img/bttn2_about_a.gif';
	Tabout_b.src = 'img/bttn2_about_b.gif';
}
else {
	industry_a.src = "";
	industry_a.src = "";		
	document.industry = "";	
	functional_a.src = "";
	functional_a.src = "";		
	document.functional = "";
	how_a.src = "";
	how_a.src = "";		
	document.how = "";
	cases_a.src = "";
	cases_a.src = "";		
	document.cases = "";
	org_a.src = "";
	org_a.src = "";		
	document.org = "";
	about_a.src = "";
	about_a.src = "";		
	document.about = "";
}

function NavigateOpen1(Location) {
    nav=open(Location,"Navigate","toolbar=no,scrollbars=yes,menubar=no,width=415,height=480");
}
function NavigateOpen2(Location) {
    nav=open(Location,"Navigate","toolbar=yes,scrollbars=no,menubar=no,width=350,height=350");
}

var adImages = new Array("img/photo01.jpg","img/photo02.jpg","img/photo03.jpg","img/photo04.jpg")
var thisAd = 0
var imgCt = 4

function cycle() {
	if (document.images) {
		thisAd++
		if (thisAd == imgCt) {
			thisAd = 0
		}
		document.adBanner.src=adImages[thisAd]
		setTimeout ("cycle()", 10 * 1000)
	}
}