jQuery(document).ready(function() {

	jQuery('body').addClass("js");
	
	$(".scrollable").scrollable();
  
	//drop down menu
	/* 	DISABLED
	jQuery("#sddm > li").hover(
		function(){$(this).find("ul").slideDown(100)}
		,
		function(){$(this).find("ul").fadeOut(100);}
		);
	*/

	//fullerton gallery
	
	// $("a[rel='fullerton_gallery']").bind("click", function(){
	// 	preventDefault();
	// 	alert("asdfas");
	// })
	$("a[rel='fullerton_gallery']").click(function(e){
		e.preventDefault();
		
		var url = $(this).attr("href");
		$(".bigframe").find("img").remove();
		
		var img = new Image();

		$(img).attr('src', url).load(function() {
			$(".bigframe a").append(this);
			$(".bigframe a").attr("href",url);
		});

		
		// $(".bigframe img").attr("src",$(this).attr("href"));
	});
	
	// var userAgent = navigator.userAgent.toLowerCase();
	// if (userAgent.indexOf('firefox')!=-1) {
	// 	$(".searchbtn").css("top",0);
	// }
	if($("#mc_mv_EMAIL").attr("value")=="") {
		$("#mc_mv_EMAIL").attr("value","Your Email Address");
	}
	$("#mc_mv_EMAIL").focus(function(){
		if($(this).attr("value")=="Your Email Address") {
			$(this).attr("value","");
		}
	});
	$("#mc_mv_EMAIL").blur(function(){
		if($(this).attr("value")=="") {
			$(this).attr("value","Your Email Address");
		}
	}
	);

	

});

