// Global blogZ js
function delHash(str) {
	str = str + "";
	var pos = str.search("#");
	if(pos != -1) {
		return str.substring(0, pos);
	} else {
		return str;
	}
}
var allofstatus = false;
function checkAllofStatus() {
	if(!allofstatus) {
		setTimeout("checkAllofStatus()", 1000);
	} else {
		if(allofstatus == 1) {
			var obj = layer('alloficonon');
			if(obj.exists()) obj.show();
		} else {
			var obj = layer('alloficonoff');
			if(obj.exists()) obj.show();
		}
	}
}

var ua = navigator.userAgent.toLowerCase();
this.ua = ua;

this.isIE = ( (ua.indexOf("msie") != -1) );
this.isOpera = (ua.indexOf("opera") != -1);

function showBookmark(q)
{
        document.getElementById("confirm").style.display = "block";
        if ( this.isIE == true ) {
                if ( this.isOpera == true ) {}
                else {
                document.getElementById("confirm_carcass").style.top = "50px";
                }
        }
        document.getElementById('toLoad').src = wwwhost + 'setbookmark2.shtml?' + q;
        //set_bookmark2(q);
}
function hide_WL()
{
        document.getElementById("confirm").style.display = "none";
}
function showChecklist(q)
{
        document.getElementById("confirm").style.display = "block";
        document.getElementById("confirm_title").innerHTML = "CheckList";
        if ( this.isIE == true ) {
                if ( this.isOpera == true ) {}
                else {
                document.getElementById("confirm_carcass").style.top = "50px";
                }
        }
    document.getElementById('toLoad').src = wwwhost + 'setbookmark.shtml?' + q + '&fromblog=on&add=on';
}