$(function() {
	//$('.rotate').rotate(-3)
});

$(function() {
	//$('#gallery a').lightBox({fixedNavigation:true});	
	//$('#gallery a').lightBox();
});

$(function() {
    //if($.fontAvailable('Helvetica Neue-Light')) {
	//	alert('got it');
	//}
});

$(function() {
	$(document).pngFix(); 
});



// NASCONDO TUUTE LE RISPOSTE DELLE FAQ
$("#faq .story .full_box .body").each(function() {	
	$(this).css("display","none");
});

// VISUALIZZO LA RISPOSTA DELLA FAQ
$("#faq .story .full_box .moreinfo a").click(function(){
	// nascodo tutte le risposte aperte
	$("#faq .story .full_box .body").each(function() {	
		$(this).hide(1000);
	});
	var hidden_id = parseInt($(this).parent('.moreinfo').attr('id').replace('h_', ''), 10); 
	$("#faq .story .full_box #risp_" + hidden_id).show(1000);
	return false;
});

/* COMBOBOX */
$(function(){
	$("select").uniform();
	//$(":radio").uniform();
	//$(":checkbox").uniform();
});
$(document).ready(function() {
	//$('.myselectbox').selectbox({debug: true});
});



/* JAVASCRIPT MUSIC */
function playMusic(file) 
{
	if(document.getElementById("music").innerHTML=="")
	{
		document.getElementById("music").innerHTML='<embed src="'+file+'" hidden="true" autostart="true" loop="false">';
		//document.getElementById("playstop").value="Stop Sound";
//		$('#playstop').css("border","1px solid #ff9900");
		$('#playstop').removeClass("play");
		$('#playstop').addClass("stop");
	}
	else 
	{
		document.getElementById("music").innerHTML ="";
		//document.getElementById("playstop").value="Play Sound";
		$('#playstop').removeClass("stop");
		$('#playstop').addClass("play");
	}
}


$(function() {
	start();
});