	//function setheight() {
	//	var tmpheight = alertSize();
	//	document.getElementById("iframe").style.height = tmpheight-60; 
	//}

	function alertSize() {

		//document.getElementById("tblbm").style.visibility = "hidden";

		var myWidth = 0, myHeight = 0;
		if( typeof( window.innerWidth ) == 'number' ) {
			//Non-IE
			myWidth = window.innerWidth;
			myHeight = window.innerHeight-2;
		} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
			//IE 6+ in 'standards compliant mode'
			myWidth = document.documentElement.clientWidth;
			myHeight = document.documentElement.clientHeight;
		} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
			//IE 4 compatible
			myWidth = document.body.clientWidth;
			myHeight = document.body.clientHeight;
		}

		document.getElementById("iframe").style.height = myHeight-92;
		document.getElementById("iframe").height = myHeight-92;
		//document.getElementById("iframe").style.visibility = "hidden";

		document.getElementById("box").style.left = ((myWidth/2) - 200) + "px";
		document.getElementById("box").style.top = ((myHeight/2) - 200) + "px";

		document.getElementById("pnlintro").style.visibility = "visible";
		document.getElementById("pnlintro").style.left = (myWidth/2) - 200;
		document.getElementById("pnlintro").style.top = (myHeight/2) - 200;
		//return myHeight;
		
	}


	function over(obj){
		obj.style.background = 'url(images/bg_over.png)';
		//obj.style.background = "#556777";
	}

	function out(obj){
		//obj.style.background = 'url(images/bg.jpg)';
		obj.style.background = "";		
	}





	function intro_hide(){

		document.getElementById('pnlintro').style.zindex = "-1";
		document.getElementById('pnlintro').style.visibility = "hidden";


		xmlHttp = introGetXmlHttpObject();

		if (xmlHttp==null){
			alert ("Your browser does not support AJAX! You should probably upgrade your browser.");
			return;
		} 
		
		var url = "http://www.BlogSurfer.us/hide_intro.asp";
		url=url+"?sid = "+Math.random();

		//xmlHttp.onreadystatechange = introstateChanged;
		xmlHttp.open("GET",url,true);
		xmlHttp.send(null);


	}




	function introGetXmlHttpObject(){
		var xmlHttp = null;
		try
		{
		// Firefox, Opera 8.0+, Safari
		xmlHttp = new XMLHttpRequest();
		}
		catch (e)
		{
			// Internet Explorer
			try
			{
			xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
			}
			catch (e)
			{
			xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
			}
		}
		return xmlHttp;
	}


	function introstateChanged() {
		if (xmlHttp.readyState==4){ 
			//document.getElementById("channelmsg").innerHTML = xmlHttp.responseText;
			alert(xmlHttp.responseText);
		}
	}







	function toggle_tools(){

		if (document.getElementById('tools').style.visibility == "hidden") {
			document.getElementById('tools').style.visibility = "visible";
		} else {
			document.getElementById('tools').style.visibility = "hidden";
		}
	}




	function toolover(obj){
		obj.style.background = 'url(images/toolsbg_over.jpg)';
		//obj.style.background = "#556777";
	}

	function toolout(obj){
		//obj.style.background = 'url(images/bg.jpg)';
		obj.style.background = "";		
	}
