/*
-------------------------------------------------------------------------------
filename:			iSite.js
project:			Collective Perspective
author:				Fortunato Geelhoed
date created:		16/08/2003
editor:				Fortunato Geelhoed
last modified:		13/10/2004
copyright (c) 2004	WebBuddha .:. Internet Solutions
-------------------------------------------------------------------------------

-------------------------------------------------------------------------------
Here you will find all functionality specific for this site but wich is used sitewide.
-------------------------------------------------------------------------------
*/


/* ---------------------------------------------------------------------------------
 button active & inactive functions
 check for support and initialize the ../share/images
--------------------------------------------------------------------------------- */
browsok = (((navigator.appName == "Netscape")
&& (parseInt(navigator.appVersion) >= 3))
|| ((navigator.appName == "Microsoft Internet Explorer")
&& (parseInt(navigator.appVersion)>= 3)));
if(browsok)
{
// out

	// lvl1
	theinvitation0 = new Image;
	theinvitation0.src = "../share/images/lvl1_theinvitation_0.gif";
	themission0 = new Image;
	themission0.src = "../share/images/lvl1_themission_0.gif";
	statementsofintent0 = new Image;
	statementsofintent0.src = "../share/images/lvl1_statementsofintent_0.gif";
	aboutus0 = new Image;
	aboutus0.src = "../share/images/lvl1_aboutus_0.gif";

	// lvl2
	poetry0 = new Image;
	poetry0.src = "../share/images/lvl2_poetry_0.gif";
	prose0 = new Image;
	prose0.src = "../share/images/lvl2_prose_0.gif";
	thoughts0 = new Image;
	thoughts0.src = "../share/images/lvl2_thoughts_0.gif";
	quicksearch0 = new Image;
	quicksearch0.src = "../share/images/lvl2_quicksearch_0.gif";
	advancedsearch0 = new Image;
	advancedsearch0.src = "../share/images/lvl2_advancedsearch_0.gif";
	forum0 = new Image;
	forum0.src = "../share/images/lvl2_forum_0.gif";
	books0 = new Image;
	books0.src = "../share/images/lvl2_books_0.gif";
	events0 = new Image;
	events0.src = "../share/images/lvl2_events_0.gif";
	resources0 = new Image;
	resources0.src = "../share/images/lvl2_resources_0.gif";
	news0 = new Image;
	news0.src = "../share/images/lvl2_news_0.gif";

	// footer
	conditionsofuse0 = new Image;
	conditionsofuse0.src = "../share/images/footer_conditionsofuse_0.gif";
	faq0 = new Image;
	faq0.src = "../share/images/footer_faq_0.gif";
	help0 = new Image;
	help0.src = "../share/images/footer_help_0.gif";
	contactus0 = new Image;
	contactus0.src = "../share/images/footer_contactus_0.gif";

	indexsubscribe0 = new Image;
	indexsubscribe0.src = "../share/images/btn_indexsubscribe_0.gif";
	mbsignin0 = new Image;
	mbsignin0.src = "../share/images/btn_mbsignin_0.gif";

	// registration
	nextstep0 = new Image;
	nextstep0.src = "../share/images/frmbtn_nextstep_0.gif";
	frmregister0 = new Image;
	frmregister0.src = "../share/images/frmbtn_register_0.gif";

// over

	// lvl1
	theinvitation1 = new Image;
	theinvitation1.src = "../share/images/lvl1_theinvitation_1.gif";
	themission1 = new Image;
	themission1.src = "../share/images/lvl1_themission_1.gif";
	statementsofintent1 = new Image;
	statementsofintent1.src = "../share/images/lvl1_statementsofintent_1.gif";
	aboutus1 = new Image;
	aboutus1.src = "../share/images/lvl1_aboutus_1.gif";

	// lvl2
	poetry1 = new Image;
	poetry1.src = "../share/images/lvl2_poetry_1.gif";
	prose1 = new Image;
	prose1.src = "../share/images/lvl2_prose_1.gif";
	thoughts1 = new Image;
	thoughts1.src = "../share/images/lvl2_thoughts_1.gif";
	quicksearch1 = new Image;
	quicksearch1.src = "../share/images/lvl2_quicksearch_1.gif";
	advancedsearch1 = new Image;
	advancedsearch1.src = "../share/images/lvl2_advancedsearch_1.gif";
	forum1 = new Image;
	forum1.src = "../share/images/lvl2_forum_1.gif";
	books1 = new Image;
	books1.src = "../share/images/lvl2_books_1.gif";
	events1 = new Image;
	events1.src = "../share/images/lvl2_events_1.gif";
	resources1 = new Image;
	resources1.src = "../share/images/lvl2_resources_1.gif";
	news1 = new Image;
	news1.src = "../share/images/lvl2_news_1.gif";

	// footer
	conditionsofuse1 = new Image;
	conditionsofuse1.src = "../share/images/footer_conditionsofuse_1.gif";
	faq1 = new Image;
	faq1.src = "../share/images/footer_faq_1.gif";
	help1 = new Image;
	help1.src = "../share/images/footer_help_1.gif";
	contactus1 = new Image;
	contactus1.src = "../share/images/footer_contactus_1.gif";

	indexsubscribe1 = new Image;
	indexsubscribe1.src = "../share/images/btn_indexsubscribe_1.gif";
	mbsignin1 = new Image;
	mbsignin1.src = "../share/images/btn_mbsignin_1.gif";

	// registration
	nextstep1 = new Image;
	nextstep1.src = "../share/images/frmbtn_nextstep_1.gif";
	frmregister1 = new Image;
	frmregister1.src = "../share/images/frmbtn_register_1.gif";

// down

	// lvl1
	theinvitation2 = new Image;
	theinvitation2.src = "../share/images/lvl1_theinvitation_2.gif";
	themission2 = new Image;
	themission2.src = "../share/images/lvl1_themission_2.gif";
	statementsofintent2 = new Image;
	statementsofintent2.src = "../share/images/lvl1_statementsofintent_2.gif";
	aboutus2 = new Image;
	aboutus2.src = "../share/images/lvl1_aboutus_2.gif";

	// footer
	conditionsofuse2 = new Image;
	conditionsofuse2.src = "../share/images/footer_conditionsofuse_2.gif";
	faq2 = new Image;
	faq2.src = "../share/images/footer_faq_2.gif";
	help2 = new Image;
	help2.src = "../share/images/footer_help_2.gif";
	contactus2 = new Image;
	contactus2.src = "../share/images/footer_contactus_2.gif";

}

