function IEboxremove() {
	if (document.selection) document.selection.empty()
}
function BrowserCheck() {
  var browser = navigator.appName
  if (browser == "Netscape") this.browser = "ns"
  else if (browser == "Microsoft Internet Explorer") this.browser = "ie"
  else this.browser = browser
  this.ver = parseInt(navigator.appVersion)
  this.ns = (this.browser == "ns" && this.ver >= 4)
  this.ns4 = (this.browser == "ns" && this.ver == 4)
  this.ns5 = (this.browser == "ns" && this.ver == 5)
  this.ns6 = (this.browser == "ns" && this.ver == 6)
  this.ie = (this.browser == "ie" && this.ver >= 4)
  this.ie4 = (navigator.userAgent.indexOf('MSIE 4') > 0)
  this.ie5 = (navigator.userAgent.indexOf('MSIE 5') > 0)
  if (this.ie5) this.ver = 5
  this.min = (this.ns || this.ie)
}
var is = new BrowserCheck()
var isLoaded = false
function preload(srcList) {
  if (document.images) {
    var j = 0;
    for (i = 0; i <= (srcList.length / 2); i++) {
      eval(srcList[j]+' = new Image()')
      eval(srcList[j]+'.src = "'+srcList[++j]+'"')
		  j++
	  }
    isLoaded = true
  }
}
function changeImage(layer,imgName,imgObj) {
	if (document.images) {
    if (isLoaded) {
      if (document.layers && layer!=null) eval('document.'+layer+'.document.images["'+imgName+'"].src = '+imgObj+'.src')
		  else document.images[imgName].src = eval(imgObj+".src")
    }
	}
}
function writeCSS(css) {
  css = '<style type="text/css">\n'+css+'\n</style>'
  document.write(css)
}
function changeBorder(which,color) {
  if (is.ie || is.ns5 || is.ns6) {
    which.style.borderColor = color
  }
}
function video_hjaelp() {
  hjaelp = window.open('video_hjaelp.php','video_hjaelp_tekst','width=280,height=280,top=100,left=150,noresize');
  hjaelp.focus();
}

