/* Against central-illinois-celts.org */

var xmlhttp=false;
/* running locally on IE5.5, IE6, IE7 */                                               
if(location.protocol=="file:"){
	if(!xmlhttp)try{ xmlhttp=new ActiveXObject("MSXML2.XMLHTTP"); }catch(e){xmlhttp=false;}
	if(!xmlhttp)try{ xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); }catch(e){xmlhttp=false;}
}                                                                                
/* IE7, Firefox, Safari, Opera...  */
if(!xmlhttp)try{ xmlhttp=new XMLHttpRequest(); }catch(e){xmlhttp=false;}
/* IE6 */
if(typeof ActiveXObject != "undefined"){
	if(!xmlhttp)try{ xmlhttp=new ActiveXObject("MSXML2.XMLHTTP"); }catch(e){xmlhttp=false;}
	if(!xmlhttp)try{ xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); }catch(e){xmlhttp=false;}
}
/* IceBrowser */
if(!xmlhttp)try{ 
xmlhttp=createRequest(); }
catch(e){xmlhttp=false;}


function loadFragmentInToElement(contentframe,kinofile)
{	if(!xmlhttp)return alert("Your browser doesn't seem to support XMLHttpRequests.");
	xmlhttp.open("GET",kinofile,true);//make sure open appears before onreadystatechange lest IE will encounter issues beyond the first request
	xmlhttp.onreadystatechange=function(){
		if(xmlhttp.readyState!=4)return;
		if(!xmlhttp.status||xmlhttp.status==200){
			document.getElementById(contentframe).innerHTML = xmlhttp.responseText;
			}
		else
			alert("Request failed!");
			return false;
	};//onreadystatechange
	xmlhttp.send(null);
	return true;
}

function loadimagetinyballs(img_name,img_src) {
	document[img_name].src=img_src;
}

function CreateMailLink(thelink,user,domain,subject) 
{ 
		document.write('<a href="mai'); 
		document.write('lto:'+user+'&#64;'); 
		document.write(domain); 
		if ( subject.length > 0 ) 
		document.write("?subject="+subject); 
		document.write('">'+thelink+'<'+'/a>'); 
} 


