function Sf() {
	var agent = navigator.userAgent.toLowerCase();
	this.major = parseInt(navigator.appVersion);
	this.minor = parseFloat(navigator.appVersion);
	this.ns  = ((agent.indexOf('mozilla')!=-1) && ((agent.indexOf('spoofer')==-1) && (agent.indexOf('compatible') == -1)));
	this.ns2 = (this.ns && (this.major == 2));
	this.ns3 = (this.ns && (this.major == 3));
	this.ns4 = (this.ns && (this.major >= 4));
	this.ie   = (agent.indexOf("msie") != -1);
	this.ie3  = (this.ie && (this.major == 2));
	this.ie4  = (this.ie && (this.major >= 4));
	this.op3 = (agent.indexOf("opera") != -1);
	this.ns6 = (navigator.userAgent.indexOf("Netscape6") != -1) 
	this.ns7 = (navigator.userAgent.indexOf("Netscape/7.0") != -1) 
	this.ns702 = (navigator.userAgent.indexOf("Netscape/7.02") != -1) 
	this.ns71 = (navigator.userAgent.indexOf("Netscape/7.1") != -1) 
	
	//Netscape 7.1 Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)
	
	//this.ns73 = (navigator.userAgent.indexOf("Netscape/7") == 73)
	//this.ns72 = (navigator.userAgent.indexOf("Netscape/7") && (this.major == 2))  
	this.Mac5 = ((navigator.appVersion.indexOf("Mac") != -1) || (navigator.appVersion.indexOf("PPC") != -1)) && (navigator.appVersion.indexOf("5.") != -1);
	//if(is.Mac5){alert("mackintosh")}
	
	this.MAC = (navigator.platform.indexOf("PPC") > 0);
	
	if ( this.ns7 ) this.ns6 = this.ns7 ;
	//if ( this.Mac5 ) this.ns6 = this.Mac5 ;
	}

var n = navigator;
var ua = ' ' + n.userAgent.toLowerCase();
this.major = parseInt(navigator.appVersion);
this.minor = parseFloat(navigator.appVersion);
var av = n.appVersion;
var pl = n.platform.toLowerCase();
var an = n.appName.toLowerCase();

//alert(n.userAgent.toLowerCase())
//alert(navigator.userAgent.indexOf("Netscape/7"))
//alert(navigator.appVersion.indexOf("Netscape/7"))
IE5 = (navigator.appVersion.indexOf("MSIE 5.")!=-1)
IE6 = (navigator.appVersion.indexOf("MSIE 6.")!=-1)
IE5plus = IE5 || IE6;

//if(navigator.userAgent.indexOf("Netscape/7") != -1) {
  // do ns 7 stuff
//} else if (navigator.userAgent.indexOf("Netscape6") != -1) {

  // do ns 6 stuff
//}

var sf = new Sf();


if(sf.ns4) {

	doc = "document.layers";
	sty = "";
	htm = ".document";
    vis = "show";
	bgColor="bgColor"

} 

if(sf.ie4) {

	doc = "document.all";
	sty = ".style";
	htm = "";
    vis = "visible"
	//bgColor=".bgColor"
	
}

else if (sf.ns6) {
	
	doc = "document.getElementById";
	sty = ".style";
	htm = "";
    vis = "visiblity"
	//bgColor=".bgColor"
}  

var winH,winW,ow,oh

function finddimensions()

 {	
 
 	if (sf.Mac5) {

		
	winW = (sf.ns4)? window.innerWidth : document.body.offsetWidth 
	winH = (sf.ns4)? window.innerHeight : document.body.offsetHeight-4
	
	ow = (winW/2)-(780/2);
  	oh = (winH/2)-(407);
	
	if(ow<0) ow=0
	if(oh<0) oh=0
	}
	
	if ((sf.ns) && (sf.MAC)) {
	//alert("arekibo")
	winW = (sf.ns)? window.innerWidth : document.body.offsetWidth - 10
	winH = (sf.ns)? window.innerHeight : document.body.offsetHeight - 4
	
	ow = (winW/2)-(796/2);
  	oh = (winH/2)-(600);
	
	if(ow<0) ow=0
	if(oh<0) oh=0

		}
	if (sf.ns)  {

	winW = (sf.ns)? window.innerWidth : document.body.offsetWidth - 17
	winH = (sf.ns)? window.innerHeight : document.body.offsetHeight - 4
	
	ow = (winW/2)-(796/2);
  	oh = (winH/2)-(600);
	
	if(ow<0) ow=0
	if(oh<0) oh=0

		}
		
	if (sf.ns7) {
	
	winW = (sf.ns6)? window.innerWidth : document.body.clientWidth + 14
	winH = (sf.ns6)? window.innerHeight : document.body.clientHeight - 4
	//alert(ow)
	ow = (winW/2)-(800/2);
  	oh = (winH/2)-(600);
	
	if (document.body.offsetWidth != window.innerWidth) 
	
	if(ow<0) ow=0
	if(oh<0) oh=0

	if (document.body.offsetWidth == window.innerWidth ) ow=(winW/2)-(800/2)+8
	
	}	
		
	if ((sf.ns6) && (!sf.ns7)) {

	winW = (sf.ns6)? window.innerWidth : document.body.clientWidth +1
	winH = (sf.ns6)? window.innerHeight : document.body.clientHeight - 4
	
	ow = (winW/2)-(800/2);
  	oh = (winH/2)-(600);
	
	if (document.body.offsetWidth != window.innerWidth) ow=(winW/2)-(800/2)+1
	
	if(ow<0) ow=0
	if(oh<0) oh=0

	if (document.body.offsetWidth == window.innerWidth) ow=(winW/2)-(800/2)+8
	
	}
		
		
if (document.all) {

winW = (sf.ns)? window.innerWidth : document.body.offsetWidth
winH = (sf.ns)? window.innerHeight : document.body.offsetHeight

	{
	if (sf.ie4) winW = winW - 18;
	//if (is.ns4) winW = winW - 15;
	}

	ow = (winW/2)-(760/2);
  	oh = (winH/2)-(600);
	
	if(ow<0) ow=0
	if(oh<0) oh=0

		}
	}

//this code is for generic main navigation - developer BMcBreen - Arekibo Communications

function layerSetup() {

if (document.all)

{
//alert("hello")
p1naLyr = eval(doc+'["p1na"]'+sty); 
p1naLyr.left = ow //- 1
p1naLyr.top = 114
}


if ((sf.ns6) || (sf.ns7) || (sf.ns702))
{
//alert("hello")
p1naLyr = eval(doc+'("p1na")'+sty);	
p1naLyr.left = ow + 12
p1naLyr.top = 142
}



/*if (document.layers)
{
p1naLyr = eval(doc+'["p1na"]'+sty); p1naLyr.bgColor="#47114B";
p1naLyr.left = 1 + ow
p1naLyr.top = 101
}
*/

}
