// JavaScript Document

function getXMLHTTP() {
	var xmlhttp=false;	
	try{
		xmlhttp=new XMLHttpRequest();
	}
	catch(e)	{		
		try{			
			xmlhttp= new ActiveXObject("Microsoft.XMLHTTP");
		}
		catch(e){
			try{
			xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
			}
			catch(e1){
				xmlhttp=false;
			}
		}
	}
		
	return xmlhttp;
}

function getIntro(strURL) {		
	
	var req = getXMLHTTP();
	
	if (req) {
		req.onreadystatechange = function() {
			if (req.readyState == 4) {
				if (req.status == 200) {						
					document.getElementById('introdiv').innerHTML="<p><div style='width:480px; height:270px; margin:0 auto;'><object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='480' height='270' id='FLVPlayer'><param name='movie' value='/FLVPlayer_Progressive.swf' /><param name='salign' value='lt' /><param name='quality' value='high' /><param name='scale' value='noscale' /><param name='FlashVars' value='&MM_ComponentVersion=1&skinName=/Clear_Skin_3&streamName=http://www.ldcdownloads.co.uk/flash/Intro&autoPlay=true&autoRewind=true' /><embed src='/FLVPlayer_Progressive.swf' flashvars='&MM_ComponentVersion=1&skinName=/Clear_Skin_3&streamName=http://www.ldcdownloads.co.uk/flash/Intro&autoPlay=true&autoRewind=true' quality='high' scale='noscale' width='480' height='270' name='FLVPlayer' salign='LT' type='application/x-shockwave-flash' pluginspage='http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash' /></object></div><br /></p>";						
				} else {
					alert("There was a problem while using XMLHTTP:\n" + req.statusText);
				}
			}				
		}			
		req.open("GET", strURL, true);
		req.send(null);
	}
}