HM_NS6 = (navigator.vendor == ("Netscape6") || navigator.product == ("Gecko")) ? true : false;
HM_DOM = (document.getElementById) ? true : false;
HM_NS4 = (document.layers) ? true : false;
HM_IE = (document.all) ? true : false;
HM_IE4 = HM_IE && !HM_DOM;
HM_Mac = (navigator.appVersion.indexOf("Mac") != -1);
HM_IE4M = HM_IE4 && HM_Mac;
HM_Opera = (navigator.userAgent.indexOf("Opera")!=-1);
HM_Konqueror = (navigator.userAgent.indexOf("Konqueror")!=-1);

HM_IsMenu = !HM_Opera && !HM_Konqueror && !HM_IE4M && (HM_DOM || HM_NS4 || HM_IE4);

HM_BrowserString = HM_NS4 ? "NS4" : HM_DOM ? "DOM" : "IE4";
function getReal(xy,el){
   if((HM_IE)||(HM_DOM)){
      Pos=(xy=="x")?el.offsetLeft:el.offsetTop;
	 
      if ((HM_IE)&&(!HM_Mac)&&(el.tagName)&&
          (el.tagName.toUpperCase()=="TABLE")&&
          (el.border)&&(el.border>0)) Pos++;
      tmpEl=el.offsetParent;
      while(tmpEl!=null){
         Pos+=(xy=="x")?tmpEl.offsetLeft:tmpEl.offsetTop;
         if ((HM_IE)&&(!HM_Mac)&&(tmpEl.tagName)&&
             (tmpEl.tagName.toUpperCase()=="TABLE")&&
             (tmpEl.border)&&(tmpEl.border>0)) Pos++;
         tmpEl=tmpEl.offsetParent;
      }
   }else{
      Pos=(xy=="x")?el.x:el.y;
	   
   }
     if (HM_IE&&HM_Mac) {
	   Pos+=(xy=="x")?parseInt(document.body.currentStyle.marginLeft) :
		parseInt(document.body.currentStyle.marginTop);
	   }

   return Pos;
}

function findXY(xory,placename) {
   var thePlacer = HM_DOM ? document.getElementById(placename) : 
                   HM_IE ? document.all(placename) : document.images[placename];
				   
   retVal=getReal(xory,thePlacer);
   return retVal;
}



function swapImgRestore() { 
  var i,x,a=document.sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function preloadImages() { 
  var d=document; if(d.images){ if(!d.p) d.p=new Array();
    var i,j=d.p.length,a=preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.p[j]=new Image; d.p[j++].src=a[i];}}
}
function findObj(n, d) { 
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}
function swapImage() { 
  var i,j=0,x,a=swapImage.arguments; document.sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=findObj(a[i]))!=null){document.sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function showHideLayers() {
  var i,p,v,obj,args=showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style	; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

function mover(imgid,imgfile)
{

document.images[imgid].src= imgfile;
}


function shownews(){
	
document.getElementById("newstitle").style.display='none'
document.getElementById("newstitle1").style.display='block'
document.getElementById("news").style.display='none'
document.getElementById("news1").style.display='block'

}
function shownews1(){

document.getElementById("newstitle1").style.display='none'
document.getElementById("newstitle").style.display='block'
document.getElementById("news1").style.display='none'
document.getElementById("news").style.display='block'

}

function changedaymenu()
{
   index1   = document.newsform.yearmenu.selectedIndex;
  current1 = document.newsform.yearmenu.options[index1].value;
 index   = document.newsform.monthmenu.selectedIndex;
 
  if( current1%4==0&&index==1)
	document.newsform.daymenu.options.length=28
	  else	  if(document.newsform.daymenu.options.length<29)
	document.newsform.daymenu[document.newsform.daymenu.options.length] = new Option ("29", "29", false, false);
}


	function gotonews()
	{
  index   = document.newsform.monthmenu.selectedIndex;
  current = document.newsform.monthmenu.options[index].value;

   index1   = document.newsform.daymenu.selectedIndex;
   current1 = document.newsform.daymenu.options[index1].value;

    index2   = document.newsform.yearmenu.selectedIndex;
   current2 = document.newsform.yearmenu.options[index2].value;
alert(current+'_'+current1+'_'+current2+'.htm')
//document.location=current+'_'+current1+'_'+current2+'.htm';


	}
	function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


/*-----light------------*/

var mypage=""
var ie=document.all
var ns=document.layers
var ns6=document.getElementById&&!document.all
function getPageSize(){
	
	var xScroll, yScroll;
	
	if (window.innerHeight && window.scrollMaxY) {	
		xScroll = document.body.scrollWidth;
		yScroll = window.innerHeight + window.scrollMaxY;
	} else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac
		xScroll = document.body.scrollWidth;
		yScroll = document.body.scrollHeight;
	} else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari
		xScroll = document.body.offsetWidth;
		yScroll = document.body.offsetHeight;
	}
	
	var windowWidth, windowHeight;
	if (self.innerHeight) {	// all except Explorer
		windowWidth = self.innerWidth;
		windowHeight = self.innerHeight;
	} else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
		windowWidth = document.documentElement.clientWidth;
		windowHeight = document.documentElement.clientHeight;
	} else if (document.body) { // other Explorers
		windowWidth = document.body.clientWidth;
		windowHeight = document.body.clientHeight;
	}	
	
	// for small pages with total height less then height of the viewport
	if(yScroll < windowHeight){
		pageHeight = windowHeight;
	} else { 
		pageHeight = yScroll;
	}

	// for small pages with total width less then width of the viewport
	if(xScroll < windowWidth){	
		pageWidth = windowWidth;
	} else {
		pageWidth = xScroll;
	}


	arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight) 
	//alert(	arrayPageSize)
	return arrayPageSize;
}

