adinit = (function(){
    var load_events = [],
        load_timer,
        script,
        done,
        exec,
        old_onload,
        init = function (){
            done = true;
            clearInterval(load_timer);
            while (exec = load_events.shift())
                exec();
            if (script) script.onreadystatechange = '';
        };
    return function (func) {
        if (done) return func();
        if (!load_events[0]) {
            if (document.addEventListener)
                document.addEventListener("DOMContentLoaded", init, false);
            if (/WebKit/i.test(navigator.userAgent)) { // sniff
                load_timer = setInterval(function() {
                    if (/loaded|complete/.test(document.readyState))
                        init(); // call the onload handler
                }, 10);
            }
            old_onload = window.onload;
            window.onload = function() {
                init();
                if (old_onload) old_onload();
            };
        }
        load_events.push(func);
    }
})();
adinit(function(){
	document.getElementById('copy').innerHTML=location.host;
	document.getElementById("ad_pu_top").innerHTML='<iframe width="730" height="90" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="/templates/public/ad/public~top~728x90.html" ></iframe >';
	document.getElementById("ad_pu_but").innerHTML='<iframe width="730" height="90" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="/templates/public/ad/public~botton~728x90.html" ></iframe >';
})
var $showlogin=0;
function showlogin(){
	if(!$showlogin){
		document.getElementById('showlogin').style.display='block';
		$showlogin=1;
	}else{
		document.getElementById('showlogin').style.display='none';
		$showlogin=0;
	}
}
function closeshowlogin(){
	document.getElementById('showlogin').style.display='none';
	$showlogin=0;
}
