function f2c(fahrenheit1)
{
	var answer ;
	celsius1= 5/9 * (fahrenheit1 - 32)  
	return celsius1;
}


$(document).ready(function() {
	 $('#mainMenu').superfish({ 
		delay:       600, 
		animation:   {opacity:'show',height:'show'},
		autoArrows:  false, 
		dropShadows: true
	});  
	$("#tools a[lang='it'] img").attr({src: 'images/greekislandsbooking.com/it_inactive.gif'});
	$("#tools a[lang='en'] img").attr({src: 'images/greekislandsbooking.com/us_inactive.gif'});

	$('#bannerUp')
	.before('<div id="navBanner">')	
	.cycle({
	fx: 'fade', 
	delay: 2500,
	pager:  '#navBanner',
	pause:'true'
	});
	
	$('#innerBoxRightHome')
	.cycle({
	fx: 'turnDown', 
	delay: 3000,
	pause:'true'
	});
	
	$("#navBanner a").wrap("<div></div>");

	// effetto righe alternate su alcune tabelle
	$('.generalTable tr:even').addClass('alternate');
	
	// effetto hover su logo
	$("#header h1 a").hover(
		  function () {
			$(this).fadeTo("fast", 0.60);
		  }, 
		  function () {
			$(this).fadeTo("fast", 1);
	});



	// Add pdf icons to pdf links
	$("a.allegato[href$='.pdf']").addClass("pdf");
	
	// Add txt icons to document links (doc, rtf, txt)
	$("a.allegato[href$='.doc'], a.allegato[href$='.txt'], a.allegato[href$='.rft']").addClass("word");	
	
	// Add txt icons to document links (doc, rtf, txt)
	$("a.allegato[href$='.doc'], a.allegato[href$='.txt'], a.allegato[href$='.rft']").addClass("txt");
	
	// Add zip icons to Zip file links (zip, rar)
	$("a.allegato[href$='.zip'], a.allegato[href$='.rar']").addClass("zip"); 
	
	//Apply CSS class to all A links that end in .xls
	$("a.allegato[href$='.xls']").addClass("excel");
	
	//Apply CSS class to all A links that end in .ppt
	$("a.allegato[href$='.ppt']").addClass("ppt");
	
	//Apply CSS class to all A links that end in .jpg
	$("a.allegato[href$='.jpg']").addClass("img");
	
	//Apply CSS class to all A links that end in .gif
	$("a.allegato[href$='.gif']").addClass("img");
	
	// Add email icons to email links
	$("a.allegato[href^='mailto:']").addClass("email");



	$(".info").fancybox({
	
		'titleShow'			: false,
		'autoScale'     	: false,
		'transitionIn'		: 'fade',
		'transitionOut'		: 'fade',
		'type'				: 'iframe',
		'overlayColor'		: '#799ea7',
		'overlayOpacity'	: '0.6',
		'height'		    : 390

	});
	
	$(".img").fancybox({
		'titleShow'     : false,
		'transitionIn'	: 'elastic',
		'transitionOut'	: 'elastic',
		'overlayColor'	: '#799ea7',
		'overlayOpacity'	: '0.6'	
	});

	
	$(".pdf").fancybox({
		'titleShow'			: false,				   
		'width'				: '85%',
		'height'			: '80%',
		'autoScale'     	: false,
		'transitionIn'		: 'fade',
		'transitionOut'		: 'fade',
		'type'				: 'iframe',
		'overlayColor'		: '#799ea7',
		'overlayOpacity'	: '0.6'
	});
	


});
