$("document").ready(function() {
	$('#slider').nivoSlider({
		effect:'fold', //Specify sets like: 'fold,fade,sliceDown'
		slices:15,
		animSpeed:600,
		pauseTime:5000,
		startSlide:0, //Set starting Slide (0 index)
		directionNav:true, //Next and Prev
		directionNavHide:true, //Only show on hover
		controlNav:true, //1,2,3...
		controlNavThumbs:true, //Use thumbnails for Control Nav
		keyboardNav:true, //Use left and right arrows
		pauseOnHover:true //Stop animation while hovering
	});
	
	$("#contactform").validationEngine();
	
	$("a[rel^='prettyPhoto']").prettyPhoto({
		animationSpeed: 'normal', /* fast/slow/normal */
		opacity: 0.80, /* Value between 0 and 1 */
		showTitle: true, /* true/false */
		allowresize: true, /* true/false */
		default_width: 500,
		default_height: 344,
		counter_separator_label: '/', /* The separator for the gallery counter 1 "of" 2 */
		theme: 'facebook', /* light_rounded / dark_rounded / light_square / dark_square / facebook */
		hideflash: false, /* Hides all the flash object on a page, set to TRUE if flash appears over prettyPhoto */
		wmode: 'opaque' /* Set the flash wmode attribute */
	});
	
	$(".et-company-teaser ul li.et-company-teaser-first-child").click(function(){
	  window.open($(this).find("a").attr("href")); return false;
	});
	
	$(".et-company-teaser ul li..et-company-teaser-last-child").click(function(){
	  window.location=$(this).find("a").attr("href"); return false;
	});

});
