﻿// JScript File

 <!--  
   
   var xmlHttp;
   var currentmenu = 0; 
   var menuname;
 
 
 function xGetElementById(e) {
    if(typeof(e)!='string') return e;
    if(document.getElementById) e=document.getElementById(e);
    else if(document.all) e=document.all[e];
    else e=null;
    return e;
}

 
 
 function gotoadmin() {
  document.location.href = 'admin/fumcadminlogin.aspx';
 }
  
     
function addhand (which){
   if (which == 1) {
     document.body.style.cursor = "hand";     
   }else{
     document.body.style.cursor = "auto";     
        }
         }
                                 
function UpdateImage () {
 var jcount=Math.floor(Math.random()*5)
 var opac=100;
 var docobj;
 
  
 while (opac > 0) {
 docobj = xGetElementById('imageheader');
 eval("docobj.filters.alpha.opacity="+opac);
 //eval("document.getElementById('imageheader').filters.alpha.opacity="+opac);
 opac = opac - 0.01;
                  }
 opac = 0; 
docobj.src = 'images/' + jcount + '.jpg';
  //document.getElementById('imageheader').src = 'images/' + jcount + '.jpg';
    
 while (opac < 100) {
 document.getElementById('imageheader').style="filter:alpha(opacity=" + opac + ")";
 opac = opac + 0.01;
                    }
 opac = 0;

}
                    
function GetXmlHttpObject() {
var xmlHttp=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttp;
}

function stateChanged() { 
var ctrl;
if (xmlHttp.readyState==4) { 

//document.getElementById("marke").innerHTML=xmlHttp.responseText;
ctrl = xGetElementById("marke");
ctrl.innerHTML=xmlHttp.responseText;

                           }
                        }
  
function setbanner(imagename) {
var ctrl;
var docobj;
 
ctrl = xGetElementById('imageheader');


 document.getElementById('imageheader').style.background = "url('images/" + imagename + "')";

//ctrl.background = 'images/' + imagename;

} 

		//-->
