$(document).ready(function(){
	var flashVars = "";
	if(window.location.search.match("video=")){
		flashVars = window.location.search;
	}
	$('#videoPlayer').flash({
		src: 'flash/VideoPlaylist_v4.swf'+flashVars,
		wmode: 'transparent',
		allowFullScreen: 'true',
		width: '936',
		height: '417'
	});
	$('#blurred .placeholder').flash({
		src: 'flash/AboutA.swf',
		width: '360px;',
		height: '328px'
	});
	$('#glare .placeholder').flash({
		src: 'flash/AboutB.swf',
		width: '360px;',
		height: '328px'
	});
	$('#cataracts .placeholder').flash({
		src: 'flash/AboutC.swf',
		width: '360px;',
		height: '328px'
	});
	$('#pnlFlashHome').flash({
			src: 'Healthy_Sight_Shell.swf',
			wmode: 'transparent',
			width: 960,
			height: 540
		}
	);
	$('#pnlFlashCalc').flash({
			src: 'flash/visionplan.swf',
			wmode: 'transparent',
			width: 936,
			height: 975
		}
	);
});
