function get_doc_width(jmin) { 
// jmin is width if neither doc.clientwidth nor doc.offsetwidth are defined
	if (typeof(document.documentElement) != 'undefined' && typeof(document.documentElement.clientWidth) != 'undefined' && document.documentElement.clientWidth > 0) {
	
		return document.documentElement.clientWidth;
	} else {
		if (!typeof(jmin) == 'number') { jmin = 200; };
		var jbc = (typeof(document.body.clientWidth) != undefined)? document.body.clientWidth : 0;
		var jbo = (typeof(document.body.offsetWidth) != undefined)? document.body.offsetWidth : 0;
		
		
		return Math.max(jmin,Math.max(jbc,jbo));
	}
}

function goresize() {

	var jw = get_doc_width(800);
	//Video Position is set here
	if (document.getElementById('fixedVid')) {
			
			document.getElementById('fixedVid').style.left = jw/2 + 145 +"px";

		} 
		
	//Floating Captain Traffic Positon set here
	for (var jx=0;jx<3;jx++) {
	
		var currCapt = document.getElementById('captain_fly' + jx);
		//alert(currCapt);
		switch(currCapt.id) {
			
			case 'captain_fly0': 
			
				document.getElementById('captain_fly0').style.left = jw/2 + 320;
				//alert(currCapt.style.left);
				break;
			
			case 'captain_fly1' :

				document.getElementById('captain_fly1').style.left = jw/2 -410;
				//alert(currCapt.style.left);
				break;
				
		} 
	}
}

/*
function fixedVideo(){
	var xw = get_doc_width(800);
	
		if (document.getElementById('fixedVid')) 
		{
			
			document.getElementById('fixedVid').style.left = xw/2 + 320+"px";

		} 

}
*/
