$(document).ready(function(){
	//initForm();
	
});

function initForm(){
	$('#header div.top-header div.search input.text').focus(function(){
		if ($(this).val()=='Search Keyword') $(this).val('');
	})
	$('#header div.top-header div.search input.text').blur(function(){
		if ($(this).val()=='') $(this).val('Search Keyword');
	})
};

function slideShow() {
    var $active = $('#slideshow a.slide.active');
    if ( $active.length == 0 ) $active = $('#slideshow a.slide:last');

    var $next =  $active.next().length ? $active.next()
        : $('#slideshow a.slide:first');

    $active.addClass('last-active');

    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });
}

$(function() {
    setInterval( "slideShow()", 5000 );
});

