function Start(page, largeur, hauteur)
{
  window.self.name="jsctarget";
  hauteur = hauteur + 20;
  largeur = largeur + 20;
  OpenWin = this.open(page, "CtrlWindow",
  "toolbar=no,menubar=no,location=no,scrollbars=no,resize=yes,height="+hauteur+",width="+largeur);
}

function OuvreCommande(page, largeur, hauteur)
{
  window.self.name="jsctarget";
  hauteur = hauteur + 20;
  largeur = largeur + 20;
  OpenWin = this.open(page, "CtrlWindow",
  "toolbar=no,menubar=no,location=no,scrollbars=yes,resize=non,height="+hauteur+",width="+largeur);
}

function OpenGuestBook()
{
	window.location.replace("http://www.aquariogest.net/index.php?rub=guestbook");
}


function BoutonDroit(){
if (event.button==2)
{
  alert('© Siesi - Tutti i diritti riservati');}
}
document.onmousedown=BoutonDroit;

if(window.parent.length!=0) {window.top.location.replace(document.location.href);}

/* ticker object */
var ticker = null; 
function init()
{
	ticker = new Ticker('ticker', 'tickerID', 1, 15);
	ticker.start();
}


function favoris(ext)
{
	site = 'http://reef.aquariogest.'+ext;
	titre = 'AquarioGest - software per acquario marino e reef';
	
	if ( navigator.appName != 'Microsoft Internet Explorer' )
	{
		window.sidebar.addPanel(titre, site,"");
	}
	else 
	{
		window.external.AddFavorite(site, titre);
	}
}

var Pdiv;

function GetElement(divID)
{
	if ( document.getElementById && document.getElementById( divID ) ) // Pour les navigateurs récents
	{
		Pdiv = document.getElementById( divID );
		PcH = true;
	}
	else if ( document.all && document.all[ divID ] ) // Pour les vieilles versions
	{
		Pdiv = document.all[ divID ];
		PcH = true;
	}
	else if ( document.layers && document.layers[ divID ] ) // Pour les très vieilles versions
	{
		Pdiv = document.layers[ divID ];
		PcH = true;
	}
	else
	{
		PcH = false;
	}
	return PcH;
}


function Recherche()
	{
		if ( GetElement("search"))
		{
			Pdiv.className = ( Pdiv.className == 'cachediv' ) ? '' : 'cachediv';
		}
	}


function ChangeMessage(message)
{
	if ( GetElement("ToolTipTexte"))
	{
		Pdiv.innerHTML = message;
	}
}

function InitPage()
{
	/* Cache la zone de recherche Google */
	Recherche();	
	
	/* Initiatlise le texte défilant */
	init();
	
	/* Initiatlise le texte Fading */
	//fadeInit();		
}

function PopupImage(img) { 
titre="Screenshot"; 
w=open("",'image','width=40,height=40,toolbar=no,scrollbars=no,resizable=no'); 
w.document.write("<HTML><HEAD><TITLE>"+titre+"</TITLE></HEAD>"); 
w.document.write("<BODY onload='checksize()' onblur='window.close()' onclick='window.close()' leftMargin=0 topMargin=0 marginwidth=0 marginheight=0>");
w.document.write("<SCRIPT language=javascript>function checksize() { if (document.images[0].complete) { window.resizeTo(document.images[0].width+10,document.images[0].height+60); window.focus();} else { setTimeout('checksize()',250) } }</"+"SCRIPT>"); 

w.document.write("<TABLE width='100%' border='0' cellspacing='0' cellpadding='0' height='100%'><TR>");
w.document.write("<TD valign='middle' align='center'><a href='window.close()' title='Click to close'><IMG src='"+img+"' style='border:0; cursor: hand;' alt='Click to close' /></a>"); 
w.document.write("</TD></TR></TABLE>");
w.document.write("</BODY></HTML>"); 
w.document.close(); 
}



