
    var is_ie = (navigator.userAgent.indexOf('MSIE') >= 0) ? 1 : 0; 
    var is_ie5 = (navigator.appVersion.indexOf("MSIE 5.5")!=-1) ? 1 : 0; 
    var is_opera = ((navigator.userAgent.indexOf("Opera6")!=-1)||(navigator.userAgent.indexOf("Opera/6")!=-1)) ? 1 : 0; 
    //netscape, safari, mozilla behave the same??? 
    var is_netscape = (navigator.userAgent.indexOf('Netscape') >= 0) ? 1 : 0; 

function initPage(){
    alert("hello");
}

function GetXmlHttpObject()
{
    var xmlHttp=null;
    //Depending on the browser, try to create the xmlHttp object 
        if (is_ie){ 
            //The object to create depends on version of IE 
            //If it isn't ie5, then default to the Msxml2.XMLHTTP object 
            strObjName = (is_ie5) ? 'Microsoft.XMLHTTP' : 'Msxml2.XMLHTTP'; 
             
            //Attempt to create the object 
            try{ 
                xmlHttp = new ActiveXObject(strObjName); 
            } 
            catch(e){ 
            //Object creation errored 
                alert('IE detected, but object could not be created. Verify that active scripting and activeX controls are enabled'); 
                return; 
            } 
        } 
        else if (is_opera){ 
            //Opera has some issues with xmlHttp object functionality 
            alert('Opera detected. The page may not behave as expected.'); 
            return; 
        } 
        else{ 
            // FireFox | Mozilla | Netscape | Safari 
            xmlHttp = new XMLHttpRequest(); 
        } 
         
         
        //Return the instantiated object 
        return xmlHttp; 
}

function hover(src, svalue, saction, e){

    //var y = GetXmlHttpObject();
	//var strPage = "/includes/httpfetch.asp?ValType=GetExchangeRate&Data1=" + encodeURIComponent(svalue) + "&Data2=";
    //y.open('GET', strPage, false);    
    //y.send(null);   

	//Status 200 is a sucess from httpfetch
	//if (y.status != 200)
	//{
	//	alert("http error: " + y.status + "-" + y.statusText);
	//}
	//else
	//{
	//	var a = y.responseText;
	//	var b = a.split("^"); 

	//	if (is_ie){
	//	    eval("document.getElementById(src).innerText = b[0];");
	//	}else{
    //       eval("document.getElementById(src).textContent = b[0];");		
	//	}
	//}

	//if (saction == "hide")  {hideLayer(src, e);}
   // else    {floatLayer(src, e);}
}

function floatLayer(SRC, e){
	var tDIV = document.getElementById(SRC);
	var tX, tY;
	
	if (is_ie){
	    tX = window.event.clientX;
	    tY = window.event.clientY;
	}else{
        tX = e.pageX;
	    tY = e.pageY;
	}
	
	    tDIV.style.top = tY + 240;
	    
	    if(tX + 200>document.body.clientWidth)
	    {
		    tDIV.style.left = document.body.clientWidth - 180;
	    }
	    else
	    {
		    tDIV.style.left = tX;// + 15
	    }

	if (tDIV.style.visibility == "hidden"){
	    tDIV.style.cursor = "hand";
	    tDIV.style.visibility = "visible";
	}

}	

function hideLayer(SRC, e){
	var tDIV = document.getElementById(SRC);
        tDIV.style.visibility='hidden';
}

