// JavaScript Document

// Generic JavaScript interactions library

// The Hairforce 2007

// image definitions for the navigation

baseon			=	new Image(160,30);
baseon.src 		=	"http://www.thehairforce.co.uk/images/nav/base_on.gif";
baseoff			=	new Image(160,30);
baseoff.src		=	"http://www.thehairforce.co.uk/images/nav/base_off.gif";

rapidon			=	new Image(160,30);
rapidon.src 	=	"http://www.thehairforce.co.uk/images/nav/rapidresponse_on.gif";
rapidoff		=	new Image(160,30);
rapidoff.src	=	"http://www.thehairforce.co.uk/images/nav/rapidresponse_off.gif";

assassinon			=	new Image(160,30);
assassinon.src 	=	"http://www.thehairforce.co.uk/images/nav/assassination_on.gif";
assassinoff		=	new Image(160,30);
assassinoff.src	=	"http://www.thehairforce.co.uk/images/nav/assassination_off.gif";

coston			=	new Image(160,30);
coston.src 		=	"http://www.thehairforce.co.uk/images/nav/cost_on.gif";
costoff			=	new Image(160,30);
costoff.src		=	"http://www.thehairforce.co.uk/images/nav/cost_off.gif";

expon			=	new Image(160,30);
expon.src 	=	"http://www.thehairforce.co.uk/images/nav/experience_on.gif";
expoff		=	new Image(160,30);
expoff.src	=	"http://www.thehairforce.co.uk/images/nav/experience_off.gif";

liceon		=	new Image(160,30);
liceon.src 	=	"http://www.thehairforce.co.uk/images/nav/liceassassins_on.gif";
liceoff		=	new Image(160,30);
liceoff.src	=	"http://www.thehairforce.co.uk/images/nav/liceassassins_off.gif";

refson			=	new Image(160,30);
refson.src 		=	"http://www.thehairforce.co.uk/images/nav/refs_on.gif";
refsoff			=	new Image(160,30);
refsoff.src		=	"http://www.thehairforce.co.uk/images/nav/refs_off.gif";

// Response units sub sections

//responseon			=	new Image(160,30);
//responseon.src 	=	"http://www.thehairforce.co.uk/images/nav/units_on.gif";
//responseoff		=	new Image(160,30);
//responseoff.src	=	"http://www.thehairforce.co.uk/images/nav/units_off.gif";

theloungeon			=	new Image(160,20);
theloungeon.src 	=	"http://www.thehairforce.co.uk/images/nav/thelounge_on.gif";
theloungeoff		=	new Image(160,20);
theloungeoff.src	=	"http://www.thehairforce.co.uk/images/nav/thelounge_off.gif";

inhomeon			=	new Image(160,20);
inhomeon.src 	=	"http://www.thehairforce.co.uk/images/nav/inhome_on.gif";
inhomeoff		=	new Image(160,20);
inhomeoff.src	=	"http://www.thehairforce.co.uk/images/nav/inhome_off.gif";

inschoolon			=	new Image(160,20);
inschoolon.src 	=	"http://www.thehairforce.co.uk/images/nav/inschool_on.gif";
inschooloff		=	new Image(160,20);
inschooloff.src	=	"http://www.thehairforce.co.uk/images/nav/inschool_off.gif";

// Briefing

briefon			=	new Image(160,30);
briefon.src 	=	"http://www.thehairforce.co.uk/images/nav/briefing_on.gif";
briefoff		=	new Image(160,30);
briefoff.src	=	"http://www.thehairforce.co.uk/images/nav/briefing_off.gif";

summonon			=	new Image(160,40);
summonon.src 	=	"http://www.thehairforce.co.uk/images/nav/summon_on.gif";
summonoff		=	new Image(160,40);
summonoff.src	=	"http://www.thehairforce.co.uk/images/nav/summon_off.gif";

armon			=	new Image(160,30);
armon.src 	=	"http://www.thehairforce.co.uk/images/nav/armyourself_on.gif";
armoff		=	new Image(160,30);
armoff.src	=	"http://www.thehairforce.co.uk/images/nav/armyourself_off.gif";

