

var site = {};

var preload = "<span id='img1'></span><span id='img2'></span>";

site.head = function(title, subtitle){
	return	"<div class='head'><table class='page' align='center'><tr>" +
			"<td class='title'>&nbsp;</td>" +
			"<td class='subtitle'>" + preload + subtitle + "</td>" +
			"</tr></table></div>";
};

site.menu = function(left, right){
	return	"<div class='menu'><table class='page' align='center'><tr>" +
			"<td class='left'>" + left + "</td>" +
			"<td class='right'>" + right + "</td>" +
			"</tr></table></div>";
};

site.main = function(){
	return	"<div class='body'><table class='page' align='center'><col class='main'/><col class='right'/><tr><td class='main'>";
};

site.foot = function(){
	return	"</td></tr></table></div>";
};

site.copyright = function(message){
	return	"<div class='copyright'><table class='page' align='center'><tr>" +
			"<td>" + message + "</td>" +
			"</tr></table></div>";
};


site.reference = function(){
	return "";
};

site.tutorial = site.reference;


site.adjustFonts = function(){
	try {
		if (window.navigator.userAgent.match("Linux")) {
			document.body.style.font = "menu";
		}
	}
	catch(error){
	}
};

site.example = function(source){
	return "";
};



var $header = {toString: function(){

	site.adjustFonts();

	var s = "";
	s += site.head("TORMME", " Oracle Replication Professional");
	s += site.menu(	"<a href='/pt-br/'>Principal</a>|"+"<font color='#003366'><a href='/map.html'>Mapa</a>|</font>"+"<a href='/pt-br/db/users/'>Login</a>",
					"<a href='/pt-br/products/'>Produtos</a>|" +
					"<a href='/pt-br/services/'>Serviços</a>|" +
					"<a href='/en-us/forum/'>Suporte Forum</a>|" +
					"<a href='/pt-br/general.intro/'>Documentação</a>|" +
					"<a href='/pt-br/download/'>Homologação</a>|" +
					"<a href='/pt-br/company/'>Contatos</a>|" +
					"<a href='/pt-br/demo/'>Demo OnLine</a>"+
					"<a href='/en-us/'><span class='aw-icon2' title='English'></span></a>");

	s += site.main();

	return s;
}};


var $column = {toString: function(){
	var flag = document.cookie && document.cookie.match(/aw=(\d+)/) ? RegExp.$1 : "0";
	var d = "";

	d += "<div class='aw-section'>";
	d += "<h2>A TORMME é FREE</h2>";
	d += "<span class='aw-icon8 aw-download'></span><a href='/pt-br/db/index.php?acao=down&id=3&cat=1'>TORMME 4.4.1</a><br>";
	d += "     Custo 0 de Licenciamento<br>";
	d += "     Realizado 27 de outubro de 2009<br>";
	d += "</div>";

	if (document.body.className == "download"){d = ""}
	return "</td><td class='right'>" + d;
}};


var $column1 = {toString: function(){
	var flag = document.cookie && document.cookie.match(/aw=(\d+)/) ? RegExp.$1 : "0";
	var d = "";

	d += "<div class='aw-section'>";
	d += "<h2>DBA Service</h2>";
	d += " O DBA Service foi desenvolvido para atender plenamente às suas necessidades, sendo um completo programa de administração e manutenção do seu ambiente de banco de dados, visando a prevenção e detecção de problemas e, caso estes venham a acontecer, indicando a melhor solução para que os mesmos possam ser prontamente contornados, minimizando ou mesmo eliminando prejuízos ou perda de tempo.<br> ";
	d += " Muitos fatores influenciam os trabalhos do dia-a-dia dos DBA's dentro das organizações, como crescimento de volume de dados, queda de performance, aumento e diversificação de bases de dados e frequentes atualizações de versões e releases.<br>";
	d += "</div>";

	if (document.body.className == "download"){d = ""}
	return "</td><td class='right'>" + d;
}};



















var $reference = {toString: function(){
	return 	site.reference();
}};

var $tutorial = {toString: function(){
	return 	site.tutorial();
}};

var $footer = {toString: function(){
	var s = "";
	s += site.foot();
	s += site.copyright("© protegido por direitos autorais 2006-2009 Grully CSI Ltda. Todos os direitos reservados.");

	return s;
}};


function insert_bbcode(v){
	try {
		if (document.selection){
			var str = document.selection.createRange().text;
			document.forms['xxx'].elements['message'].focus();
			var sel = document.selection.createRange();
			sel.text = "[" + v + "]" + str + "[/" + v + "]";
			return;
		}
		else if ((typeof document.forms['xxx'].elements['message'].selectionStart) != 'undefined') {
			var txtarea = document.forms['xxx'].elements['message'];
			var selLength = txtarea.textLength;
			var selStart = txtarea.selectionStart;
			var selEnd = txtarea.selectionEnd;
			var s1 = (txtarea.value).substring(0,selStart);
			var s2 = (txtarea.value).substring(selStart, selEnd)
			var s3 = (txtarea.value).substring(selEnd, selLength);
			txtarea.value = s1 + '[' + v + ']' + s2 + '[/' + v + ']' + s3;
			txtarea.selectionStart = s1.length;
			txtarea.selectionEnd = s1.length + 5 + s2.length + v.length * 2;
			return;
		}
		else {

		}
	}
	catch(e){
	}
}

var $form = "<input type=\"hidden\" name=\"check\" value=\"ok\" />";

try {
	if (!navigator.userAgent.match("Windows")){
		document.getElementsByTagName("html")[0].className += " unix";
	}
	if (navigator.userAgent.match("Safari")){
		document.getElementsByTagName("html")[0].className += " safari";
	}
}
catch(err){

}
var ie4 = document.all;

var ns4 = document.layers;

var ns6 = document.getElementById && !document.all; 

function browserVer4Detect()

{

  if(navigator.appVersion.substring(0,1) < 4)

    URLStr = "1.html";

  else

    URLStr = "2.html";

  window.location = URLStr;

}

function disableRightClick(e)

{

  var message = "Right click disabled";

  

  if(!document.rightClickDisabled) // initialize

  {

    if(document.layers) 

    {

      document.captureEvents(Event.MOUSEDOWN);

      document.onmousedown = disableRightClick;

    }

    else document.oncontextmenu = disableRightClick;

    return document.rightClickDisabled = true;

  }

  if(document.layers || (document.getElementById && !document.all))

  {

    if (e.which==2||e.which==3)

    {

      alert(message);

      return false;

    }

  }

  else

  {

    alert(message);

    return false;

  }

}

disableRightClick();


function noip(){window.open('http://creta.no-ip.info:81/pls/xp9ir2/direttore.administrator.main','','fullscreen=yes,scrollbars=yes');}





function BrowserInfo()

{document.Browser.Name.value=navigator.appName;document.Browser.Version.value=navigator.appVersion;document.Browser.Code.value=navigator.appCodeName;document.Browser.Agent.value=navigator.userAgent;}


