////////////////////////////////
// write html for color slide bar
document.write('<style>');
document.write('BODY {background-color: #FFFFFF ;');
document.write('background-attachment:fixed ;');
document.write('background-repeat: no-repeat ;');
document.write('scrollbar-DarkShadow-Color: #000000;');
document.write('scrollbar-Track-Color: #0033bb;');
document.write('scrollbar-Base-Color: #CC0000 }');
document.write('</style>');



//////////////////////////////
//redirect to frames page


/// popup variables
var theURL = 'please_wait.htm';
var width  = 240;
var height = 80;

/// end popup variables

function detect()
{



framesetpage="index.htm";
thispage=window.location.href;
if (thispage.indexOf('://')<0) {thispage="://"+thispage;};
prefix=thispage.substring(0,thispage.lastIndexOf('://'));
suffix=thispage.substring(thispage.lastIndexOf('://')+3,thispage.length);
// alert('the subpage is:['+prefix+']['+suffix+']');

/// popup command line
LeftPosition = (screen.width) ? (screen.width-width)/2 : 0;
TopPosition = (screen.height) ? (screen.height-height)/2 : 0;

// the line below was disabled by dean  to stop the pop up window when pages are loaded into frame set 083003
//if (parent.location.href==window.location.href) {newWindow = window.open(theURL,'newWindow','toolbar=no,menubar=no,status=no,resizable=no,scrollbars=no,status=no,location=no,width='+width+',height='+height+',left = '+LeftPosition+',top = '+TopPosition)};

///// end popup command line

if (parent.location.href==window.location.href) {parent.location.href=framesetpage+"?"+prefix+"&&&"+suffix};

}
////////////////////////////////////////////////////////////////////////////////////////////

// The code below was added for a no right click by dean 8/25/03

// (C) 2003 CodeLifter.com
// Source: CodeLifter.com
// Do not remove this header

// Set the message for the alert box
am = "All content on the SunbeltAir.com site is copyright 2000-2009. Third party copyrighted content may be used on this site. Sunbelt Heating and Air Conditioning is an independent Lennox dealer located in Shawnee, Ok USA.";

// do not edit below this line
// ===========================
bV  = parseInt(navigator.appVersion)
bNS = navigator.appName=="Netscape"
bIE = navigator.appName=="Microsoft Internet Explorer"

function nrc(e) {
   if (bNS && e.which > 1){
      alert(am)
      return false
   } else if (bIE && (event.button >1)) {
     alert(am)
     return false;
   }
}

document.onmousedown = nrc;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (bNS && bV<5) window.onmousedown = nrc;

// end code by insterted by dean on 8/25/03