$(document).ready(function(){	
	var img=$(".image a img").attr("src");
	$(".filter").mouseover(function(){
	    $(".image a img").attr("src","public/images/pictures/"+ this.id +".jpg");
	}).mouseout(function(){
		 $(".image a img").attr("src",img);
	});
});


/*function sendForm(){
	//define some vars
	var obj = document.form1.select;
	var url = obj.options[obj.selectedIndex].value;
	//run the code
	document.form1.action = url;
	document.form1.submit();	
}*/

function onChange(){
	var obj = document.form1.select;
	var url = obj.options[obj.selectedIndex].value;
	window.location.href=url;
}

featuredcontentglider.init({
	gliderid: "feature", //ID of main glider container
	contentclass: "glidecontent", //Shared CSS class name of each glider content
	togglerid: "p-select", //ID of toggler container
	remotecontent: "", //Get gliding contents from external file on server? "filename" or "" to disable
	selected: 0, //Default selected content index (0=1st)
	persiststate: false, //Remember last content shown within browser session (true/false)?
	speed: 500, //Glide animation duration (in milliseconds)
	direction: "rightleft", //set direction of glide: "updown", "downup", "leftright", or "rightleft"
	autorotate: true, //Auto rotate contents (true/false)?
	autorotateconfig: [4000, 0] //if auto rotate enabled, set [milliseconds_btw_rotations, cycles_before_stopping]
})