function getBrowser() 
{ 
    var OsObject = ""; 
   if(navigator.userAgent.indexOf("MSIE")>0) { 
        return "MSIE"; 
   } 
   if(isFirefox=navigator.userAgent.indexOf("Firefox")>0){ 
        return "Firefox"; 
   } 
}
var staticC ="";
function showFloatdiv(x,y,temp){
	staticC = temp;
	var browser = getBrowser();
	if(browser == "MSIE"){
		$('floatdiv').style.left = x;
		$('floatdiv').style.top = y;
		$('floatdiv').style.display="";
	}
	if(browser == "Firefox"){
		x = parseInt(x,10);
		if(temp == "e"){
			x -= 2;		
		}else{
			x += 0;
		}
		y = parseInt(y,10);
		y -= 1;
		$('floatdiv').style.left = x +"px";
		$('floatdiv').style.top = y +"px";
		$('floatdiv').style.display="";
	}
}

function showFloatdiv1(x,y,temp){
	staticC = temp;
	var browser = getBrowser();
	if(browser == "MSIE"){
		$('floatdiv').style.marginLeft = x;
		$('floatdiv').style.marginTop = y;
		$('floatdiv').style.display="";
	}
	if(browser == "Firefox"){
		x = parseInt(x,10);
		if(temp == "e"){
			x -= 2;	
			
		}else{
			x += 0;
			
		}
		y = parseInt(y,10);
		y -= 1;
		$('floatdiv').style.marginLeft = x +"px";
		$('floatdiv').style.marginTop = y +"px";
		$('floatdiv').style.display="";
	}
}


function closeFloatDiv(){
	$('floatdiv').style.display="none";
}
function setCitykey(citykey){
	setCookie("mapabccityname",citykey);
	getWeatherInfo(citykey);
	switch(staticC)
	{
		case 'change':
			$('citykey1').value = citykey;closeFloatDiv();
		break;
		case 'line':
			$('citykey2').value = citykey;closeFloatDiv();
		break;
		case 'station':
			$('citykey3').value = citykey;closeFloatDiv();
		break;
		case 's':
			$('citykey4').value = citykey;closeFloatDiv();
		break;
		case 'e':
			$('citykey5').value = citykey;closeFloatDiv();
		break;
	}		
}
