$(document).ready(function(){
						   
	// Clear field value when clicked
	$(".has_default_value").focus(function (){
		if ( $(this).val() == $(this).attr("title") ) { 
			$(this).val("");
		}
	});
	$(".has_default_value").blur(function (){ 
		if ( $(this).val() == "" ) {
			$(this).val($(this).attr("title"));
		}
	});
	
	// Rollovers
	$(".rollover").hover(function(){
		this.src = this.src.replace("_off","_on");
	},
	function(){
		this.src = this.src.replace("_on","_off");
	});
	$(".rollover").each(function(){
		rollover_src = $(this).attr("src");
		rollover_activate = rollover_src.replace(/_off/gi, "_on");
		$("<img>").attr("src", rollover_activate);
	});
	
	
	// Collapse Menu
	// Expand only the active menu, which is determined by the class name
//	$(".menu > li > a[@class=expanded] ").find("+ ul").slideToggle("medium");

	// Toggle the selected menu's class and expand or collapse the menu
//	$(".menu > li > a").click(function() {
//		$(this).toggleClass("expanded").toggleClass("collapsed").find("+ ul").slideToggle("medium");
//	});


    var flashvars = {
    };
    var params = {
        wmode: "transparent",
        scale: "noscale",
        salign: "t",
        quality: "high"
    };
    var attributes = {
        id: "myDynamicContent",
        name: "myDynamicContent",
        style: "background:#000;float:right;"
    };

    swfobject.embedSWF("/flash/header-banner.swf", "flashheader", "555", "130", "9.0.0", "expressInstall.swf", flashvars, params, attributes);

});