
document.write('<div id="_pl_loading" onmouseover="this.style.display=\'none\'"></div>');
_pl_div = document.getElementById('_pl_loading');
_pl_div.style.position = 'fixed';
_pl_div.style.width = '400px';
_pl_div.style.height = '160px';
_pl_div.style.zIndex = 65000;

_pl_clientWidth = document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body.clientWidth;
_pl_clientHeight = document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight;

_pl_div.style.left = ((_pl_clientWidth - 420) / 2) + 'px';
_pl_div.style.top = ((_pl_clientHeight - 40) / 2) + 'px';

_pl_div.className = 'box';
_pl_div.innerHTML = '<b><img src=\'loader_orange.gif\' /><font color=#FA9805><h4>2009新社花海部落格溫馨提示</h4>正在為您載入頁面，請稍候...</font></b>';

document.body.appendChild(_pl_div)

_pl_alpha('_pl_loading', 70);

function _pl_onload() {
	document.getElementById('_pl_loading').style.display='none';
}

if (document.attachEvent) window.attachEvent('onload',_pl_onload);
else window.addEventListener('load',_pl_onload,false);

function _pl_alpha(obj,al) {
	if(typeof obj != 'object') obj = document.getElementById(obj);
	if(!obj) return;
	var alpha=al/100;
	obj.style.filter = "alpha(opacity:"+al+")";
	obj.style.KHTMLOpacity = alpha;
	obj.style.MozOpacity = alpha;
	obj.style.opacity = alpha;
}

