$(function () {
$("#feature-control").jFlow({
slides: "#feature-block",
controller: ".control",
auto: true,
width: "850px",
height: "300px",
duration: 200,
prev: ".jFlowPrev",
next: ".jFlowNext"
});
});

$(function () {
$('#top-menu li').hover(
function () {$('ul', this).fadeIn(600);}, 
function () {$('ul', this).fadeOut(600);
});
});

$(function () {
$('.fade').hover(
function() {$(this).fadeTo("fast", 0.8);},
function() {$(this).fadeTo("fast", 1);
});
});

$(function () {
$('input[title], textarea[title]').each(function() {if($(this).val() === '') {$(this).val($(this).attr('title'));}
$(this).focus(function() {if($(this).val() == $(this).attr('title')) {$(this).val('').addClass('focused');	}
});
$(this).blur(function() {if($(this).val() === '') {$(this).val($(this).attr('title')).removeClass('focused');}
});
});
});

function showVideo(id) {
	document.write("<object width=\"425\" height=\"325\"><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=\"425\" height=\"325\"></embed></object>");
}
