// JavaScript Document

pre=null;
cur=null;

function start (val) {
	var cur=document.getElementById(val);
	update(cur);
}

function update (val) {
	if (cur){
		pre=cur;
		pre.style.backgroundColor="#CCC";
		pre.style.borderBottomColor='#000';
		//pre.style.paddingBottom="2px";
		//pre.style.top="0px";
		pre.style.fontWeight="normal";
	}
	cur=val;
	cur.style.backgroundColor="#EEE";
	cur.style.borderBottomColor='#EEE';
	//cur.style.paddingBottom="10px";
	//cur.style.top="-8px";
	//cur.style.fontWeight="bold";
}

function zoom(val, sel) {
	if (sel==1) {
		val.style.paddingBottom="10px";
		val.style.top="-10px";
	}
	if (sel==2) {
		val.style.paddingBottom="0px";
		val.style.top="0px";
	}
}

function MM_showHideLayers() { //v9.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) 
  with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}