$(document).ready(function(){
			
	$('.slideshow').cycle({
		fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
	});			   
	
	// menus control
	$("#areaMenus ul:eq(0) li").hover(
		function() { $(".subMenus ul", $(this)).slideDown(100); },
		function() { $(".subMenus ul", $(this)).slideUp(50); }
	);
	// end menus control

	// close notify error
	$(".close").click(
		function () {
			$(this).parent().fadeTo(400, 0, function () { // Links with the class "close" will close parent
				$(this).slideUp(400);
			});
			return false;
		}
	);

	// add red color for request field
	$('label:contains("*")').each(function(){$(this).html($(this).html().replace('*','<span>*</span>'));});

	$("a[ref='myPopup']").click(function() {
		$.nyroModalManual({
			width: 678,
			height: 510,
			overflow: "hidden",
			forceType: "iframe",
			url: $(this).attr("href")
		});
		return false;
	});

	$.nyroModalSettings({
		overflow: "hidden"
	});
	
	
})

