//CUSTOMISE THESE SETTINGS

	flashX = 800;			//The default width of your flash content
	flashY = 600;			//The default height of your flash content
	divID = "flash"; 		//The div holding the flash file
	flashID = "flashMov"; 	//The id of the flash file
	//IF USING AN OUTER DIV FOR CENTERING, OR NEED ADDITIONAL SPACE FOR A SIDE COLUMN SPECIFY BELOW
	containerID = "main";
	extraWidth = 400;







//*****************************************
//********* DO NOT EDIT BELOW *********
firstRun = true;

//IF JS ENABLED, HIDE THE PAGE UNTIL RESIZED/LOADED
if (document.getElementById && document.getElementsByTagName && document.createTextNode) {
//document.write('<style type=\"text/css\" > #'+containerID+'{display:none}</style>');
//document.write('<style type=\"text/css\" > #'+divID+'{display:none}</style>');
document.write('<style type=\"text/css\" > #'+divID+'{height:'+(flashY+36)+'px}</style>');
document.write('<style type=\"text/css\" > #'+divID+'{width:'+(flashX+24)+'px}</style>');	
}



window.onload = function() {
	flashX = flashX+24;
	flashY = flashY+36;
	goSize(flashX,flashY);
	document.getElementById(flashID).focus();
	nY = pageHeight();
	nHeight(nY);
}	
//FOR THE FLASH WHEEL SCROLL
window.onresize = function() {
	nHeight();
}
//REPLACE DEFAULT SIZE
function goSize(fX,fY){
	document.getElementById(divID).style.height = fY+"px";
	document.getElementById(divID).style.width = fX+"px";
		document.getElementById(divID).style.display = "block";
	if (document.getElementById(containerID)){
		document.getElementById(containerID).style.width = extraWidth+fX+"px";
		document.getElementById(containerID).style.display = "block";
	}
}

function pageHeight() {return window.innerHeight != null? window.innerHeight: document.documentElement && document.documentElement.clientHeight ? document.documentElement.clientHeight:document.body != null? document.body.clientHeight:null;}

function updateContent(arg1,arg2,arg3,arg4,arg5) {
	if(arg4){
	//resize flash DIV
	goSize(arg4,arg5);
	document.getElementById(flashID).focus();
	}
	flashMovie = document.getElementById(flashID);
	flashMovie.updateContent(arg1,arg2,arg3,arg4,arg5);
 }
function nHeight(){
	flashMovie = document.getElementById(flashID);
	flashMovie.nHeight(pageHeight());
 }
function fromFlash(){
	 firstRun = false;
 }
function flashHeight(size){
	goSize(size[0],size[1]);
}