jQuery(document).ready(function() {
	
	// Header flash
	var flashvars = {},
		params = {
			wmode: "opaque"
		},
		attributes = { 
			id: "logo" 
		};
	
	if ( jQuery('body').hasClass('home') ) {
		swfobject.embedSWF(wpThemePath + "/flash/sfl-header.swf", "logo", "960", "170", "7.0.0", false, flashvars, params, attributes);
	} else {
		// internal pages do not have the animated movement
		swfobject.embedSWF(wpThemePath + "/flash/sfl-header-static.swf", "logo", "960", "170", "7.0.0", false, flashvars, params, attributes);
	}
	
	//add a pint page link
	jQuery('#page-tools').prepend('<a class="print" href="javascript:window.print();" title="Print this page"><img alt="Print page" src="/wp-content/themes/sfl/images/design/print.gif"/>Print this page</a>');
   	
	jQuery('embed, object').wrap('<div class="video"></div>');
	
	//search keyword value
	var searchTxt = "enter keywords";
	jQuery('#fSearch').attr("value",searchTxt);
    
	jQuery('#fSearch').focus(function () {
         $(this).attr("value","");
    });
	jQuery('#fSearch').blur(function () {
		if ($(this).attr("value") == "") {
			$(this).attr("value", searchTxt);
		}
    });
	
});
