<!--  //
	/*
	 Name........: launchURL
	 Descirption.: Redirect the opener page.
	 Parameters..:
				   strOpener - Page URL
	 Return......: void (nothing)
	 Owner.......: Thiago Santos
	 Date........: 08-JUL-2003
	 Obs.........:
	*/
	function launchURL(strOpener){
		redirectOpener(strOpener);
	}

	/*
	 Name........: (variables)
	 Descirption.: Define variables to indetify Browser Name and Version
	 Parameters..:
	 Return......: void (nothing)
	 Owner.......: Henrique Romero
	 Date........: 08-JUL-2003
	 Obs.........:
	*/
	var IE6 = (navigator.appName.indexOf('Internet Explorer') != -1 && navigator.appVersion.indexOf('MSIE 6.0') != -1) ? true : false;
	var IE55 = (navigator.appName.indexOf('Internet Explorer') != -1 && navigator.appVersion.indexOf('MSIE 5.5') != -1) ? true : false;
	var IE5 = (navigator.appName.indexOf('Internet Explorer') != -1 && navigator.appVersion.indexOf('MSIE 5.0') != -1) ? true : false;
	var IE4 = (navigator.appName.indexOf('Internet Explorer') != -1 && navigator.appVersion.indexOf('MSIE 4.0') != -1) ? true : false;
	var IE3 = (navigator.appName.indexOf('Internet Explorer') != -1 && navigator.appVersion.indexOf('MSIE 3.0') != -1) ? true : false;
	var N47 = (navigator.appName.indexOf('Netscape') != -1 && navigator.appVersion.indexOf('4.7') != -1) ? true : false;
	var N = (navigator.appName.indexOf('Netscape') != -1 && navigator.appVersion.indexOf('4.7') != -1) ? true : false;
	var N6 = (navigator.appName.indexOf('Netscape') != -1 && navigator.appVersion.indexOf('5') != -1) ? true : false;

/*
 Name........: redirectOpener
 Descirption.: Redirect the opener page.
 Parameters..:
			   strPage - Page URL
 Return......: void (nothing)
 Owner.......: Thiago Santos
 Date........: 08-JUL-2003
 Obs.........:
*/
	function redirectOpener(strPage)
	{
		opener.focus();
		opener.location.href = strPage;
	}

/*
 Name........: getQueryString
 Descirption.: Get page Query String.
 Parameters..:
 Return......: void (nothing)
 Owner.......: Thiago Santos
 Date........: 08-JUL-2003
 Obs.........:
*/

	function getQueryString()
	{
		var strQueryString;
		queryString = new Array();
		strQueryString = document.location.href;
		if (strQueryString.indexOf("?") == -1)
		{
			strQueryString = null;
		}else{
			strQueryString = strQueryString.substring((strQueryString.indexOf("?")+1),strQueryString.length);
		}

		var arrParms = new Array();
		if (strQueryString != null)
		{
			if (strQueryString.indexOf("&") != -1)
			{
				//Usado para NS, no NS n&atilde;o trabalho com a URL em encoded format
				arrParms = strQueryString.split("&");
			}else{
				//Usado para IE, no IE a URL &eacute; encoded format
				arrParms = strQueryString.split("%26");
			}
			for(intX=0;intX<arrParms.length;intX++)
			{
				queryString[arrParms[intX].substring(0,arrParms[intX].indexOf("="))] = arrParms[intX].substring(arrParms[intX].indexOf("=")+1,arrParms[intX].length);
			}
		}
	}

/*
 Name........: printPage
 Descirption.: Get current document name and open new window with a printable version.
 Parameters..:
 Return......: void (nothing)
 Owner.......: Henrique Romero
 Date........: 04-JUL-2003
 Obs.........:
*/
	function printPage(){
		strCurrentAddress = document.location.href;
		arrCurrentAddres = strCurrentAddress.split('/');
		strCurrentDocument = arrCurrentAddres[arrCurrentAddres.length-1];
		strExternalAddress = '';

		for(intX=0;intX<arrCurrentAddres.length-1;intX++){
			strExternalAddress += arrCurrentAddres[intX] + '/';
		}
		
		
		arrFileName = strCurrentDocument.split('.');
		strFileName = arrFileName[arrFileName.length-2];
		strFileNamePrintVersion = strFileName + '_print.' + arrFileName[arrFileName.length-1];
		strPrintablePage = strExternalAddress + strFileNamePrintVersion;
		openPage(strPrintablePage, strFileName);
	}

