
(function(){

	/*Use Object Detection to detect IE6*/
	var  m = document.uniqueID /*IE*/
	&& document.compatMode  /*>=IE6*/
	&& !window.XMLHttpRequest /*<=IE6*/
	&& document.execCommand ;
	
	try{
		if(!!m){
			m("BackgroundImageCache", false, true) /* = IE6 only */ 
		}
		
	}catch(oh){};
})();


function loadcontent() 
{

	anidiv("divact1","System Check"			,100);
	anidiv("divact1","System Check.."		,800);
	anidiv("divact1","System Check..."		,800);
	anidiv("divact1","System Check.."		,700);
	anidiv("divact1","<font color='green'>System Ready!</font>"		,300);
	anidiv("divact1","  "					,300);	
	anidiv("divact1","<font color='green'>System Ready!</font>"		,300);
	anidiv("divact1","  "					,300);	
	anidiv("divact1","<font color='green'>System Ready!</font>"		,300);

	Rotanidiv();

}

var timevar = 1000;

function anidiv(div,msg,anitime) 
{
timevar = timevar+anitime;
setTimeout(function() {

						document.getElementById(div).innerHTML = msg;}, timevar);
}

function Rotanidiv(div) 
{
	for (i=2;i<=12;i++)
	{
		
		eval('anidiv("divact'+i+'"		,"Loading",100)');
		eval('anidiv("divact'+i+'"		,"Loading",100)');
		eval('anidiv("divact'+i+'"		,"Loading.",200)');
		eval('anidiv("divact'+i+'"		,"Loading..",200)');
		eval('anidiv("divact'+i+'"		,"Loading...",200)');
		eval('anidiv("divact'+i+'"		,"Loading..",200)');
		eval('anidiv("divact'+i+'"		,"Loading.",200)');		
		eval('anidiv("divact'+i+'"		,"Loading",100)');		
		eval('anidiv("divact'+i+'"		,"<font color=green>Full Results Are Available!</font>"				,400)');		
		eval('anidiv("divact'+i+'"		," "								,200)');
		eval('anidiv("divact'+i+'"		,"<font color=green>Full Results Are Available!</font>"				,400)');		
		eval('anidiv("divact'+i+'"		," "								,200)');		
		eval('anidiv("divact'+i+'"		,"<font color=green>Register Now To View Results!</font>"				,400)');		
		eval('anidiv("divact'+i+'"		," "								,200)');
		eval('anidiv("divact'+i+'"		,"<font color=green>Register Now To View Results!</font>"				,400)');		
		eval('anidiv("divact'+i+'"		," "								,200)');		
		eval('anidiv("divact'+i+'"		,"<font color=green>Register Now To View Results!</font>"				,400)');	
		eval('anidiv("divact'+i+'"		," "								,200)');			
//		eval('anidiv("divact'+(i+1)+'"	,"Loading."							,100)');		
		eval('anidiv("divact'+i+'"		,"<font color=green>Full Results Are Available! <BR> Please Register Now to View...</font>"			,100)');	
	}
	
}





function clientSideInclude(id, url) 
{
	var req;
	//alert(url);

  // For Safari, Firefox, and other non-MS browsers
	if (window.XMLHttpRequest) 
	{
		try 
		{
			req = new XMLHttpRequest();
		} 
		catch (e)
		{
			req = false;
		}
	} 
	else if (window.ActiveXObject)
	{
    // For Internet Explorer on Windows
		try 
		{
			req = new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e)
		{
			try
			{
				req = new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch (e)
			{
				req = false;
			}
		}
	}
	var element = document.getElementById(id);

			
	if (!element)
	{
		alert("Bad id " + id +
   		"passed to clientSideInclude." +
   		"You need a div or span element " +
   		"with this id in your page.");
		return;
	}
	if (req)
	{
    // Synchronous request, wait till we have it all


		 function handleAjaxResponse(){
			  if(req.readyState == 4 && req.status == 200) 
			  {
			  element.innerHTML=req.responseText;
			  }
		 }

		req.open('GET', url, true);
	    req.onreadystatechange=handleAjaxResponse;
		req.send(null);

	} 
	else
	{
		element.innerHTML =
		"Sorry, your browser does not support " +
		"XMLHTTPRequest objects. This page requires " +
		"Internet Explorer 5 or better for Windows, " +
		"or Firefox for any system, or Safari. Other " +
		"compatible browsers may also exist.";
	}
return false;
}


function toggle_visibility(id) {

//	alert ('teaserboxdivstyle'+id);
	var e = document.getElementById(('teaserboxdivstyle'+id));
	if(e.style.display == 'none')
	{
	e.style.display = 'block';
	
//			var etxt = document.getElementById('txtarea'+id);	
		//	document.etxt.focus();
		//	document.etxt.select();	
		//	setTimeout('document.getElementById(\'txtarea\'+'+id+').focus();',400);
		//	setTimeout('document.getElementById(\'txtarea\'+'+id+').select();',490);
			
			document.getElementById('txtarea'+id).focus();
			document.getElementById('txtarea'+id).select();
			range = document.getElementById('txtarea'+id).createTextRange()
			range.execCommand('copy');
			window.status="COPIED TO CLIPBOARD"
			setTimeout("window.status=''",2800)	
	
	} else {
	e.style.display = 'none';
	}

	
	
		
}


function toggle_visibilityHEAD() {

//	alert ('teaserbox_divstyle'+id);
	var e = document.getElementById('teaserboxHEADdivstyle');
	if(e.style.display == 'none')
	{
	e.style.display = 'block';
	
		document.getElementById('txtareaHEAD').focus();
		document.getElementById('txtareaHEAD').select();
		range = document.getElementById('txtareaHEAD').createTextRange()
		range.execCommand('copy');
		window.status="COPIED TO CLIPBOARD"
		setTimeout("window.status=''",2800)		
		
	} else {
	e.style.display = 'none';
	}

	
}



function copyurl(id) {

		range = document.getElementById(id).createTextRange()
		range.execCommand('copy');
		window.status="COPIED TO CLIPBOARD"
		setTimeout("window.status=''",2800)		
		
}


