LastUpdate = "27-7-2003";

bookmarkurl = "http://acfsi.planetaclix.pt/index.html";
bookmarktitle = "ACF Soluções Informáticas";

contadorurl = "http://software.no.sapo.pt/contador.html";

MarqueeProperties = "direction=\"left\" scrollamount=\"6\" scrolldelay=\"120\"";
MarqueeText = "Brevemente teremos novas versões do Net Control com separação de tráfego nacional de tráfego internacional. Deixe o seu e-mail para ser avisado.";

email_geral = "acfsi@clix.pt";
email_sergio = "sj23@clix.pt";

//////////////////////////////////////////////////////////////////////////////////

if(DirTemplate == 1)
{
	PathI = "../images/";
	PathU = "../";
}
else
{
	PathI = "images/";
	PathU = "";	
}

//////////////////////////////////////////////////////////////////////////////////

function Banner()
{
	
	href = PathU;
	image = PathI;
	


	if(Math.random() > 0.3)
	{
		href += "Netcontrol.html";
		image += "bannetctrl.gif";
	}
	else
	{
		href += "ACFServer/index.html";
		image += "banacfsrv.gif";
	}


	document.write("<a href=\"" + href + "\"> <img src=\"" + image + "\" border=\"0\" width=\"468\" height=\"60\"></a>");
}

function AddEMailLinkGeral()
{
	document.write("<a href=\"mailto:" + email_geral + "\"><font size=\"2\" face=\"Arial\">e-mail</font></a>");
}

function addbookmark()
{
	if (document.all)
		window.external.AddFavorite(bookmarkurl,bookmarktitle)
}

var preloadFlag = false;

function newImage(arg) 
{
	if (document.images) 
	{
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() 
{
	if (document.images && (preloadFlag == true)) 
	{
		for (var i=0; i<changeImages.arguments.length; i+=2) 
		{
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}



function preloadImages() //onload
{
	if (document.images) 
	{
		netcontrolbt_over = newImage(PathI + "netcontrolbt-over.gif");
		acfserverbt_over = newImage(PathI + "acfserverbt-over.gif");
		softwarebt_over = newImage(PathI + "softwarebt-over.gif");
		repbt_over = newImage(PathI + "repbt-over.gif");
		redesbt_over = newImage(PathI + "redesbt-over.gif");
		downloadsbt_over = newImage(PathI + "downloadsbt-over.gif");
		contactosbt_over = newImage(PathI + "contactosbt-over.gif");
		linksbt_over = newImage(PathI + "linksbt-over.gif");
		ajudabt_over = newImage(PathI + "ajudabt-over.gif");

//		frames['contador'].location.href = contadorurl;

		preloadFlag = true;
	}
}



function AddButton(name, href, image_out, image_over)
{
	document.write("<a href=\"" + href + "\" onmouseout=\"changeImages('" + name + "', '" + image_out + "'); return true;\" onmouseover=\"changeImages('" + name + "', '" + image_over + "'); return true;\"> <img src=\"" + image_out + "\" border=\"0\" width=\"147\" height=\"24\" name=\"" + name + "\"></a><br>");
}

/*Lixo
function LeftMenu()
{
	if(typeof(DirTemplate) == "undefined")
	{
		PathI = "images/";
		PathU = "";	
	}
	else		
	{
		PathI = "../images/";
		PathU = "../";
	}


	AddButton("netcontrolbt", PathU + "Netcontrol.html", PathI + "netcontrolbt.gif", PathI + "netcontrolbt-over.gif");
	AddButton("acfserverbt", PathU + "Acfserver.html", PathI + "acfserverbt.gif", PathI + "acfserverbt-over.gif");

	AddButton("softwarebt", PathU + "Software.html", PathI + "softwarebt.gif", PathI + "softwarebt-over.gif");
	AddButton("redesbt", PathU + "Redes.html", PathI + "redesbt.gif", PathI + "redesbt-over.gif");

	AddButton("repbt", PathU + "Reparacoes.html", PathI + "repbt.gif", PathI + "repbt-over.gif");
	AddButton("downloadsbt", PathU + "Downloads.html", PathI + "downloadsbt.gif", PathI + "downloadsbt-over.gif");
	AddButton("contactosbt", PathU + "Contactos.html", PathI + "contactosbt.gif", PathI + "contactosbt-over.gif");

	AddButton("ajudabt", PathU + "Ajuda.html", PathI + "ajudabt.gif", PathI + "ajudabt-over.gif");

	AddButton("linksbt", PathU + "Links.html", PathI + "linksbt.gif", PathI + "linksbt-over.gif");

}
*/

function LeftUnderMenu()
{
	document.write("<p align=\"center\"><a href=\"javascript:addbookmark();\"><font size=\"1\" face=\"MS Sans Serif\">Adicionar aos Favoritos</font></a></p>");
	document.write("<p align=\"center\"><font size=\"1\" face=\"MS Sans Serif\">Última actualização:<br>" + LastUpdate + "</font></p>");

	if(document.location.href != "http://acfsi.planetaclix.pt/index.html" &&
		document.location.href != "http://acfsi.planetaclix.pt/")
		document.write("<p align=\"center\"><font size=\"1\" face=\"MS Sans Serif\"><a href=\"" + PathU + "Privacidade.html\">Privacidade</a></font></p>");

	Contador();
}

function top_marquee()
{
	str = "<marquee " + MarqueeProperties + ">";
	str += MarqueeText + "</marquee>";

	document.write(str);
}

function Contador()
{

//	alert(document.location.href);

	if(false)
//	if(document.location.href != "http://acfsi.planetaclix.pt/")
	{
		document.write("<div align=\"center\"><center><table border=\"1\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#FFFFFF\">");
		document.write("<tr><td>");

		document.write("<IFRAME NAME='contador' SRC=\"\" WIDTH=90 HEIGHT=13 FRAMEBORDER=0 MARGINWIDTH=0 MARGINHEIGHT=0 SCROLLING=no>");

//	<!-- Alternate content for non-supporting browsers -->

		document.write("<H2>Contador</H2>");
		document.write("</IFRAME>");

		document.write("</td></tr>");
		document.write("</table></center></div>");
	}

// CLIX
//	document.write("<IMG SRC=http://visit.webhosting.yahoo.com/counter.gif ALT=\"Counter\">");


// SAPO
//	document.write("<div align=\"center\"><center><table border=\"1\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#FFFFFF\">");
//	document.write("<tr><td><font size=\"1\" face=\"Microsoft Sans Serif\">Visitas:</font><font size=\"2\">");

//	document.write("<img src=\"http://software.no.sapo.pt/php/contador.php?df=software.no.sapo.pt\" align=\"absmiddle\">");

//	document.write("</font></td></tr>");
//	document.write("</table></center></div>");
}
