var queueIE=new Array();
function browsertest(){
  document.write(document.getElementById);
}
// This function does the actual browser detection
function isIE(){
  var ua = navigator.userAgent.toLowerCase();
  return (ua.indexOf('msie') != -1) && (ua.indexOf('opera') == -1) && (ua.indexOf('webtv') == -1);
}

function hasIE_showOnlyLayer(whichLayer){
  if (document.getElementById)
    {
      var style2 = document.getElementById(whichLayer);
    }
  else if (document.all)
    {
      var style2 = document.all[whichLayer];
    }
  else if (document.layers)
    {
      var style2 = document.layers[whichLayer];
    }
  var body = document.getElementsByTagName('body');
  body[0].innerHTML = style2.innerHTML;
}
function hasIE_ContinueWithoutFF() {
    if (location.href.indexOf('?') != -1)
        location.href += '&seenIEPage=1';
    else
        location.href += '?seenIEPage=1';
}
function hideIE(el){
  queueIE[queueIE.length]=el;
}
function dIE(){
  //document.body.insertBefore(jav,document.body.firstChild.nextSibling);
//  document.body.insertBefore(showads,document.body.firstChild.nextSibling);
      google_ad_client = "pub-9078700612412276";google_ad_slot = "8708832234";google_ad_width = 110;google_ad_height = 32;google_cpa_choice = "";
  //    document.write('<div id="dIE" class="dIE">');
      document.write('Web sites look better with <b>Firefox</b>. <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></scr'+'ipt>');
//      document.write('</div>');
  if(isIE()){
    var form=document.getElementById('useForm');
    var siteProblem=document.getElementById('siteProblem');
    var dIEwarn=document.getElementById('dIE');
    if(form){
      form.style.display='none';
    }
    if(siteProblem){
      siteProblem.style.display='none';
    }
    if(dIEwarn){
      dIEwarn.style.display='block';
    }
  /*
    for(var i=0;i<queueIE.length;i++){
      queueIE[i].style.display='none';
    }
    body=document.getElementsByTagName('body');
  */
  }//end if isie
}
//window.onload=dIE;
//window.attachEvent("onload", dIE);
//document.getElementsByTagName('body')[0].onload=dIE;
