/*
 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........: pop
 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.......: īThiago Santos
 Date........: 04-JUL-2003
 Obs.........:
*/
function pop(mypage, myname, w, h, scroll)
{
	pos_left = (screen.width - w) / 2
	pos_top = (screen.height - h) / 2
	winprops = 'height='+h+',width='+w+',scrollbars='+scroll+',left='+ pos_left +',top='+ pos_top +''
	win = window.open(mypage, myname, winprops)
}


/*
 Name........: popFull
 Descirption.: Open a fullscreen page
 Parameters..:
 				strAddress 		- Address Page
				strNameWindow 	- Page name
 Return......: void (nothing)
 Owner.......: īThiago Santos
 Date........: 04-JUL-2003
 Obs.........:
*/
function popFull(strAddress, strNameWindow)
{
	window.open(strAddress, strNameWindow,'fullscreen=1,scrollbars=no');
}

/*
 Name........: openSite
 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.......: īThiago Santos
 Date........: 04-JUL-2003
 Obs.........:
*/
function openSite(mypage, myname, w, h, scroll)
{
	pos_left = 0;
	pos_top = 0;
	winprops = 'height='+h+',width='+w+',scrollbars='+scroll+',left='+ pos_left +',top='+ pos_top +''
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}


