var v_pages = new Array ();
var v_page	= 0 ;
var v_index = 0 ;

	var divs = new Array();
	divs[0] = "div0";
	divs[11] = "div_11";
	divs[12] = "div_12";
	divs[13] = "div_13";
	divs[14] = "div_14";
	divs[15] = "div_15";
	divs[21] = "div_21";
	divs[22] = "div_22";
	divs[23] = "div_23";
	divs[24] = "div_24";
	divs[25] = "div_25";
	divs[31] = "div_31";
	divs[32] = "div_32";
	divs[33] = "div_33";
	divs[41] = "div_41";
	divs[42] = "div_42";
	divs[43] = "div_43";
	divs[44] = "div_44";

function f_prev(){
	if (v_index > 0) 		{ v_index-- ; }
	f_move(v_pages[v_index]) ;
}
function f_next(){
	if (v_index < v_page-1 ) { v_index++ ; }
	f_move(v_pages[v_index]) ;
}
function f_onoff(i){
	var x;
	notfound = true ;
	for (p in v_pages) { 
		if  (v_pages[p]==i) {
			v_index=p;
			notfound = false ;
		} 
	}
	if (notfound) { 
		v_index = v_page ;
		v_pages[v_page++] = i;
	}
	for (x in divs)	{
		if (document.getElementById){
			obj = document.getElementById(divs[x]);
			if (i==x){obj.style.display = "";}
			else {obj.style.display = "none";}
		}
	}
}
function f_move(i){
	var x;
	for (x in divs)	{
		if (document.getElementById){
			obj = document.getElementById(divs[x]);
			if (i==x){obj.style.display = "";}
			else {obj.style.display = "none";}
		}
	}
}
function f_onoff_menu(i,j){
	var divm = new Array();
	divm[1] = new Array("div_211","div_212","div_213","div_214","div_215");
	divm[2] = new Array("div_221","div_222","div_223","div_224");
	divm[3] = new Array("div_231","div_232","div_233","div_234");
	divm[4] = new Array("div_241","div_242","div_243","div_244");
	divm[5] = new Array("div_251","div_252","div_253","div_254");
	var x;
	for (x in divm[i])	{
		if (document.getElementById){
			obj = document.getElementById(divm[i][x]);
			if (j-1==x){obj.style.display = "";}
			else {obj.style.display = "none";}
		}
	}
}
function openflash()
		{
		// Fudge factors for window decoration space.
		// In my tests these work well on all platforms & browsers.
		w = 635;
		h = 645;
		var win = window.open('flash.html',	'beach party', 'width=635, height=645 ,' +
		'location=no, menubar=no, status=no, toolbar=no, scrollbars=no, resizable=no');
		win.resizeTo(635, 645);
		win.focus();
}

