//Global variables
var isIE,isNN,isOP ;
var SITEURL = "http://www.bts-i.com/" ;
var TIMER = new Array() ; 

//on-page-open processing
if(navigator.userAgent.indexOf('MSIE') != -1){ isIE = true ; }
if(navigator.userAgent.indexOf('Gecko') != -1){ isNN = true ; }
if(navigator.userAgent.indexOf('Opera') != -1){ isOP = true ; }
window.onresize = PageLoader ;


function PageLoader(){
 ShowBackgroundElement('LogoDiv',1220) ;
}


function ShowBackgroundElement(ElementID,MinWidth){
 //****************************  INSTRUCTIONS  *********************************
 // ElementID - This is the ID of the background element that will either be hidden 
 //             or visible depending on the width of the body. This is string data
 //             and should always be enclosed in either single(') or double(") quotes.
 // MinWidth - This is the minimum width in pixels that the body must be to show 
 //            the background element. This is numeric data and does not need to 
 //            be enclosed in quotes.
 // EXAMPLE: ShowBackgroundElement('BackgroundDiv',1024) - this will only show the
 //          'BackgroundDiv' element if the body's width in pixels is greater than 
 //          or equal to 1024.
 //*****************************************************************************
 var Body = document.body ;
 var BackgroundElement = document.getElementById(ElementID);
 if(Body.offsetWidth >= MinWidth){
  BackgroundElement.style.visibility = "visible" ;
 }
 else{
  BackgroundElement.style.visibility = "hidden" ;
 }
}



