function apriPopUp(URL,width,height,scrollbar)
{
	var left = (screen.width) ? (screen.width-width)/2 : 0;
	var top = (screen.height) ? (screen.height-height)/2 : 0;
	if(scrollbar == "") scrollbar = "no";
	var settings = 'height=' + height+ ',width=' + width + ',top=' + top + ',left=' + left + ',resizable=no,location=0,scrollbars=' + scrollbar;
	
	var now = new Date()
	window.open(URL,"popup" + now.getTime(),settings);		
}

function apriImmagine(path)
{
	document.getElementById("zoom").innerHTML = '<img src="' + path + '" border="0">';	
}


function rollover(imgObj)
{
	var uri_items = imgObj.src.split('/');
	image_name = uri_items[uri_items.length - 1];
	
	imgObj.src = imgObj.src.replace('/' + image_name, '/selected/' + image_name);
}


function rollout(imgObj)
{
	imgObj.src = imgObj.src.replace('/selected/', '/');
}

$j(document).ready(function() {
	showInspire1();
});

function showInspire1() {
	
	$j('#inspire2').css('display', 'none');
	
	//reset
	$j('#inspire1').fadeTo(0,0);
	$j('#inspire1').css('display', 'block');
	
	//show and hide 1
	$j('#inspire1').fadeTo(1000,1, function() {
		
		//solo se home ripeto
		if($j('.home').length > 0) {
			$j('#inspire1').delay(1500).fadeTo(800,0, function () {showInspire2();});
		}
	});
}

function showInspire2() {
	
	$j('#inspire1').css('display', 'none');
	
	//reset
	$j('#inspire2').fadeTo(0,0);
	$j('#inspire2').css('display', 'block');
	
	//show and hide 2
	$j('#inspire2').fadeTo(1000,1, function() {
		$j('#inspire2').delay(1500).fadeTo(800,0, function () {showInspire1();});
	});
	
}
