var imgObj = new Image();
imgObj.src = "http://lifepop.com/images/top_images/current.jpg";

var imgObj1 = new Image();
imgObj1.src = "http://lifepop.com/images/top_images/right_over.jpg";


first_img();
function onmover(a)
{
var bg=a.background.split("/");
bg=bg[bg.length-1]

if(bg=="normal.jpg")
 {
   a.background="http://lifepop.com/images/top_images/current.jpg";
 }
  else if(bg=="right.jpg")
 {
   a.background="http://lifepop.com/images/top_images/right_over.jpg";
 }
} 
function onmout(a)
{
var bg=a.background.split("/");
bg=bg[bg.length-1]
if(bg=="current.jpg")
 {
   a.background="http://lifepop.com/images/top_images/normal.jpg";
 }
 else if(bg=="right_over.jpg")
 {
   a.background="http://lifepop.com/images/top_images/right.jpg";
 }
}
function first_img()
{
  var ty=img_type();
	if(ty!="default")
	{
	  document.getElementById(ty).background="http://lifepop.com/images/top_images/mouse_over.jpg"
	}
}
function img_type()
{
var url=window.location.href.split("?")[0].split("/");

if(url[2]=="www.lifepop.com")
{
    if(url[url.length-1]=="")
       {
	     st=url[url.length-2];
       }
    else
       {
	      st=url[url.length-1];
       }
}
else
{
	st=url[2];
}
switch(st)
 {
  case"au.lifepop.com":
  {
    return "hear";
    break;
   } 
case"mu.lifepop.com":
  {
    return"share";
    break;
   }
case"wiki.lifepop.com":
  {
    return"share";
    break;
   }
  case"city.aspx":
  {
    return"city";
    break;
   }
  case"tools.shtm":
  {
    return"tools";
    break;
   }
   case"podcast_map.aspx":
  {
    return"city";
    break;
   }
   default:
   {
   	return "default";
	break;
   }
 }
}
function set_href()
{
   var url=document.getElementById("top_url");
    window.location.href="http://www.google.cn/search?complete=1&hl=zh-CN&newwindow=1&q=site%3Alifepop.com+"+decodeURI(url.value)
}