/*
 Name........: openPop
 Descirption.: Open a new Pop-up with the specifications
 Parameters..:
 				strURL 		- Address Page
				strWinName 	- Pop-up's name
				intW		- Window width (numeric)
				intH		- Window height (numeric)
				blnScroll	- If pop-up need scroll ('true', 'false')

 Return......: void (nothing)
 Owner.......: Henrique Romero
 Date........: 04-JUL-2003
 Obs.........:
*/
	function openPop(strURL, strWinName, intW, intH, blnScroll){
		l = (screen.width - intW) / 2;
		t = (screen.height - intH) / 2;
		newWin = window.open(strURL, strWinName,'status=0,width='+intW+',height='+intH+',top='+t+',left='+l+',scrollbars='+blnScroll);
		if (parseInt(navigator.appVersion) >= 4) { newWin.window.focus(); }
	}
	

/*
 Name........: openPage
 Descirption.: Open the specify URL in a blank window
 Parameters..:
 				strURL 		- Address Page
				strWinName 	- Pop-up's name
 Return......: void (nothing)
 Owner.......: Henrique Romero
 Date........: 04-JUL-2003
 Obs.........:
*/
	function openPage(strURL, strWinName){
		newWin = window.open(strURL, strWinName);
	}
	
/*
 Name........: addFavorite
 Descirption.: 
 Parameters..:
 Return......: 
 Owner.......: Henrique Romero
 Date........: 04-JUL-2003
 Obs.........:
*/
	function addFavorite(){
		strCurrentAddress = document.location.href;
		strTitle = document.title;
		window.external.AddFavorite(strCurrentAddress, strTitle);
	}
	
/*
 Name........: printeble
 Descirption.: direct link for print, only for Internet Explorer Browsers
 Parameters..:
 Return......: 
 Owner.......: Pablo Lopes
 Date........: 04-JUL-2003
 Obs.........:
*/
	function printable()
			{
				if (IE3||IE4||IE5||IE55||IE6)
					{
						document.write("<td valign='middle' align='right' width='462'><img src='http://www.ibm.com/i/v11/icons/print.gif' width='14' height='14' border='0' alt='' /></td><td valign='middle' align='right' width='50'><a href='javascript: printPage();' class='fbox'><b>Imprimir</b></a></td>")
					}
			}
			
		function printPage()
			{
				window.print();
			}

/*
 Name........: redirectToprintPage
 Descirption.: 
 Parameters..:
 Return......: 
 Owner.......: Thiago Santos
 Date........: 04-JUL-2003
 Obs.........:
*/
function redirectToprintPage(){
	window.open(document.location.href.substring(0,document.location.href.lastIndexOf(".")) + "_print.shtml");
}

/*
 Name........: rollover
 Descirption.: Rollover Image.
 Parameters..:
				strObjectName - Object Name
				strObjectSource - Object Source
 Return......: void (nothing)
 Owner.......: Thiago Santos
 Date........: 22-JUL-2003
 Obs.........:
*/
function rollover(strObjectName,strObjectSource){
	eval("document." + strObjectName + ".src ='" + strObjectSource + "'");
}

function getFlashPlugin(){
	strContentVersion = 6;
	var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
	var strCurrentPage = window.location.href.substring(window.location.href.lastIndexOf('/') + 1,window.location.href.length).toLowerCase();
	
	if ( plugin ) {
		var words = navigator.plugins["Shockwave Flash"].description.split(" ");
	    for (var i = 0; i < words.length; ++i) {
			if (isNaN(parseInt(words[i])))
			continue;
			var strPluginVersion = words[i]; 
	    }
		strFlashCanPlay = strPluginVersion >= strContentVersion;
	} else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.appVersion.indexOf("Win") != -1)) {
		document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
		document.write('on error resume next \n');
		document.write('strFlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & strContentVersion)))\n');
		document.write('</SCR' + 'IPT\> \n');
	}
}
// -->
