// JavaScript Document

function drawFlash(swf,w,h){
	
	
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+w+'" height="'+h+'" id="flash" ><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="'+swf+'" /><param name="menu" value="false" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#000000" /><embed src="'+swf+'" menu="false" quality="high"  wmode="transparent" bgcolor="#000000" width="'+w+'" height="'+h+'" name="flash"  allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');
		
	
	
}


var display_msg = 1;

function checkMsg(){
	
	
	if(display_msg == 1){
		
		txt = "At LEIGH KICKBOXING STUDIO we do not advocate, condone nor participate in children’s fights! All children’s training is based around safety first. Children are NOT small adults, but fragile, growing, developing, enthusiastic balls of energy. At Leigh Kickboxing Studio we operate a family friendly child SAFE training system which will focus this energy but emphasises self defence, respect and discipline. We treat YOUR children as if they were OUR children. <br><br>Yours in martial respect<br>David Eckersley<br>School Director.";
		document.getElementById('msg_txt').innerHTML = txt;
		
		openWin();
		
	}
	
	
}

function openWin(){
	
		
		document.getElementById('grey_out').style.display = "block";
		document.getElementById('popup_msg').style.display='block';
		resizePage();
	
	
}

function closeWin(){
	
		
		document.getElementById('grey_out').style.display = "none";
		document.getElementById('popup_msg').style.display='none';
		
	
	
}

function resizePage(){
	
	
	h = document.body.clientHeight;
	w = document.body.clientWidth;
	
	if(document.getElementById('grey_out')){
		
		document.getElementById('grey_out').style.height = h + "px";
	}
	
	
	if((document.getElementById('popup_msg'))&&(document.getElementById('popup_msg').style.display=='block')){
		
		document.getElementById('popup_msg').style.left = Math.floor((w - parseInt(document.getElementById('popup_msg').clientWidth))/2);
		document.getElementById('popup_msg').style.top = Math.floor((h - parseInt(document.getElementById('popup_msg').clientHeight))/2);
		
	}
	
	
	
}