function clientSideInclude(id, url) {
	var req = GetXmlHttp();
	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
		try {
			req.open('GET', url, false);
			req.send(null);
			element.innerHTML = req.responseText;
		} catch (e) {
			alert (e);
		}
	} 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.";
	}
}

// We use these scripts to make up for the fact that some versions of
// IE don't handle the :hover pseudo class for anything but a link.
function needsHoverHack() {
	if (navigator && navigator.appName && navigator.appName == "Microsoft Internet Explorer") {
		var ua = navigator.userAgent;
		var msie = ua.indexOf ("MSIE ");
		if ( msie >= 0 ) {
			var version = parseInt(ua.substring(msie + 5, ua.indexOf(".", msie)));
			if (version <= 6) // IE versions 6 and below
				return true;
		}
	}
	return false;
}

function hovering(elem)
{
	if (needsHoverHack())
		elem.className += " hover-hack";
}
function nothovering(elem) {
	if (elem.className.indexOf("hover-hack") >= 0)
		elem.className = elem.className.replace(" hover-hack", "");
}

function GetXmlHttp()
{
	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;}

	return xmlhttp;
}
function showfilm(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)
	alert(xmlhttp.responseText);
	else
	alert("Request failed!");
	};//onreadystatechange
	xmlhttp.send(null);
}

function foo()
{
	var req = false;
	
	// 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;
			}
		}
	}
}

//showfilm
