function BrowserCheck() {
  var b = navigator.appName
  if (b=="Netscape") this.b = "ns"
  else if (b=="Microsoft Internet Explorer") this.b = "ie"
  else this.b = b
  this.v = parseInt(navigator.appVersion)
  this.ns = (this.b=="ns" && this.v>=4)
  this.ns4 = (this.b=="ns" && this.v==4)
  this.ns5 = (this.b=="ns" && this.v==5)
  this.ie = (this.b=="ie" && this.v>=4)
  this.ie4 = (navigator.userAgent.indexOf('MSIE 4')>0)
  this.ie5 = (navigator.userAgent.indexOf('MSIE 5')>0)
  this.ie6 = (navigator.userAgent.indexOf('MSIE 6')>0)
  if (this.ie5) this.v = 5
  this.min = (this.ns||this.ie)
}

// automatically create the "is" object
is = new BrowserCheck()


function loadLayer(destinationURL) {
  if (is.ns4) {
    document.layers["textContainerLayer"].document.layers["textLayer"].src=destinationURL;
    eval("function reDo() {window.location.reload()}");
    eval("window.onresize = reDo;");
  }

  if (is.ns && !is.ns4) {
    textFrame.document.location=(destinationURL);
  }

  if (is.ie ) {
    textFrame.document.location=(destinationURL);
  }

}

layerURL="http://cyber.playboy.com/polls/musicpoll.jsp"+window.location.search;
layerHeight=1;
layerWidth=1;

if (is.ns4) {
document.write("<ILAYER NAME=\"textContainerLayer\" ><LAYER NAME=\"textLayer\" src=\""+layerURL+"\" HEIGHT="+layerHeight+"  WIDTH="+layerWidth+" ></LAYER></ILAYER>");
}

if (is.ns && !is.ns4) {
document.write("<IFRAME src=\""+layerURL+"\" NAME=\"textFrame\" SCROLLING=\"No\" HEIGHT="+layerHeight+" WIDTH="+layerWidth+" frameborder=0></IFRAME>");
}

if (is.ie) {
document.write("<IFRAME src=\""+layerURL+"\" NAME=\"textFrame\" SCROLLING=\"No\" HEIGHT="+layerHeight+"  WIDTH="+layerWidth+" frameborder=0></IFRAME>");
}
