jQuery(document).ready(function($) {
	
	//alert('inside whs.js');	
	$("#marquee").marquee({
		pauseOnHover: false,
		pauseSpeed: 1000,
		scrollSpeed: 17
	});
	
});

function setHistoryPage()
{
	jQuery(document).ready(function($) {
	
		$('#davis').click(function (e) {
			$('#davis-history').modal({overlayClose:true, minHeight: 50, closeHTML: "<a href='#' title='Close' class='modalCloseX simplemodal-close'>Close</a>"});
		});
		$('#humrighouse').click(function (e) {
			$('#humrighouse-history').modal({overlayClose:true, minHeight: 50, closeHTML: "<a href='#' title='Close' class='modalCloseX simplemodal-close'>Close</a>"});
		});
		$('#uglesich').click(function (e) {
			$('#uglesich-history').modal({overlayClose:true, minHeight: 50, closeHTML: "<a href='#' title='Close' class='modalCloseX simplemodal-close'>Close</a>"});
		});
		$('#everett').click(function (e) {
			$('#everett-history').modal({overlayClose:true, minHeight: 50, closeHTML: "<a href='#' title='Close' class='modalCloseX simplemodal-close'>Close</a>"});
		});
		$('#jhowell').click(function (e) {
			$('#jhowell-history').modal({overlayClose:true, minHeight: 50, closeHTML: "<a href='#' title='Close' class='modalCloseX simplemodal-close'>Close</a>"});
		});
		$('#thowell').click(function (e) {
			$('#thowell-history').modal({overlayClose:true, minHeight: 50, closeHTML: "<a href='#' title='Close' class='modalCloseX simplemodal-close'>Close</a>"});
		});
		$('.history-link').live('click', function() {
			$(this).next('.history-decade').slideToggle("slow");
		});
		$('.history-decade').live('click', function() {
			$(this).slideToggle("slow");
		});
	});
}


function launchCIFSlideShow()
{
	//alert('slideshow');
	// JAVASCRIPT VARS
	// cache buster
	var cacheBuster = "?t=" + Date.parse(new Date());
	// stage dimensions		
	var stageW = "545";//"100%";
	var stageH = "420";//"100%";
	
	
	// ATTRIBUTES
	var attributes = {};
	attributes.id = 'FlabellComponent';
	attributes.name = 'FlabellComponent';

	// PARAMS
	var params = {};
	params.bgcolor = "#ffffff";
	params.menu = "false";
	params.scale = 'noScale';
	params.wmode = "opaque";
	params.allowfullscreen = "true";
	params.allowScriptAccess = "always";			
	
	
	/* FLASH VARS */
	var flashvars = {};
	
	/// if commented / delete these lines, the component will take the stage dimensions defined 
	/// above in "JAVASCRIPT SECTIONS" section or those defined in the settings xml
	flashvars.componentWidth = stageW;
	flashvars.componentHeight = stageH;
	
	/// path to the content folder(where the xml files, images or video are nested)
	/// if you want to use absolute paths(like "http://domain.com/images/....") then leave it empty("")			
	flashvars.pathToFiles = "banner/";
	
	// path to content XML
	flashvars.xmlPath = "xml/banner.xml";
	
	
	/** EMBED THE SWF**/
	swfobject.embedSWF("banner/preview.swf"+cacheBuster, attributes.id, stageW, stageH, "9.0.124", "banner/js/expressInstall.swf", flashvars, params, attributes);
}