var hideShowContentManager = new manageHideShow(474);var hideShowAreaManager = new manageHideShow(444);var hideShowMoreManager = new manageHideShow(474);function showHideContent() {	var disableCycle = false;	if (arguments.length>0) {		if (typeof arguments[0] == 'string' && arguments[0]=='showHideArea') disableCycle = true;	}		if (hideShowAreaManager.isVisible() && !disableCycle) {		showHideArea('showHideContent');	}		var configObject = {		divID: 'content_details',		time: 1000,		leftScroll: 0,		topScroll: hideShowContentManager.hideShow(),		callback: function(){}	}		configObject['topScroll'] = -1*configObject['topScroll'];		if (arguments.length>0) {		if (typeof arguments[0] == 'function') configObject['callback'] = arguments[0];	}	$('#'+configObject['divID']).animate({"left": "+="+configObject['leftScroll']+"px","top": "+="+configObject['topScroll']+"px"},{duration:configObject['time']},{complete:setTimeout(function(){configObject['callback']();},(configObject['time']*1+10))});}function setLeftRight() {	if (statusManager.getCurrentStatus()=='COM') {		$('#iframe_area').removeClass('fix_left');		$('#iframe_area').addClass('fix_right');	} else {		$('#iframe_area').removeClass('fix_right');		$('#iframe_area').addClass('fix_left');	}}function showHideArea() {	var disableCycle = false;	if (arguments.length>0) {		if (typeof arguments[0] == 'string' && arguments[0]=='showHideContent') disableCycle = true;	}		if (hideShowContentManager.isVisible() && !disableCycle) {		showHideContent('showHideArea');	}		var configObject = {		divID: 'area_details',		time: 1000,		leftScroll: 0,		topScroll: hideShowAreaManager.hideShow(),		callback: function(){}	}		configObject['topScroll'] = -1*configObject['topScroll'];		if (arguments.length>0) {		if (typeof arguments[0] == 'function') configObject['callback'] = arguments[0];	}	$('#'+configObject['divID']).animate({"left": "+="+configObject['leftScroll']+"px","top": "+="+configObject['topScroll']+"px"},{duration:configObject['time']},{complete:setTimeout(function(){configObject['callback']();},(configObject['time']*1+10))});}function visualizzaContenuto() {	var pageLink = arguments[0];	var title = '';	if (arguments.length>2) {		title = "<font style='color:"+arguments[2]+" !important;'>"+arguments[1]+"</font>";	} else if (arguments.length>1) {		title = arguments[1];	}		if (hideShowContentManager.isVisible()) {		if ($('#iframe_contenuto').attr('src') && $('#iframe_contenuto').attr('src')!='' && $('#iframe_contenuto').attr('src')!=('contenuti/'+pageLink)) {			showHideContent(function(){				$('#iframe_contenuto').attr('src','contenuti/'+pageLink);				$('#details_title').html(title);			});		} else {			$('#iframe_contenuto').attr('src','contenuti/white.html');			$('#details_title').html('');		}	} else {		$('#iframe_contenuto').attr('src','contenuti/'+pageLink);		$('#details_title').html(title);	}}function visualizzaArea(area) {	var pageLink;	switch (area) {		case 'TECH': {			pageLink = 'tech.html';			break;		}		case 'COM': {			pageLink = 'com.html';			break;		}		default: {			pageLink = 'white.html';			break;		}	}	if (hideShowAreaManager.isVisible()) {		$('#iframe_area').attr('src','descrizione_aree/white.html');	} else {		$('#iframe_area').attr('src','descrizione_aree/'+pageLink);	}}function showHideMore() {	var configObject = {		divID: 'more_details',		time: 1000,		leftScroll: 0,		topScroll: hideShowMoreManager.hideShow(),		callback: function(){}	}		configObject['topScroll'] = -1*configObject['topScroll'];		if (arguments.length>0) {		if (typeof arguments[0] == 'function') configObject['callback'] = arguments[0];	}		var backgroundVisibile = (($('#more_contatti').is(':hidden'))?false:true);	if (configObject['topScroll']<0 && backgroundVisibile) {		$('#more_contatti').fadeOut(1000,function(){			$('#'+configObject['divID']).animate({"left": "+="+configObject['leftScroll']+"px","top": "+="+configObject['topScroll']+"px"},{duration:configObject['time']},{complete:setTimeout(function(){configObject['callback']();},(configObject['time']*1+10))});		});	} else {		$('#'+configObject['divID']).animate({"left": "+="+configObject['leftScroll']+"px","top": "+="+configObject['topScroll']+"px"},{duration:configObject['time']},{complete:setTimeout(function(){configObject['callback']();},(configObject['time']*1+10))});	}}function visualizzaMore() {	var pageLink = arguments[0];	var title = '';	if (arguments.length>2) {		title = "<font style='color:"+arguments[2]+" !important;'>"+arguments[1]+"</font>";	} else if (arguments.length>1) {		title = arguments[1];	}		if (hideShowMoreManager.isVisible()) {		if ($('#iframe_more').attr('src') && $('#iframe_more').attr('src')!='' && $('#iframe_more').attr('src')!=('more/'+pageLink)) {			showHideMore(function(){				$('#iframe_more').attr('src','more/'+pageLink);				$('#details_title_more').html(title);			});		} else {			$('#iframe_more').attr('src','more/white.html');			$('#details_title_more').html('');		}	} else {		$('#iframe_more').attr('src','more/'+pageLink);		$('#details_title_more').html(title);	}}function visualizzaContattiMore() {	var callback = function(){};	if (arguments.length>0) {		callback = arguments[0];	}	if (hideShowMoreManager.isVisible()) {		showHideMore(function(){			$('#iframe_more').attr('src','more/white.html');			$('#details_title_more').html('');			$('#more_contatti').fadeIn(1000,callback);		});	}}
