$(document).ready(function() {
	var video = $.flash.create({
					swf: 'flashes/ozo.swf',
					width: 410,
					height: 231,
					expressInstaller: 'flashes/expressinstall.swf',
					hasVersion: 8,
					params: {
					wmode: 'transparent',
					base : 'flashes/'
					}
	});
	
	$('.video').html(video);
	
	
	$('#email').focus(function() {
		if ($(this).val() == 'Your Email')
			$(this).val('');
	});
	
	$('#email').blur(function() {
		if ($(this).val().search(/[^\s]/gi) == -1)
			$(this).val('Your Email');
	});
	
	jQuery.validator.addMethod("requiredText", function(value, element) {
		var rel = $(element).attr('rel');
		if ((value.search(/[^\s]/gi) == -1) || value == rel)
			return false;
		else
		return true;
	}, '');
	
	$("#frmSubscribe").validate({
			errorClass : 'error',
			messages: {
				email: {
					requiredText: "",
					email: ""
				}
			}
	});
});
