//CUSTOMISE THESE SETTINGS
	flashX = 604;			//The default width of your flash content
	flashY = 920;			//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;
	previewHeight = 320;
	
//********* DO NOT EDIT BELOW *********
firstRun = true; 
var oY;
//IF JS ENABLED, HIDE THE PAGE UNTIL RESIZED/LOADED
  if (document.getElementById && document.getElementsByTagName && document.createTextNode && typeof mode=="undefined") {
	document.write('<style type=\"text/css\" > #'+divID+'{height:'+(flashY+36)+'px}</style>');
	document.write('<style type=\"text/css\" > #'+divID+'{width:'+(flashX+24)+'px}</style>');
}else if(document.getElementById && document.getElementsByTagName && document.createTextNode ){
	document.write('<style type=\"text/css\" > #'+divID+'{height:'+previewHeight+'px}</style>');
	document.write('<style type=\"text/css\" > #'+divID+'{width:'+Math.round(flashX*(previewHeight/flashY))+'px}</style>');		
}


window.onload = function() {
	//if(typeof mode=="undefined"){
	flashX = flashX+24;
	flashY = flashY+36;
	goSize(flashX,flashY);
	//}
	
	flashMovie = document.getElementById(flashID);
	flashMovie.focus();
	nY = pageHeight();
	oY = document.getElementById(divID).offsetTop;
	
	nHeight();
}
window.onresize = function() {nHeight();}	
//REPLACE DEFAULT SIZE

function changeDefaultSize(nuX,nuY){flashY = nuY;flashX = nuX;}

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)){
		//IF DIFFERENT SIZE, RESIZE CONTAINER ID TO SUIT
		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;}

//TO FLASH >>>>>>>>>
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(),oY);
} 
//FROM FLASH <<<<<<<<<<<<<<<<
function fromFlash(){firstRun = false;}
function flashHeight(size){goSize(size[0],size[1]);}