chairon			=	new Image(116,114);
chairon.src 		=	"http://www.thehairforce.co.uk/images/assassinationkit/assassin_chair_on.gif";
chairoff			=	new Image(116,114);
chairoff.src		=	"http://www.thehairforce.co.uk/images/assassinationkit/assassin_chair.gif";

pspon			=	new Image(116,76);
pspon.src 	=	"http://www.thehairforce.co.uk/images/assassinationkit/assassin_psp_on.gif";
pspoff		=	new Image(116,76);
pspoff.src	=	"http://www.thehairforce.co.uk/images/assassinationkit/assassin_psp.gif";

lighton			=	new Image(116,77);
lighton.src 	=	"http://www.thehairforce.co.uk/images/assassinationkit/assassin_light_on.gif";
lightoff		=	new Image(116,77);
lightoff.src	=	"http://www.thehairforce.co.uk/images/assassinationkit/assassin_light.gif";

visoron			=	new Image(116,85);
visoron.src 	=	"http://www.thehairforce.co.uk/images/assassinationkit/assassin_visor_on.gif";
visoroff		=	new Image(116,85);
visoroff.src	=	"http://www.thehairforce.co.uk/images/assassinationkit/assassin_visor.gif";

suckeron		=	new Image(116,105);
suckeron.src 	=	"http://www.thehairforce.co.uk/images/assassinationkit/assassin_sucker_on.gif";
suckeroff		=	new Image(116,105);
suckeroff.src	=	"http://www.thehairforce.co.uk/images/assassinationkit/assassin_sucker.gif";

pouchon			=	new Image(116,79);
pouchon.src 		=	"http://www.thehairforce.co.uk/images/assassinationkit/assassin_pouch_on.gif";
pouchoff			=	new Image(116,79);
pouchoff.src		=	"http://www.thehairforce.co.uk/images/assassinationkit/assassin_pouch.gif";

tweezerson			=	new Image(116,61);
tweezerson.src 	=	"http://www.thehairforce.co.uk/images/assassinationkit/assassin_tweezers_on.gif";
tweezersoff		=	new Image(116,61);
tweezersoff.src	=	"http://www.thehairforce.co.uk/images/assassinationkit/assassin_tweezers.gif";

/* Rollovers for the new response sub-sections */
loungeon		=	new Image(103,30);
loungeon.src 	=	"images/lounge_on.gif";
loungeoff		=	new Image(103,30);
loungeoff.src	=	"images/lounge_off.gif";

homevisiton			=	new Image(104,30);
homevisiton.src 		=	"images/homevisit_on.gif";
homevisitoff			=	new Image(104,30);
homevisitoff.src		=	"images/homevisit_off.gif";

schoolson			=	new Image(103,30);
schoolson.src 	=	"images/inschool_on.gif";
schoolsoff		=	new Image(103,30);
schoolsoff.src	=	"images/inschool_off.gif";



function rollover(imgName){
	document.getElementById(imgName).src = eval(imgName + "on.src");	
}

function rolloff(imgName){
	document.getElementById(imgName).src = eval(imgName + "off.src");	
}

function not_blank(el){
	return el != '';	
}

function is_email(el){
	return((el.value != '')&&((el.value.indexOf('@') < 0) || (el.value.indexOf('.') < 0)))
}

function validate(frmName){
	frm = document.getElementById(frmName);
	if(!frm.policy.checked){
		alert("Please read and agree to our\nPrivacy Policy.");
		return false;
	} else { frm.submit(); }
}


/* pop-up link opener */
function win(url){
	myWindow = window.open(url,url,"width=860,height=660,scrollbars=yes");	
}

/* Div hide and display */

function HideContent(d) {
if(d.length < 1) { return; }
document.getElementById(d).style.display = "none";
}

/* hides any displayed popups */
function hidePops(){
	HideContent('popchair');
	HideContent('poppsp');
	HideContent('poplight');
	HideContent('popvisor');
	HideContent('popsucker');
	HideContent('poppouch');
	HideContent('poptweezers');
}

function ShowContent(d) {
if(d.length < 1) { return; }
document.getElementById(d).style.display = "block";
}

function ReverseContentDisplay(d) {
if(d.length < 1) { return; }
if(document.getElementById(d).style.display == "none") { document.getElementById(d).style.display = "block"; }
else { document.getElementById(d).style.display = "none"; }
}

