//load style sheet

var browser=navigator.appName;
	 function itsNetscape() {
	 	if(parseInt(navigator.appVersion) >= 5){
	  		document.write('<LINK REL=StyleSheet HREF="index_ns.css" TYPE="text/css">')
	  	}
	  	else{
	  		document.write('<LINK REL=StyleSheet HREF="index_ns2.css" TYPE="text/css">')
	  	}
	 }	
	 function itsMsie() {
	  document.write('<LINK REL=StyleSheet HREF="index.css" TYPE="text/css">')
	 }	
	 if (browser == "Netscape") {itsNetscape()}
	 else{itsMsie()}

	 

//scrolling div script

function checkBrowser(){ 
    this.ver=navigator.appVersion; 
    this.dom=top.document.getElementById?1:0; 
    this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0; 
    this.ie4=(top.document.all && !this.dom)?1:0; 
    this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
    this.ns4=(top.document.layers && !this.dom)?1:0; 
    this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5);
    return this; 

} 

theBrowser = new checkBrowser();
var speed=30;
var loop, timer; 
function ConstructObject(obj,nest){ 
    nest=(!nest) ? '':'document.'+nest+'.'; 
    this.el=theBrowser.dom?document.getElementById(obj):theBrowser.ie4?document.all[obj]:theBrowser.ns4?eval(nest+'document.'+obj):0; 
    this.css=theBrowser.dom?document.getElementById(obj).style:theBrowser.ie4?document.all[obj].style:theBrowser.ns4?eval(nest+'document.'+obj):0; 
    this.scrollHeight=theBrowser.ns4?this.css.document.height:this.el.offsetHeight; 
    this.clipHeight=theBrowser.ns4?this.css.clip.height:this.el.offsetHeight; 
    this.up=MoveAreaUp;this.down=MoveAreaDown; 
    this.MoveArea=MoveArea; this.x; this.y; 
    this.obj = obj + "Object"; 
    eval(this.obj + "=this"); 
    return this; } 
function MoveArea(x,y){ 
    this.x=x;this.y=y; 
    this.css.left=this.x; 
    this.css.top=this.y; } 
function MoveAreaDown(move){ 
	if(this.y>-this.scrollHeight+objContainer.clipHeight){ 
    this.MoveArea(0,this.y-move);
    if(loop) setTimeout(this.obj+".down("+move+")",speed);
	} 
} 
function MoveAreaUp(move){ 
	if(this.y<0){ 
    this.MoveArea(0,this.y-move); 
    if(loop) setTimeout(this.obj+".up("+move+")",speed);
	} 
} 
function PerformScroll(speed){ 
	if(initialized){ 
		loop=true; 
		if(speed>0) objScroller.down(speed); 
		else objScroller.up(speed); 
	} 
} 
function CeaseScroll(){ 
    loop=false;
    if(timer) clearTimeout(timer); } 
var initialized; 
function InitializeScrollableArea(){ 
    objContainer=new ConstructObject('divContainer'); 
    objScroller=new ConstructObject('divContent','divContainer');
    objScroller.MoveArea(0,0);
    objContainer.css.visibility='visible';
    initialized=true; 
}
var loop2, timer2; 
function ConstructObject2(obj,nest){ 
    nest=(!nest) ? '':'document.'+nest+'.'; 
    this.el=theBrowser.dom?document.getElementById(obj):theBrowser.ie4?document.all[obj]:theBrowser.ns4?eval(nest+'document.'+obj):0; 
    this.css=theBrowser.dom?document.getElementById(obj).style:theBrowser.ie4?document.all[obj].style:theBrowser.ns4?eval(nest+'document.'+obj):0; 
    this.scrollHeight=theBrowser.ns4?this.css.document.height:this.el.offsetHeight; 
    this.clipHeight=theBrowser.ns4?this.css.clip.height:this.el.offsetHeight; 
    this.up=MoveAreaUp2;this.down=MoveAreaDown2; 
    this.MoveArea2=MoveArea2; this.x; this.y; 
    this.obj = obj + "Object"; 
    eval(this.obj + "=this"); 
    return this; } 
function MoveArea2(x,y){ 
    this.x=x;this.y=y; 
    this.css.left=this.x; 
    this.css.top=this.y; } 
function MoveAreaDown2(move){ 
	if(this.y>-this.scrollHeight+objContainer2.clipHeight){ 
    this.MoveArea2(0,this.y-move);
    if(loop2) setTimeout(this.obj+".down("+move+")",speed);
	} 
} 
function MoveAreaUp2(move){ 
	if(this.y<0){ 
    this.MoveArea2(0,this.y-move); 
    if(loop2) setTimeout(this.obj+".up("+move+")",speed);
	} 
} 
function PerformScroll2(speed){ 
	if(initialized2){ 
		loop2=true; 
		if(speed>0) objScroller2.down(speed); 
		else objScroller2.up(speed); 
	} 
} 
function CeaseScroll2(){ 
    loop2=false;
    if(timer2) clearTimeout(timer2); } 
var initialized2; 
function InitializeScrollableArea2(){ 
    objContainer2=new ConstructObject2('divContainer2'); 
    objScroller2=new ConstructObject2('divContent2','divContainer2');
    objScroller2.MoveArea2(0,0);
    objContainer2.css.visibility='visible';
    initialized2=true; 
}

