var emailValue = "E-mail Address";
var whichPopup = "";

function base(){
	// email form
	$("form#signup input#email").val(emailValue);
	$("form#signup input#email").focus(function(){
		if ( $(this).val() == "E-mail Address" ){
			emailValue = "";
			$(this).val(emailValue);
		}
	});
	$("form#signup input#email").blur(function(){
		if ( $(this).val() == "" ){
			emailValue = "E-mail Address";
			$(this).val(emailValue);
		}
	});
	
	// flash area
	$("div.flash div.play").hover(
		function () { $(this).addClass("active"); }, 
		function () { $(this).removeClass("active"); }
    );
	
	// popups
	$("div.popup div.trigger").mouseover(function(){
		whichPopup = $(this).parent("div").attr("id");
		$("div#"+whichPopup+"-full").show();
		$("div#"+whichPopup+"-full").animate({width:"502px", height:"420px"}, 250);
		
	});
	$("div.popup-full").mouseout(function(){
		whichPopup = "";
		$(this).animate({width:"0px", height:"0px"}, 250, function(){
			$(this).hide();
		});
	});
	
}

function flash(){
			$("div.flash").flash({
				src: '/flash/web-flash3.swf',
				width: 714,
				height: 401
			});
		}
