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 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();
}

/* Slide Show */
function changeimage(towhat,url,url2){
if (document.images){
document.images.targetimage.src=towhat.src
gotolink=url
textlink=url2
}
}
function zoom(){
window.location=gotolink
}

function details(){
window.location=textlink
}

var myimages=new Array()
var gotolink="#"

function preloadimages(){
for (i=0;i<preloadimages.arguments.length;i++){
myimages[i]=new Image()
myimages[i].src='images/screens/'+preloadimages.arguments[i]
}
}

preloadimages("atlas-fish_p.jpg","aqua_p.jpg","fish_p.jpg","breed_p.jpg","care_p.jpg",
	"plant_p.jpg", "water_p.jpg", "budget_p.jpg", "plan_p.jpg", "jour_p.jpg")


function Babel(LANGUE)
{
	var URL = location.href;
	self.location = "http://babelfish.altavista.com/babelfish/tr?doit=done&url=" + URL +"&lp=" + LANGUE;
}

function favoris(ext)
{
	site = 'http://www.aquariogest.'+ext;
	titre = 'AquarioGest - acquario software';
	
	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 veilles versions
	{
		Pdiv = document.all[ divID ];
		PcH = true;
	}
	else if ( document.layers && document.layers[ divID ] ) // Pour les très veilles versions
	{
		Pdiv = document.layers[ divID ];
		PcH = true;
	}
	else
	{
		PcH = false;
	}
	return PcH;
}


function Recherche()
	{
		if ( GetElement("search"))
		{
			//Pdiv.className = ( Pdiv.className == 'cachediv' ) ? '' : 'cachediv';
			
			if ( Pdiv.className == 'cachediv' )
			{
				Pdiv.className = '';
			}
			else
			{
				Pdiv.className = 'cachediv';
				//document.googleform.sbi.focus();
			}
		}
	}


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+30,document.images[0].height+90); 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='Clicca per chiudere'><IMG src='"+img+"' style='border:0; cursor: hand;' alt='Clicca per chiudere' /></a>"); 
w.document.write("</TD></TR></TABLE>");
w.document.write("</BODY></HTML>"); 
w.document.close(); 
}


