$(document).ready(function(){

$('#prodcate > li > a').click(function(){
	return false;
});

$('#prodcate > li').hover(function(){
	$(this).addClass('hover');
	$('#prodcate li ul').hide();
	$(this).find('ul').fadeIn(400);
	}, function(){
		$(this).removeClass('hover');
		$(this).find('ul').fadeOut(300);
		$(this).find('ul').hover(function(){
			$(this).parent().addClass('hover');
		}, function(){
			$(this).fadeOut(300);
			$(this).removeClass('hover');
		});
	});

//Contact
$('#contactform input,#contactform textarea')
	.focusin(function(){
		$(this).addClass('hover');
	})
	.focusout(function(){
		$(this).removeClass('hover');
	});

$('#contactform input.btn').hover(function(){
		$('#contactform input.btn').removeClass('focus,click');
		$(this).addClass('focus');
		$(this)
			.mousedown(function(){
				$(this).addClass('click');
		}).mouseup(function(){
			$(this).removeClass('click');
		});
	}, function(){
		$(this).removeClass('focus');
		$(this).removeClass('click');
	});
	


//cycle
var $ss = $('#cycle'); 
         
    // add slides 
    for (var i = 2; i < 5; i++) 
        $ss.append('<img src="../img/bannertemp'+i+'.jpg" width="900" height="174" alt="JPT Corporation" />'); 
 
    // start the slideshow 
	$ss.cycle({
		fx: 'fade',
		random: 1,
		pause: 1,
		speed: 3000,
		timeout: 6000
		});

//Pngfix
DD_belatedPNG.fix('#banner p, #header h1 a, #menu, #menu li a');


});