//rollover script
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];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
if (document.images) {
		about_over = newImage("images/about_over.gif");
		broadband_over = newImage("images/broadband_over.gif");
		business_over = newImage("images/business_over.gif");
		home_over = newImage("images/home_over.gif");
		partners_over = newImage("images/partners_over.gif");
		icon_about_over = newImage("images/icon_about_over.gif");
		icon_broadband_over = newImage("images/icon_broadband_over.gif");
		icon_business_over = newImage("images/icon_business_over.gif");
		icon_home_over = newImage("images/icon_home_over.gif");
		icon_partners_over = newImage("images/icon_partners_over.gif");
		icon_site_over = newImage("images/icon_site_over.gif");
		icon_careers_over = newImage("images/icon_careers_over.gif");
		icon_contact_over = newImage("images/icon_contact_over.gif");
		arrow_flyout_over = newImage("images/arrow_flyout_over.gif");
		preloadFlag = true;
	}
}
var pathOfImg = "images/";
if (document.images)	{ 
	function buttonOn(imgName) {
	    document.images[imgName].src= pathOfImg + imgName + "_over.gif"
	}
  
	function buttonOff(imgName) {
	    document.images[imgName].src= pathOfImg + imgName + ".gif"
	}
}	  

//image switch script
   	if (document.images) {
   	menu1ad = new Image ();
	menu1ad.src = "images/menu1.gif";
	menu2ad = new Image ();
	menu2ad.src = "images/menu2.gif";
	menu3ad = new Image ();
	menu3ad.src = "images/menu3.gif";
	}
function img_act(imgName) {
    if (document.images) {
	document["holder"].src = eval(imgName + "ad.src");
	}
}
function img_inact(imgName) {
     if (document.images) {
	    document["holder"].src = "images/menu0.gif";
   }
}
//flyout script
var browser = navigator.appName
var version = parseInt(navigator.appVersion)
var ns4 = (browser == "Netscape" && version >= 4)
var ie4 = (browser == "Microsoft Internet Explorer" && version >= 4)
var ns3 = (browser == "Netscape" && version == 3)
var ie3 = (browser == "Microsoft Internet Explorer" && version < 4)
var ns2 = (browser == "Netscape" && version < 3)
var ready = false

// hide and show for layers
function showObject(obj) 
{
	{
		if (ns4) obj.visibility = "show"
		else if (ie4) obj.visibility = "visible"
	}
}

function hideObject(obj) 
{
	{
        if (ns4) obj.visibility = "hide"
        else if (ie4) obj.visibility = "hidden"
	}
}
function drop(dropnum)
{
	{
	hideall()
	if (ns4) target = eval("document."+dropnum)
	if (ie4) target = eval(dropnum+".style")
	showObject (target);
	Last[Last.length] = dropnum;
	}
}
function hideall()
{
	for (x=0;x<Last.length; x++)
	{
	if (ns4) target = eval("document."+Last[x])
	if (ie4) target = eval(Last[x]+".style")
	hideObject(target)
	}
Last=[];
}
function donothing() 
{}

var Last = new Array();

function layer_act (imgName, openmenu)
// Show Image
{
if (document.images) {
if ((openmenu == null) || (IE4))
	document[imgName].src = tocItem[imgName].on.src
else
	{
	image= eval("document.layers."+openmenu+".document.images['"+imgName+"']");
	image.src = tocItem[imgName].on.src;
	}
}
}
function layer_act (imgName, openmenu)

// Show Image
{
if (document.images) {
if ((openmenu == null) || (IE4))
	document[imgName].src = tocItem[imgName].on.src
else
	{
	image= eval("document.layers."+openmenu+".document.images['"+imgName+"']");
	image.src = tocItem[imgName].on.src;
	}
}
}

function layer_inact (imgName, openmenu)

// Hide Image
{
if (document.images) {
if ((openmenu == null) || (IE4))
    document[imgName].src = tocItem[imgName].off.src
else
	{
	image= eval("document.layers."+openmenu+"layer.document.images['"+imgName+"']");
	image.src = tocItem[imgName].off.src;
	}
}
}
// rev03.29.1999 -- DO NOT MODIFY! -- Begin date display function with y2k compatibility

var pong;

function makeArray(n){
  this.length = n;
  for (i=1;i<=n;i++){
    this[i]=0;
  }
  return this;
}

function displayDate() {
	var this_month = new makeArray(12);
    this_month[0]  = "Jan";
    this_month[1]  = "Feb";
    this_month[2]  = "March";
    this_month[3]  = "April";
    this_month[4]  = "May";
    this_month[5]  = "June";
    this_month[6]  = "July";
    this_month[7]  = "Aug";
    this_month[8]  = "Sep";
    this_month[9]  = "Oct";
    this_month[10] = "Nov";
    this_month[11] = "Dec";
	var today = new Date();
	var day   = today.getDate();
	var month = today.getMonth();
	var year  = today.getYear();
	if (year< 1900) {
		year += 1900;
	}
  return(this_month[month]+" "+day+", "+year);
}

// rev03.29.1999 -- DO NOT MODIFY! -- End date display function with y2k compatibility


