/*
	File Name: otpfunctions.js
	Site: Perspectives - Ketchum Online Thought Piece (OTP)
	Author: Anthony V Parcero / eKetchum Digital Media Group
	Date Created: 09.24.2002
	Last Modified: 01.07.2003

	Comments:
*/


// -- Rollover functionality for left-hand navigation

var netscape = 0;
var goodIE = 0;

browserName = navigator.appName.substring(0,8);
browserVer = parseFloat(navigator.appVersion);
if (browserName == "Netscape" && browserVer >= 3){netscape = 1;}
if (browserName == "Microsof" && browserVer >= 4){goodIE = 1;}

if (netscape || goodIE) {

	button01on = new Image();
	button02on = new Image();
	button03on = new Image();
	button04on = new Image();
	button05on = new Image();
	button06on = new Image();

	button01on.src = "images/universal/b_welcome_on.gif";	
	button02on.src = "images/universal/b_global_on.gif";
	button03on.src = "images/universal/b_street_on.gif";
	button04on.src = "images/universal/b_counselor_on.gif";
	button05on.src = "images/universal/b_whatshot_on.gif";
	button06on.src = "images/universal/b_voice_on.gif";


	home_bullet1on = new Image();	// home page bullet rollevers (01.07.2003)
	home_bullet2on = new Image();
	home_bullet3on = new Image();

	home_bullet1on.src = "images/home/home_bullet1_on.gif";
	home_bullet2on.src = "images/home/home_bullet2_on.gif";
	home_bullet3on.src = "images/home/home_bullet3_on.gif";

	button01off = new Image();
	button02off = new Image();
	button03off = new Image();
	button04off = new Image();
	button05off = new Image();
	button06off = new Image();
	
	button01off.src = "images/universal/b_welcome_off.gif";	
	button02off.src = "images/universal/b_global_off.gif";
	button03off.src = "images/universal/b_street_off.gif";
	button04off.src = "images/universal/b_counselor_off.gif";
	button05off.src = "images/universal/b_whatshot_off.gif";
	button06off.src = "images/universal/b_voice_off.gif";
	

	home_bullet1off = new Image();	// home page bullet rollevers (01.07.2003)
	home_bullet2off = new Image();
	home_bullet3off = new Image();

	home_bullet1off.src = "images/home/home_bullet1_off.gif";
	home_bullet2off.src = "images/home/home_bullet2_off.gif";
	home_bullet3off.src = "images/home/home_bullet3_off.gif";
}

function roll_over(imgName) {
	if (netscape || goodIE) {
		document[imgName].src = eval(imgName + "on.src");
	}
}

function roll_off(imgName) {
	if (netscape || goodIE) {
		document[imgName].src = eval(imgName + "off.src");        
	}
}