// JavaScript Document
var animating = false;

$(document).ready(function () { 
	//Live lets me bind multiple events so I don't have to do the load and mousedown to change the color
	$(".text").each( function() {
		if($(this).val() == "")
			$(this).val($(this).attr("origValue"));
			
		if($(this).attr("origValue") != $(this).val()) {
			$(this).css("color", "white");
			$(this).css("background", "#1A1A1A");
		}
		else
			$(this).css("color", "#c1c1c1");
	});
	
	$(".text").live('focusout', function() {
		if($(this).val() == "")
			$(this).val($(this).attr("origValue"));
			
		if($(this).attr("origValue") != $(this).val()) {
			$(this).css("color", "white");
			$(this).css("background", "#ffffff");
		}
		else
			$(this).css("color", "#c1c1c1");
	});
	
	$(".text").focus(function() {
		$(this).css("color", "black");
		if($(this).attr("origValue") == $(this).val())
			$(this).val("")
	});
	
	$("a.video").each(function() {
		$(this).fancybox({ 
		  'type'                : 'swf',    // <--add a comma here 
		  'swf'                 : {'allowfullscreen':'true', 'autoplay':'true', 'flashvars': "configfile=pvpConfig.php?flv="+$(this).attr("flv")} // <-- flashvars here 
		}); 
	});


});

