jQuery(document).ready(function() {
	
	var pagina = window.location.pathname;
	pagina = pagina.substring(pagina.lastIndexOf("/")+1, pagina.length).replace(".aspx", "").toLocaleLowerCase();

	if (pagina == "" || pagina == "default") {
		jQuery('.next').css({opacity: '0.5'});
		jQuery('.prev').css({opacity: '0.5'});

		jQuery('.next').hover(function(){
			jQuery(this).animate({opacity: '1'});
			jQuery(this).addClass('next-hover');
		},function(){
			jQuery(this).removeClass('next-hover');
			jQuery(this).animate({opacity: '0.3'});
		});
		jQuery('.prev').hover(function(){
			jQuery(this).animate({opacity: '1'});
			jQuery(this).addClass('prev-hover');
		},function(){
			jQuery(this).removeClass('prev-hover');
			jQuery(this).animate({opacity: '0.3'});
		})

		jQuery('#horizontal').jCarouselLite({
			btnNext: ".next",
			btnPrev: ".prev",
			speed: 1000,
			auto: 4000,
			visible:1
		});
		jQuery('#vertical').jCarouselLite({
			btnNext: ".next",
			btnPrev: ".prev",
			speed: 1000,
			auto: 4000,
			visible:1,
			vertical: 'true'
		});
		jQuery('#flashtv').flash({ 
		  src: 'flash/flash_tv.swf',
		  width: 674,
		  height: 247,
		  wmode: "opaque"
		});
		jQuery('#bematech').flash({ 
		  src: 'flash/bematech.swf',
		  width: 674,
		  height: 247,
		  wmode: "opaque"
		});
		jQuery('#buona').flash({ 
		  src: 'flash/buona.swf',
		  width: 674,
		  height: 247,
		  wmode: "opaque"
		});
	}
	switch (pagina)
			{
				case "portfolio":
					
					break;
			}
});