//<![CDATA[
$(document).ready(function(){


		$('li.drop').hover(
			function() { $('.dropdown', this).css('display', 'block'); },
			function() { $('.dropdown', this).css('display', 'none'); });


	$("ul.nav li#projects, ul.nav li#projects.drop .dropdown").hover(
		function () {
		$('ul.nav li#projects a').css({"background-position": "-175px -67px"});
		}, 
		function () {
		$('ul.nav li#projects a').css({"background-position": "-175px -35px"});
		}
	);
	
// Cycle gallery
	$('#slideshowwrap').cycle({ 
		fx:    'fade', 
		speed:  1000,
		timeout: 4000,
		//speedIn:     null,  // speed of the "in" transition 
		//speedOut:    null,  // speed of the "out" transition
		next:   '#next', 
		prev:   '#previous',
		width:	'1272'
		//pause: '#pause'
	});
	$('#slideshow').cycle({ 
		fx:    'fade', 
		speed:  1000,
		timeout: 0,
		//speedIn:     null,  // speed of the "in" transition 
		//speedOut:    null,  // speed of the "out" transition
		next:   '#next', 
		prev:   '#previous',
		width:	'940'
		//pause: '#pause'
	});
	
// Form validator
	$(".register").validate();

// Image Borders

	/*
	$("#left a img , #center a img , #right a img").hover(
		function(){
			$(this).animate(
				{"opacity": "0.7"},
				{duration: 500}
			);
		},
		function(){
			$(this).animate(
				{"opacity": "1"},
				{duration: 500}
			);
	});		*/
	
				
	// transparent hover Panel
	/*$(".slide").hover(
		function () {
		$(this).animate({"opacity": "0.7"}, {duration: "fast"});
		}, 
		function () {
		$(this).animate({"opacity": "1.0"}, {duration: "fast"});
		}
	);
	$("#navigation").hover(
		function () {
		$(this).animate({"opacity": "0.8"}, {duration: "fast"});
		}, 
		function () {
		$(this).animate({"opacity": "1.0"}, {duration: "fast"});
		}
	);*/

}); //close doc ready
//]]>
