//netscape 4 bugfix script.  Keeps dynamic info from being lost in NS4 Browsers

CSInit = new Array;
CSAct = new Object;
CSInit[CSInit.length] = new Array(CSNSFix);

function CSFixFct() {
	var d = document; var w = window;
	if (d.cs.csFix.w != w.innerWidth || d.cs.csFix.h != w.innerHeight) {
		d.location = d.location; }
}
function CSNSFix(action) { 
	var d = document; var w = window;
	if ((navigator.appName == 'Netscape') && (parseInt(navigator.appVersion) == 4)) {
		if (typeof d.cs == 'undefined') { 
			d.cs = new Object;
			d.cs.csFix = new Object; 
		} else if (CSIsFrame (w) == true) CSFixFct();
		d.cs.csFix.w = w.innerWidth;
		d.cs.csFix.h = w.innerHeight; 
		window.onresize = CSFixFct;
	  }
}
function CSIsFrame (window) {
	var rootWindow = window.parent;
	if (rootWindow == 'undefined') return false;
	for (i = 0; i < rootWindow.frames.length; i++)
		if (window == rootWindow.frames[i]) return true;
	return false;
}

//rollover script

if (document.images) {
	bhome_cold = new Image
	bhome_hot = new Image
	bkandm_cold = new Image
	bkandm_hot = new Image
	brocktheweb_cold = new Image
	brocktheweb_hot = new Image
	bwpdhairforce_cold = new Image
	bwpdhairforce_hot = new Image
	bevents_cold = new Image
	bevents_hot = new Image
	bcontests_cold = new Image
	bcontests_hot = new Image
	bconcerts_cold = new Image
	bconcerts_hot = new Image
	blocalbands_cold = new Image
	blocalbands_hot = new Image
	bphotogallery_cold = new Image
	bphotogallery_hot = new Image
	barchives_cold = new Image
	barchives_hot = new Image
	binternships_cold = new Image
	binternships_hot = new Image
	badvertise_cold = new Image
	badvertise_hot = new Image
	bcommunity_cold = new Image
	bcommunity_hot = new Image
	bcontact_cold = new Image
	bcontact_hot = new Image

	bhome_cold.src = "images/but_act_cold.gif"
	bhome_hot.src = "images/but_act_hot.gif"
	bkandm_cold.src = "images/but_act_cold.gif"
	bkandm_hot.src = "images/but_act_hot.gif"
	brocktheweb_cold.src = "images/but_act_cold.gif"
	brocktheweb_hot.src = "images/but_act_hot.gif"
	bwpdhairforce_cold.src = "images/but_act_cold.gif"
	bwpdhairforce_hot.src = "images/but_act_hot.gif"
	bevents_cold.src = "images/but_act_cold.gif"
	bevents_hot.src = "images/but_act_hot.gif"
	bcontests_cold.src = "images/but_act_cold.gif"
	bcontests_hot.src = "images/but_act_hot.gif"
	bconcerts_cold.src = "images/but_act_cold.gif"
	bconcerts_hot.src = "images/but_act_hot.gif"
	blocalbands_cold.src = "images/but_act_cold.gif"
	blocalbands_hot.src = "images/but_act_hot.gif"
	bphotogallery_cold.src = "images/but_act_cold.gif"
	bphotogallery_hot.src = "images/but_act_hot.gif"
	barchives_cold.src = "images/but_act_cold.gif"
	barchives_hot.src = "images/but_act_hot.gif"
	binternships_cold.src = "images/but_act_cold.gif"
	binternships_hot.src = "images/but_act_hot.gif"
	badvertise_cold.src = "images/but_act_cold.gif"
	badvertise_hot.src = "images/but_act_hot.gif"
	bcommunity_cold.src = "images/but_act_cold.gif"
	bcommunity_hot.src = "images/but_act_hot.gif"
	bcontact_cold.src = "images/but_act_cold.gif"
	bcontact_hot.src = "images/but_act_hot.gif"
} else {
	bhome_cold = ""
	bhome_hot = ""
	bkandm_cold = ""
	bkandm_hot = ""
	brocktheweb_cold = ""
	brocktheweb_hot = ""
	bwpdhairforce_cold = ""
	bwpdhairforce_hot = ""
	bevents_cold = ""
	bevents_hot = ""
	bcontests_cold = ""
	bcontests_hot = ""
	bconcerts_cold = ""
	bconcerts_hot = ""
	blocalbands_cold = ""
	blocalbands_hot = ""
	bphotogallery_cold = ""
	bphotogallery_hot = ""
	barchives_cold = ""
	barchives_hot = ""
	binternships_cold = ""
	binternships_hot = ""
	badvertise_cold = ""
	badvertise_hot = ""
	bcommunity_cold = ""
	bcommunity_hot = ""
	bcontact_cold = ""
	bcontact_hot = ""
}

//Find the Center Screen Position
centerPost = 0
if (screen) {
	centerPost = (screen.width/2)-300
}

//Jock Pages Pop-up
function newJockPage(activejock) {
	jockWindow = window.open(activejock, '', 'resizable=no,scrollbars=yes,width=600,height=284,left='+centerPost+',top=0')
	jockWindow.focus()
}

//Instant Feedback Pop-up
function ifWindow() {
	instantfeedbackWindow = window.open ('instantfeedback.asp', 'ifWin', 'width=450,height=400,scrollbars=yes')
	instantfeedbackWindow.focus()
}

//Karlson & McKenzie Pop-up
function kmWindow() {
	instantfeedbackWindow = window.open ('kandmgate.html', 'kmWin', 'width=450,height=250,scrollbars=no')
	instantfeedbackWindow.focus()
}