//4 kunlun platform
//Talk with: kids.lee@gmail.com
// no ad bar~
var topStr='';
topStr +='<link href="http://static.kunlun.com/images/itop/kl_top.css" rel="stylesheet" type="text/css" />';
topStr += '<div id="kl_topbg">\
	<div class="kl_top" style="width:950px; background:url("http://static.kunlun.com/images/itop/images/top_bg.gif") repeat-x scroll center bottom transparent;">\
		<div class="top_left" style="width:670px;">\
			<div id="kl_logo"><a href="http://item.kunlun.com/kunlun/go/to.php?f=logo_gongjutiaolt_w&t=http://www.kunlun.com" title="昆仑在线" target="_blank"></a></div>\
			<div class="top_list" style="width:290px;"><a href="http://item.kunlun.com/kunlun/go/to.php?f=sg_gongjutiaolt_w&t=http://sg.kunlun.com" target="_blank">三国风云</a> | <a href="http://item.kunlun.com/kunlun/go/to.php?f=wx_gongjutiaolt_w&t=http://wx.kunlun.com" target="_blank">武侠风云</a> | <a href="http://item.kunlun.com/kunlun/go/to.php?f=qjp_gongjutiaolt_w&t=http://qjp.kunlun.com" target="_blank">千军破</a> | <a href="http://item.kunlun.com/kunlun/go/to.php?f=xk_gongjutiaolt_w&t=http://xk.kunlun.com" target="_blank"><font color="#ff3600">侠客世界</font></a> | <a href="http://item.kunlun.com/kunlun/go/to.php?f=more_gongjutiaolt_w&t=http://i.kunlun.com" target="_blank">更多</a></div>\
			<div class="gundong blue" id="icefable1">';
topStr +=unescape("%3Cscript type='text/javascript' src='http://static.kunlun.com/js/46.js'/%3E%3C/script%3E");				
topStr += '</div>\
		</div>\
		<div class="top_right">\
<p class="nav1"><a href="http://item.kunlun.com/kunlun/go/to.php?f=voucher_gongjutiaort_w&t=http://www.kunlun.com/?act=voucher.main" target="_blank" >充值</a></p><p class="nav2"><a href="http://item.kunlun.com/kunlun/go/to.php?f=cs_gongjutiaort_w&t=http://cs.kunlun.com/" target="_blank">客服</a></p><p class="nav3"><a href="http://static.kunlun.com/v3/jianhu/" target="_blank">家长监护</a></p><p class="nav4"><a href="javascript:add2Favorite();">加入收藏</a></p>\
		</div>\
	</div>\
</div>';
topStr += unescape("%3Cscript src='http://static.kunlun.com/images/head/js4platform.js' type='text/javascript'%3E%3C/script%3E");	
document.writeln(topStr);
function add2Favorite()
{ try{

 if (window.sidebar) {
 window.sidebar.addPanel(document.title, location.href,"");
 } else if( document.all ) {
 window.external.AddFavorite( location.href,document.title);
 }else{alert("您的浏览器不支持昆仑在线自带收藏功能，需手动加入收藏夹，谢谢您的支持");}

 }catch(e){}

}

try{
var d512 =new Date();
//if(d512.getDate()==15 && d512.getMonth() ==8 ){
//document.write('<style type="text/css">');
//document.write('html { filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1); }');
//document.write('</style>');
//}
}catch(e){}

function addHome()
{
    if (window.sidebar)
    {
        try {
            netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
        }
        catch (e)
        {
            alert("您的浏览器不支持第三方【设为首页】功能，需手动设置，谢谢您的支持");
        }

        var prefs =  Components.classes["@mozilla.org/preferences-service;1"].getService( Components.interfaces.nsIPrefBranch );
        prefs.setCharPref("browser.startup.homepage",location.href);
    }
    else if(document.all)
    {
        document.body.style.behavior="url(#default#homepage)";
        document.body.setHomePage(location.href);
    }
    else
    {
        alert("您的浏览器不支持第三方【设为首页】功能，需手动设置，谢谢您的支持");
    }
}

