function showVideo(id) {
	document.write("<object width=\"250\" height=\"225\"><param name=\"movie\" value=\"http://www.youtube.com/v/"+id+">&amp;hl=en&amp;fs=1\"></param><param name=\"allowFullScreen\" value=\"true\"></param><param name=\"allowscriptaccess\" value=\"always\"></param><embed src=\"http://www.youtube.com/v/"+id+"&amp;hl=en&amp;fs=1\" type=\"application/x-shockwave-flash\" allowscriptaccess=\"always\" allowfullscreen=\"true\" width=\"250\" height=\"225\"></embed></object>");
}

var texts = Array();
texts['s'] = 'Keywords here...';
texts['name'] = 'Name';
texts['email'] = 'E-mail';
texts['url'] = 'Website';

$(function() {
		
	$('#contact form').submit(function(){
		$.post($(this).attr('action'),
			{
				name: $('#contact_name').val(), 
				email: $('#contact_email').val(), 
				message: $('#contact_message').val(),
				submit: $('#contact_submit').val(),
				blogname: $('#contact_blogname').val(),
				to: $('#contact_to').val()
			},
			function(response, status, xhr){
				$('#contact .response').html(response);
			});
		return false;
	});

	var x = Array();
	x[1] = 's';
	$('#'+x[1]).val(texts[x[1]]);
	$('#'+x[1]).focus(function() {
		if ($(this).val()==texts[x[1]])
			$(this).val('');
	});
	$('#'+x[1]).blur(function() {
		if ($(this).val()=='')
			$(this).val(texts[x[1]]);
	});
	x[2] = 'name';
	$('#'+x[2]).val(texts[x[2]]);
	$('#'+x[2]).focus(function() {
		if ($(this).val()==texts[x[2]])
			$(this).val('');
	});
	$('#'+x[2]).blur(function() {
		if ($(this).val()=='')
			$(this).val(texts[x[2]]);
	});
	x[3] = 'email';
	$('#'+x[3]).val(texts[x[3]]);
	$('#'+x[3]).focus(function() {
		if ($(this).val()==texts[x[3]])
			$(this).val('');
	});
	$('#'+x[3]).blur(function() {
		if ($(this).val()=='')
			$(this).val(texts[x[3]]);
	});
	x[4] = 'url';
	$('#'+x[4]).val(texts[x[4]]);
	$('#'+x[4]).focus(function() {
		if ($(this).val()==texts[x[4]])
			$(this).val('');
	});
	$('#'+x[4]).blur(function() {
		if ($(this).val()=='')
			$(this).val(texts[x[4]]);
	});

});

