var str = getCookie('language');
var currUrl= document.location.href;

if (str != null){
    if (str == 'gb'){
        if (currUrl.indexOf("http://home.sina.com/")!= -1){
            document.location.href="http://gb.home.sina.com/";
        }
    }
    else {
        if (currUrl.indexOf("http://gb.home.sina.com/")!=-1){
            document.location.href="http://home.sina.com/";
        }
    }
}

