	arr16off = new Image(); 
	arr16off.src = "/custom/pic/main/nav_arrow_white16.gif";
	arr16hov = new Image(); 
	arr16hov.src = "/custom/pic/main/nav_arrow_grey16.gif";
	
	function changer(name1,pic1) 
		{
		window.document[name1].src = pic1.src;
 		}
			
	function PopWinStart(SectionList,w,h) 
		{
		var popupx = (screen.width/2)-(w/2);
		var popupy = (screen.height/2)-(h/2);	
		var popwin = window.open(SectionList, 'PopWin','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width='+w+',height='+h+',left='+popupx+',top='+popupy+'');
		if (window.focus) popwin.focus();
		}
	function PopWin(SectionList,WinName,scroller,w,h) 
		{
		var popupx = (screen.width/2)-(w/2);
		var popupy = (screen.height/2)-(h/2);	
		var popwin = window.open(SectionList, WinName,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars='+scroller+',resizable=no,width='+w+',height='+h+',left='+popupx+',top='+popupy+'');
		if (window.focus) popwin.focus();
		}
	function PopWin2(SectionList,WinName,scroller,w,h) 
		{
		var popupx = (screen.width/2)-(w/2);
		var popupy = (screen.height/2)-(h/2);	
		var popwin = window.open(SectionList, WinName,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars='+scroller+',resizable=yes,width='+w+',height='+h+',left='+popupx+',top='+popupy+'');
		if (window.focus) popwin.focus();
		}
	function surfto2(form,sname) {
	        var myindex=form.elements[sname].selectedIndex
	        location=form.elements[sname].options[myindex].value;
		}
	function submitsearchform(val) {
		document.search.s_rep.value = val;
		document.search.submit()
	}
	
	function preload() {
        this.length = preload.arguments.length;
        for (var i = 0; i < this.length; i++) {
                this[i+1] = new Image();
                this[i+1].src = preload.arguments[i];
        }
	}
	function movepic(img_name,img_src) {
		document[img_name].src=img_src;
	}
	
	// Navigation
	function surfto(val) {
		location.href = val;
	}
	// 0ver für 1 Wechsel
	function over(id,bgClass) { 
		if(navigator.appName.indexOf("Netscape") != -1) {
			document.getElementById(id).className  = bgClass;
		} else {
			document.getElementById(id).className  = bgClass;
		}
	}	
	function out(id,bgClass) { 
		if(navigator.appName.indexOf("Netscape") != -1) {
			document.getElementById(id).className = bgClass;
		} else {
			document.getElementById(id).className = bgClass;
		}
	}	

	// Over für 2 Wechsel
	function over2(id,bgClass,id2,bgClass2) { 
		if(navigator.appName.indexOf("Netscape") != -1) {
			document.getElementById(id).className  = bgClass;
			if (bgClass2!="") {
				document.getElementById(id2).className = bgClass2;
			}
		} else {
			document.getElementById(id).className  = bgClass;
			if (bgClass2!="") {
				document.all.tags('a')[id2].className = bgClass2;
			}
		}
	}
	function out2(id,bgClass,id2,bgClass2) { 
		if(navigator.appName.indexOf("Netscape") != -1) {
			document.getElementById(id).className = bgClass;
			if (bgClass2!="") {
				document.getElementById(id2).className = bgClass2;
			}
		} else {
			document.getElementById(id).className = bgClass;
			if (bgClass2!="") {
				document.all.tags('a')[id2].className = bgClass2;
			}
		}
	}
	
	// Over für 3 Wechsel
	function over3(id,bgClass,id2,bgClass2,id3,pic) { 
		if(navigator.appName.indexOf("Netscape") != -1) {
			document.getElementById(id).className  = bgClass;
			if (bgClass2!="") {
				document.getElementById(id2).className = bgClass2;
			}
		} else {
			document.getElementById(id).className  = bgClass;
			if (bgClass2!="") {
				document.all.tags('a')[id2].className = bgClass2;
			}
		}
		// Bildwechsel
		changer(id3,pic);
	}
	function out3(id,bgClass,id2,bgClass2,id3,pic) { 
		if(navigator.appName.indexOf("Netscape") != -1) {
			document.getElementById(id).className = bgClass;
			if (bgClass2!="") {
				document.getElementById(id2).className = bgClass2;
			}
		} else {
			document.getElementById(id).className = bgClass;
			if (bgClass2!="") {
				document.all.tags('a')[id2].className = bgClass2;
			}
		}
		// Bildwechsel
		changer(id3,pic);
	}
	
	// Disabler TV Search
	function tv_disabler(hide) {
		if (hide==1) {
			document.search_form.tv_search.disabled = true;
			document.search_form.tv_day.disabled = true;
			document.search_form.tv_time.disabled = true;
			if (document.search_form.tv_cat) {
				document.search_form.tv_cat.disabled = true;
			}
		} else {
			document.search_form.tv_search.disabled = false;	
			document.search_form.tv_day.disabled = false;
			document.search_form.tv_time.disabled = false;
		}	
	}	
	
// v1.0
// Copyright 2006 Adobe Systems, Inc. All rights reserved.
function AC_AddExtension(src, ext)
{
  if (src.indexOf('?') != -1)
    return src.replace(/\?/, ext+'?'); 
  else
    return src + ext;
}

function AC_Generateobj(objAttrs, params, embedAttrs) 
{ 
  var str = '<object ';
  for (var i in objAttrs)
    str += i + '="' + objAttrs[i] + '" ';
  str += '>';
  for (var i in params)
    str += '<param name="' + i + '" value="' + params[i] + '" /> ';
  str += '<embed ';
  for (var i in embedAttrs)
    str += i + '="' + embedAttrs[i] + '" ';
  str += ' ></embed></object>';

  document.write(str);
}

function AC_FL_RunContent(){
  var ret = 
    AC_GetArgs
    (  arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
     , "application/x-shockwave-flash"
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function AC_SW_RunContent(){
  var ret = 
    AC_GetArgs
    (  arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000"
     , null
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function AC_GetArgs(args, ext, srcParamName, classid, mimeType){
  var ret = new Object();
  ret.embedAttrs = new Object();
  ret.params = new Object();
  ret.objAttrs = new Object();
  for (var i=0; i < args.length; i=i+2){
    var currArg = args[i].toLowerCase();    

    switch (currArg){	
      case "classid":
        break;
      case "pluginspage":
        ret.embedAttrs[args[i]] = args[i+1];
        break;
      case "src":
      case "movie":	
        args[i+1] = AC_AddExtension(args[i+1], ext);
        ret.embedAttrs["src"] = args[i+1];
        ret.params[srcParamName] = args[i+1];
        break;
      case "onafterupdate":
      case "onbeforeupdate":
      case "onblur":
      case "oncellchange":
      case "onclick":
      case "ondblClick":
      case "ondrag":
      case "ondragend":
      case "ondragenter":
      case "ondragleave":
      case "ondragover":
      case "ondrop":
      case "onfinish":
      case "onfocus":
      case "onhelp":
      case "onmousedown":
      case "onmouseup":
      case "onmouseover":
      case "onmousemove":
      case "onmouseout":
      case "onkeypress":
      case "onkeydown":
      case "onkeyup":
      case "onload":
      case "onlosecapture":
      case "onpropertychange":
      case "onreadystatechange":
      case "onrowsdelete":
      case "onrowenter":
      case "onrowexit":
      case "onrowsinserted":
      case "onstart":
      case "onscroll":
      case "onbeforeeditfocus":
      case "onactivate":
      case "onbeforedeactivate":
      case "ondeactivate":
      case "type":
      case "codebase":
        ret.objAttrs[args[i]] = args[i+1];
        break;
      case "width":
      case "height":
      case "align":
      case "vspace": 
      case "hspace":
      case "class":
      case "title":
      case "accesskey":
      case "name":
      case "id":
      case "tabindex":
        ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];
        break;
      default:
        ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];
    }
  }
  ret.objAttrs["classid"] = classid;
  if (mimeType) ret.embedAttrs["type"] = mimeType;
  return ret;
}


