/*	Clear Status Bar created by Ogawa Ken 2009/10/30.
	This program is released under the my License:
	Don't touch it, don't use it, even don't look it!
*/

// ::: Clear Status Bar ::: //
function addEvent(obj, evType, fn){ 
	if (obj.addEventListener){ 
		obj.addEventListener(evType, fn, false); 
		return true; 
	} else if (obj.attachEvent){
		var r = obj.attachEvent("on"+evType, fn); 
		return r; 
	} else { 
		return false; 
	}
}
addEvent(window, 'load', windowLoaded);
function windowLoaded(){
	clearLoadingInt();
}
function clearLoadingInt(){
	if(navigator.userAgent.toLowerCase().search(/firefox/)>0){
		var blankdiv = document.createElement("div");
		blankdiv.setAttribute("id", "blankdiv");
		blankdiv.style.position = "absolute";
		blankdiv.style.top = "0";
		blankdiv.style.left = "0";
		var blankselect = document.createElement("select");
		blankselect.style.width = "0";
		blankselect.style.height = "0";
		blankselect.style.border = "none";
		blankselect.style.visibility = "hidden";
		blankdiv.appendChild(blankselect);
		document.body.appendChild(blankdiv);
		document.getElementById('blankdiv').style.display = "none";
		setInterval(clearLoading,500);
	}
}
function clearLoading(){
	if(document.getElementById('blankdiv').style.display == "block"){
		document.getElementById('blankdiv').style.display = "none";
	}else{
		document.getElementById('blankdiv').style.display = "block";
	}
};