//****************Begin Make fullscreen script****************

		function makeFullscreen(){
			window.moveTo(0,0);
			window.resizeTo(screen.availWidth,screen.availHeight);
		}
		makeFullscreen();
		function NewWindow(mypage, myname, w, h, scroll) {
		var winl = 0;
		var wint = 0;
		winprops =
		'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=1'+scroll+',resizable=1'
		win = window.open(mypage, myname, winprops)
		if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
		}
		function NewWindow_cr(mypage, myname, w, h, scroll) {
		var winl = ((screen.width - w) / 2)-196;
		var wint = ((screen.height - h) / 2)-51;
		winprops =
		'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=0,resizable=0'
		win = window.open(mypage, myname, winprops)
		if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
		}
		function NewWindow_tc(mypage, myname, w, h, scroll) {
		var winl = 0;
		var wint = 0;
		winprops =
		'height='+500+',width='+screen.width+',top='+wint+',left='+winl+',scrollbars=1'+scroll+',resizable=0'
		win = window.open(mypage, myname, winprops)
		if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
		}
		function closewindow() {
		window.parent.close();
		}
		//  End -->

		function MM_preloadImages() { //v3.0
		  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
		    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
		    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
		}
				
//****************End Make fullscreen script****************

//****************Start misc scripts****************
 // 4LevelWebs ver1.0 
function unblur() {
	this.blur();
} 
function blurLinks() {
	if (!document.getElementById) return;
	theLinks = document.getElementsByTagName("A");
	theAreas = document.getElementsByTagName("AREA");
	for(i=0; i<theLinks.length; i++) {theLinks[i].onfocus = unblur;}
	for(i=0; i<theAreas.length; i++) {theAreas[i].onfocus = unblur;}
  } 
//blurLinks End




//****************hide-show div scripts****************	


//here you place the ids of every element you want.
var ids=new Array('a1','a2','a3','a4','a5','a6','a7','a8','a9','a10','a11','a12');


function switchid(id){
	hideallids();
	showdiv(id);
}

function hideallids(){
	//loop through the array and hide each element by id
	for (var i=0;i<ids.length;i++){
		hidediv(ids[i]);
	}
}

function hidediv(id) {
	//safe function to hide an element with a specified id
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'none';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'none';
		}
		else { // IE 4
			document.all.id.style.display = 'none';
		}
	}
}

function showdiv(id) {
	//safe function to show an element with a specified id

	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'block';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'block';
		}
		else { // IE 4
			document.all.id.style.display = 'block';
		}
	}
}
