browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);
// Main Navigation Bar Rollovers


if ((browserName == "Netscape" && browserVer >= 3) || (browserName == "Microsoft Internet Explorer" && browserVer >= 4)) version = "Okay";
else version = "";
if (version == "Okay") {

energy_roll = new Image(71,20);
energy_roll.src = "../media/nav/energy_roll.gif";
energy = new Image(71,20);
energy.src = "../media/nav/energy.gif";

business_roll = new Image(94,20);
business_roll.src = "../media/nav/business_roll.gif";
business = new Image(94,20);
business.src = "../media/nav/business.gif";

residential_roll = new Image(105,20);
residential_roll.src = "../media/nav/residential_roll.gif";
residential = new Image(105,20);
residential.src = "../media/nav/residential.gif";

company_roll = new Image(80,20);
company_roll.src = "../media/nav/company_roll.gif";
company = new Image(80,20);
company.src = "../media/nav/company.gif";

customer_roll = new Image(87,20);
customer_roll.src = "../media/nav/customer_roll.gif";
customer = new Image(87,20);
customer.src = "../media/nav/customer.gif";

community_roll = new Image(107,20);
community_roll.src = "../media/nav/community_roll.gif";
community = new Image(107,20);
community.src = "../media/nav/community.gif";

investors_roll = new Image(56,20);
investors_roll.src = "../media/nav/investors_roll.gif";
investors = new Image(56,20);
investors.src = "../media/nav/investors.gif";

overview_roll = new Image(150,16);
overview_roll.src = "../media/nav/overview_roll.gif";
overview = new Image(150,16);
overview.src = "../media/nav/overview.gif";

obtaining_roll = new Image(150,16);
obtaining_roll.src = "../media/nav/obtaining_roll.gif";
obtaining = new Image(150,16);
obtaining.src = "../media/nav/obtaining.gif";

request_roll = new Image(150,16);
request_roll.src = "../media/nav/request_roll.gif";
request = new Image(150,16);
request.src = "../media/nav/request.gif";

weekly_roll = new Image(150,16);
weekly_roll.src = "../media/nav/weekly_roll.gif";
weekly = new Image(150,16);
weekly.src = "../media/nav/weekly.gif";

why_natural_gas_roll = new Image(150,16);
why_natural_gas_roll.src = "../media/nav/why_natural_gas_roll.gif";
why_natural_gas = new Image(150,16);
why_natural_gas.src = "../media/nav/why_natural_gas.gif";

gas_appliances_roll = new Image(150,16);
gas_appliances_roll.src = "../media/nav/gas_appliances_roll.gif";
gas_appliances = new Image(150,16);
gas_appliances.src = "../media/nav/gas_appliances.gif";

cost_comparison_roll = new Image(150,16);
cost_comparison_roll.src = "../media/nav/cost_comparison_roll.gif";
cost_comparison = new Image(150,16);
cost_comparison.src = "../media/nav/cost_comparison.gif";

appliance_dealers_roll = new Image(150,16);
appliance_dealers_roll.src = "../media/nav/appliance_dealers_roll.gif";
appliance_dealers = new Image(150,16);
appliance_dealers.src = "../media/nav/appliance_dealers.gif";

special_offers_roll = new Image(150,16);
special_offers_roll.src = "../media/nav/special_offers_roll.gif";
special_offers = new Image(150,16);
special_offers.src = "../media/nav/special_offers.gif";

check_project_roll = new Image(150,16);
check_project_roll.src = "../media/nav/check_project_roll.gif";
check_project = new Image(150,16);
check_project.src = "../media/nav/check_project.gif";

faq_roll = new Image(150,16);
faq_roll.src = "../media/nav/faq_roll.gif";
faq = new Image(150,16);
faq.src = "../media/nav/faq.gif";

about_cascade_roll = new Image(150,16);
about_cascade_roll.src = "../media/nav/about_cascade_roll.gif";
about_cascade = new Image(150,16);
about_cascade.src = "../media/nav/about_cascade.gif";

service_area_map_roll = new Image(150,16);
service_area_map_roll.src = "../media/nav/service_area_map_roll.gif";
service_area_map = new Image(150,16);
service_area_map.src = "../media/nav/service_area_map.gif";

news_press_roll = new Image(150,16);
news_press_roll.src = "../media/nav/news_press_roll.gif";
news_press = new Image(150,16);
news_press.src = "../media/nav/news_press.gif";

careers_roll = new Image(150,16);
careers_roll.src = "../media/nav/careers_roll.gif";
careers = new Image(150,16);
careers.src = "../media/nav/careers.gif";

suggestions_roll = new Image(150,16);
suggestions_roll.src = "../media/nav/suggestions_roll.gif";
suggestions = new Image(150,16);
suggestions.src = "../media/nav/suggestions.gif";

contact_us_roll = new Image(150,16);
contact_us_roll.src = "../media/nav/contact_us_roll.gif";
contact_us = new Image(150,16);
contact_us.src = "../media/nav/contact_us.gif";

get_new_service_roll = new Image(150,16);
get_new_service_roll.src = "../media/nav/get_new_service_roll.gif";
get_new_service = new Image(150,16);
get_new_service.src = "../media/nav/get_new_service.gif";

customer_help_roll = new Image(150,16);
customer_help_roll.src = "../media/nav/customer_help_roll.gif";
customer_help = new Image(150,16);
customer_help.src = "../media/nav/customer_help.gif";

paying_your_bill_roll = new Image(150,16);
paying_your_bill_roll.src = "../media/nav/paying_your_bill_roll.gif";
paying_your_bill = new Image(150,16);
paying_your_bill.src = "../media/nav/paying_your_bill.gif";

low_income_roll = new Image(150,16);
low_income_roll.src = "../media/nav/low_income_roll.gif";
low_income = new Image(150,16);
low_income.src = "../media/nav/low_income.gif";

announcements_roll = new Image(150,16);
announcements_roll.src = "../media/nav/announcements_roll.gif";
announcements = new Image(150,16);
announcements.src = "../media/nav/announcements.gif";

billing_rights_roll = new Image(150,16);
billing_rights_roll.src = "../media/nav/billing_rights_roll.gif";
billing_rights = new Image(150,16);
billing_rights.src = "../media/nav/billing_rights.gif";

warm_neighbor_news_roll = new Image(150,16);
warm_neighbor_news_roll.src = "../media/nav/warm_neighbor_news_roll.gif";
warm_neighbor_news = new Image(150,16);
warm_neighbor_news.src = "../media/nav/warm_neighbor_news.gif";

billing_faq_roll = new Image(150,16);
billing_faq_roll.src = "../media/nav/billing_faq_roll.gif";
billing_faq = new Image(150,16);
billing_faq.src = "../media/nav/billing_faq.gif";



safety_education_roll = new Image(150,16);
safety_education_roll.src = "../media/nav/safety_education_roll.gif";
safety_education = new Image(150,16);
safety_education.src = "../media/nav/safety_education.gif";

natural_gas_info_roll = new Image(150,16);
natural_gas_info_roll.src = "../media/nav/natural_gas_info_roll.gif";
natural_gas_info = new Image(150,16);
natural_gas_info.src = "../media/nav/natural_gas_info.gif";

conservation_tips_roll = new Image(150,16);
conservation_tips_roll.src = "../media/nav/conservation_tips_roll.gif";
conservation_tips = new Image(150,16);
conservation_tips.src = "../media/nav/conservation_tips.gif";

corporate_contribute_roll = new Image(150,16);
corporate_contribute_roll.src = "../media/nav/corporate_contribute_roll.gif";
corporate_contribute = new Image(150,16);
corporate_contribute.src = "../media/nav/corporate_contribute.gif";

call_before_you_dig_roll = new Image(150,16);
call_before_you_dig_roll.src = "../media/nav/call_before_you_dig_roll.gif";
call_before_you_dig = new Image(150,16);
call_before_you_dig.src = "../media/nav/call_before_you_dig.gif";

ads_roll = new Image(150,16);
ads_roll.src = "../media/nav/ads_roll.gif";
ads = new Image(150,16);
ads.src = "../media/nav/ads.gif";

service_plus_roll = new Image(150,16);
service_plus_roll.src = "../media/nav/service_plus_roll.gif";
service_plus = new Image(150,16);
service_plus.src = "../media/nav/service_plus.gif";

get_new_service_roll = new Image(150,16);
get_new_service_roll.src = "../media/nav/get_new_service_roll.gif";
get_new_service = new Image(150,16);
get_new_service.src = "../media/nav/get_new_service.gif";

more_info_roll = new Image(150,16);
more_info_roll.src = "../media/nav/more_info_roll.gif";
more_info = new Image(150,16);
more_info.src = "../media/nav/more_info.gif";

general_comm_service = new Image(150,16);
general_comm_service.src = "../media/nav/general_comm_service.gif";
general_comm_service_roll = new Image(150,16);
general_comm_service_roll.src = "../media/nav/general_comm_service_roll.gif";

industrial = new Image(150,16);
industrial.src = "../media/nav/industrial.gif";
industrial_roll = new Image(150,16);
industrial_roll.src = "../media/nav/industrial_roll.gif";


function img_on(imgName) {
  if (version == "Okay") {
    imgOn = eval(imgName + "_roll.src");
    document [imgName].src = imgOn;
  }
}

function img_off(imgName) {
  if (version == "Okay") {
    imgOff = eval(imgName + ".src");
    document [imgName].src = imgOff;
  }
}


//this is for the drop down menu in Residential
function dropNav(newLoc)
{
  newPage = newLoc.options[newLoc.selectedIndex].value
  if(newPage != ""){
  window.location = newPage
  }
}





//Popup Script #2
function LaunchPopup(theURL, w, h) {
  //Centers the popup window
  var winl = (screen.width - w) / 2;
  var wint = (screen.height - h) / 2;
  
  //theURL = "popupLargePhoto.php?TheImage=" + imageName + "&TheAltText=hello how the heck are you?";
  
  windowSettings = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=no,noresize'
  win = window.open(theURL,'LargePhoto', windowSettings)
  
  win.resizeTo(w,h);
  
  if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}









//Roll Out Function
function imgRollOut(imgOutRoll) {
  if (version == "Okay") {
    imgOff = eval(imgOutRoll + ".src");
    document [imgOutRoll].src = imgOff;
  }
}

//Roll In Function
function imgRollIn(imgInRoll) {
  if (version == "Okay") {
    imgOn = eval(imgInRoll + "Roll.src");
    document [imgInRoll].src = imgOn;
  }
}



function openWindow(url) { 
        var win = 'menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,copyhist=no,width=592,height=234';
        window.open(url,'Banners',win).focus()
} 

function NewWindow(mypage, myname, w, h, scroll) {
  var winl = (screen.width - w) / 2;
  var wint = (screen.height - h) / 2;
    winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',noresize'
    win = window.open(mypage, myname, winprops)
  
  if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}




//End browser verification
}
