/*****************************************************************************************/
//	inizio funzioni di debug
debug_msg = false;
function toDebug(string)
{
	if (debug_msg)
	{
		if((typeof window.console=="undefined")) {alert(string);}
		else {
			console.error();
			console.group(string);
			console.trace();
			console.groupEnd();
		}
	}
}
function toConsole(string)
{
	if((typeof window.console=="undefined")) {
		alert(string);
	}
	else console.log(string);
}
//	fine funzioni di debug
function $j(argument)
{
	var result = jQuery(argument);
	if (result.length == 0) return null;
	else return result;
}

$j(document).ready(function()
{ 
	$(".mceContentBody table tbody tr:even").addClass("even");
	$(".mceContentBody table tbody tr:odd").addClass("odd");

	$(".richiesta-informazioni").colorbox({width:"940px", height:"570px", inline:true, href:"#box-informazioni"});	
	$(".richiesta-preventivo").colorbox({width:"940px", height:"570px", inline:true, href:"#box-preventivo"});		
	$(".thumbnail a").colorbox();
	$(".scroll-pane p a").colorbox();	
  	FormatInput();
  	$(function()
			{
				// this initialises the demo scollpanes on the page.
				$('#contenuto').jScrollPane();
			});

});

$j(window).load(function()
{
});
$j(window).resize(function(){});
/*****************************************************************************************/