<!--
function onloadstuff() {initWriteNavigate(); centercontent();}

//function show(theplace) {  
//  for (var i=0; i < places.length; i++) {document.getElementById(places[i]).style.visibility = "hidden";} 
//	document.getElementById(theplace).style.visibility = "visible";	//show chosen
//}
function show(theplace) {
	for (var i=0; i<places.length; i++) {document.getElementById(places[i]).style.display="none";}
	document.getElementById(theplace).style.display="";
}

function writeyear() {now = new Date();	document.write(now.getFullYear());}

function toggleimagery() {
	document.getElementById('subimagery').style.display=(document.getElementById('subimagery').style.display=='none') ? '' : 'none';
	//toggle_arrow('bullet_imagery');
}

function openBrWindow(theURL,popW,popH) {
	screenX = screen.availWidth;	screenY = screen.availHeight;	leftPos = (screenX-popW)/2;		topPos = (screenY-popH)/2;
	params="status=yes,scrollbars=no,resizable=yes,width="+popW+",height="+popH+",top="+topPos+",left="+leftPos+",screenX="+topPos+",screenY="+leftPos;
	window.open(theURL,"popupwin",params);
}

function openPageDiv(page,div) {document.location.href=page+"?d="+div;}

function jumpToDiv() {
	if (location.search.length != 0) {str=location.search;	str_start=str.indexOf("d=")+2;	str_div=str.substr(str_start);	show(str_div);}
}

function showtdbg(td,kind) {
	arr=eval(kind+"s_array");
  	for (var i=0; i < arr.length; i++) {document.getElementById(arr[i]).style.backgroundColor = c_out;} 
	document.getElementById(td.id).style.backgroundColor = c_selected;	
	for (c=0; c<current_array.length; c++) {if (current_array[c].indexOf(kind)!=-1) {current_array[c]=td.id;}}
}
function outtdbg(kind) {
	arr=eval(kind+"s_array");
	for (c=0; c<current_array.length; c++) {
		if (current_array[c].indexOf(kind)!=-1) {
 		 	for (var i=0; i < arr.length; i++) {if (arr[i]!=current_array[c]) {document.getElementById(arr[i]).style.backgroundColor = c_out;}}; break;
		}
	}
}
function overtdbg(td,kind) {
	arr=eval(kind+"s_array");
	for (c=0; c<current_array.length; c++) {
		if (current_array[c].indexOf(kind)!=-1) {if (td.id!=current_array[c]) {document.getElementById(td.id).style.backgroundColor = c_over;}; break;}
	}
}

var n=new Array("<","<"," ","n","a","v","i","g","a","t","e");	
var navstring="";	var currn=0;	var intID;	cookieName = "mm_counter";

function writeNavigate() {
	if (currn>=n.length) {currn=0;clearInterval(intID);} 
	else {navstring+=n[currn];	document.getElementById("hint").innerHTML=navstring;	currn++;}
}
function initWriteNavigate() {
	count=0;
	if(document.cookie) {
		index = document.cookie.indexOf(cookieName);
		if (index != -1) {
			countbegin = (document.cookie.indexOf("=", index) + 1);	countend = document.cookie.indexOf(";", index);
			if (countend == -1) {countend = document.cookie.length;}
			count = document.cookie.substring(countbegin, countend);
		}
	}
	if (count==0) {intID=setInterval("writeNavigate()", 0.05*1000);	setCookie();}
}
function setCookie() {//set count
	var today = new Date();	var expires = new Date();
	expires.setTime(today.getTime() + 60*1000);//60 second cookie
	if (document.cookie) {
		 index = document.cookie.indexOf(cookieName);
	} else { 
		 index = -1;
	}
	if (index == -1) {
		 document.cookie=cookieName+"=1; " + " expires=" + expires.toGMTString() ;
	} else {
		 countbegin = (document.cookie.indexOf("=", index) + 1);
		 countend = document.cookie.indexOf(";", index);
		 if (countend == -1) {
				countend = document.cookie.length;
		 }
		count = eval(document.cookie.substring(countbegin, countend)) + 1;
		document.cookie=cookieName+"="+count+"; " + " expires=" + expires.toGMTString();
	}
}

function arrowClick() {//targetdiv=el.nextSibling.nextSibling;
	targetdiv=document.getElementById("subimagery");
	targetdiv.style.display=(targetdiv.style.display=='none') ? '' : 'none';
	if (targetdiv.style.display=="none") {document.bullet_imagery.src="images/arrow.gif";} 
	else {document.bullet_imagery.src="images/arrow_down.gif";}
}
function arrowOver() {
	targetdiv=document.getElementById("subimagery");
	if (targetdiv.style.display=="none") {document.bullet_imagery.src="images/arrow.gif";}
}
function arrowOut()  {
	targetdiv=document.getElementById("subimagery");
	if (targetdiv.style.display=="none") {document.bullet_imagery.src="images/arrow_non.gif";} 
}

window.onresize = centercontent; 
function centercontent() { 
	c = document.getElementById("content");
	if (c.offsetLeft<0) {c.style.marginLeft=parseInt(c.style.marginLeft)-c.offsetLeft;} 
	else {c.style.marginLeft = -400;	if (c.offsetLeft<0) {c.style.marginLeft=parseInt(c.style.marginLeft)-c.offsetLeft;}}
	if (c.offsetTop<0) {c.style.marginTop=parseInt(c.style.marginTop)-c.offsetTop;} 
	else {c.style.marginTop = -300;	if (c.offsetTop<0) {c.style.marginTop=parseInt(c.style.marginTop)-c.offsetTop;}}
}



/*
function arrowEvent(e,el) {
	//targetdiv=el.nextSibling.nextSibling;
	targetdiv=document.getElementById("subimagery");
	switch (event.type) {
		case "click" :
			targetdiv.style.display=(targetdiv.style.display=='none') ? '' : 'none';
			if (targetdiv.style.display=="none") {document.bullet_imagery.src="images/arrow.gif";} 
			else {document.bullet_imagery.src="images/arrow_down.gif";}
		break;
		case "mouseover" :
			if (targetdiv.style.display=="none") {document.bullet_imagery.src="images/arrow.gif";}
		break;
		case "mouseout" :
			if (targetdiv.style.display=="none") {document.bullet_imagery.src="images/arrow_non.gif";} 
		break;
	}
	//alert("event called:"+event.type);
}
*/

//-->