function WB_Out(n) {
	if(browsok) {
		imageOFF = eval(n + "0.src");
		document [n].src = imageOFF;
	}
}
function WB_Over(n) {
	if(browsok) {
		imageON = eval(n + "1.src");
		document [n].src = imageON;
	}
}
function WB_Down(n) {
	if(browsok) {
		imageON = eval(n + "2.src");
		document [n].src = imageON;
	}
}


function WB_Out_Deluxe(n) {
	if(browsok) {
		if (document.navDeluxe.activeItem.value != n) {
			imageOFF = eval(n + "0.src");
			document [n].src = imageOFF;
		}
	}
}
function WB_Over_Deluxe(n) {
	if(browsok) {
		if (document.navDeluxe.activeItem.value != n) {
			imageON = eval(n + "1.src");
			document [n].src = imageON;
		}
	}
}
function WB_Down_Deluxe(n) {
	if(browsok) {
		document.navDeluxe.activeItem.value = n;
		imageON = eval(n + "2.src");
		document [n].src = imageON;
	}
}

function ForumWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable,toolbar,status'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function dz_lvl1_over(btn_id) {

	document.getElementById('lvl1_' + btn_id).className = 'lvl1_'+ btn_id +'_btn_over';
	document.getElementById('lvl1_bg_' + btn_id).className = 'lvl1_bg_over';
}

function dz_lvl1_out(btn_id) {

	document.getElementById('lvl1_' + btn_id).className = 'lvl1_'+ btn_id +'_btn';
	document.getElementById('lvl1_bg_' + btn_id).className = 'lvl1_bg';

}

function dz_lvl2_over(lvl_id, btn_id) {

	document.getElementById('lvl2_' + lvl_id + '_' + btn_id + '_text').className = 'lvl2_'+ lvl_id +'_text_over';
	document.getElementById('lvl2_' + lvl_id + '_' + btn_id + '_bg').className = 'lvl2_'+ lvl_id +'_btn_over';
	document.getElementById('lvl2_' + lvl_id + '_' + btn_id).className = 'lvl2_'+ lvl_id +'_over';

}

function dz_lvl2_out(lvl_id, btn_id) {

	document.getElementById('lvl2_' + lvl_id + '_' + btn_id + '_text').className = 'lvl2_'+ lvl_id +'_text';
	document.getElementById('lvl2_' + lvl_id + '_' + btn_id + '_bg').className = 'lvl2_'+ lvl_id +'_btn';
	document.getElementById('lvl2_' + lvl_id + '_' + btn_id).className = 'lvl2_'+ lvl_id;

}
