var queueIE=new Array();
function browsertest(){
  document.write(document.getElementById);
}
function foxsense(){
  iScript=document.createElement('script');
  iScript.text='google_ad_client = "pub-9078700612412276";google_ad_width = 120;google_ad_height = 240;google_ad_format = "120x240_as_rimg";google_cpa_choice = "CAAQ0eSZzgEaCP5Y1BMpe0XwKPG193M";google_ad_channel = ""';
  body=document.getElementsByTagName('body')[0];
  //body.insertBefore(iScript,body.getElementsByTagName('div').item(1));
  //document.getElementById('snest').appendChild(iScript);
  
  Script=document.createElement('script');
  Script.src='http://pagead2.googlesyndication.com/pagead/show_ads.js';
  //body.insertBefore(Script,body.getElementsByTagName('div').item(1));
  alert('do not use Internet Explorer'+body.getElementsByTagName('div').item(1));
  //document.getElementById('snest').appendChild(Script);
}
function adsense120x600(){
  google_ad_client="pub-9078700612412276";
  google_ad_width = 120;
  google_ad_height = 600;
  google_ad_format = "120x600_as";
  google_ad_type = "text_image";
  google_ad_channel ="";
  google_color_border = "ffffff";
  google_color_bg = "FFFFFF";
  google_color_link = "cc0000";
  google_color_text = "000000";
  google_color_url = "000000";
}
// 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(){
  if(isIE()){
  /*
    document.getElementById('useForm') ? document.getElementById('useForm').style.display='none' : ;
    document.getElementById('siteProblem') ? document.getElementById('siteProblem').style.display='none' : ;
    */
    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');
    warnIE=document.createElement('div');
    warnText=document.createElement('div');
    //warnScript=document.createElement('script');
    body[0].insertBefore(warnIE,body[0].getElementsByTagName('div').item(1));
    warnIE.style.position='relative';
    warnIE.style.width='800px';
    warnIE.style.height='60px';
    warnIE.style.margin='0 auto 4px auto';
    warnIE.style.backgroundImage='url(../image/infiniti-home-theatres-alert-top.png)';
    warnIE.appendChild(warnText);
    warnText.style.position='absolute';
    warnText.style.lineHeight='60px';
    warnText.style.left='60px';
    warnText.innerHTML='You are using <b>Internet Explorer</b>, we recommend anything but that.';
  */
  }
}
//window.onload=dIE;
//window.attachEvent("onload", dIE);
//document.getElementsByTagName('body')[0].onload=dIE;
