////////////////////////////////////////////////////////////////////////////////////
///// Ecard Opener /////
////////////////////////////////////////////////////////////////////////////////////

function openFlyoutSlideshow(flag, url, themaID, catID, motivID) {
	var param = '';
	
//	if (themaID != '') {
//		param += '/thema/'+themaID;
//	}
	if (catID != '') {
		param += '/cat/'+catID;
	}
	if (motivID != '') {
		param += '/motiv/'+motivID;
	}
	
	location.href= 'http://fotogalerien.alpin.de/slideshow'+param;
}

function openEcardPopup(flag, url, themaID, catID, motivID) {
	var param = '';
	
//	if (themaID != '') {
//		param += '/thema/'+themaID;
//	}
	if (catID != '') {
		param += '/cat/'+catID;
	}
	if (motivID != '') {
		param += '/motiv/'+motivID;
	}
	
	location.href= 'http://fotogalerien.alpin.de/slideshow'+param;
}

function openFotowettbewerbPopup() {
	location.href= 'http://fotogalerien.alpin.de/wettbewerb';
}

function openFotowettbewerbFlyout(themaID,catID) {
	var param = '';
	
//	if (themaID != '') {
//		param += '/thema/'+themaID;
//	}
	if (catID != '') {
		param += '/cat/'+catID;
	}
	
	location.href= 'http://fotogalerien.alpin.de/wettbewerb'+param;
}

function ZeitraumKomplett() {
	var tourenFr = document.getElementById("FrTouren");
	var tourenSa = document.getElementById("SaTouren");
	
	if (tourenFr) { tourenFr.style.display='block'; tourenFr.style.visibility='visible'; }
	if (tourenSa) { tourenSa.style.display='block'; tourenSa.style.visibility='visible'; }
	
	var kompl2 = document.getElementById("divKon2ZeitraumKomplett");
	if (kompl2) { kompl2.style.display='block'; kompl2.style.visibility='visible'; }
	var sonntag2 = document.getElementById("divKon2ZeitraumSonntag");
	if (sonntag2) { sonntag2.style.display='none'; sonntag2.style.visibility='hidden'; }
	
	var kompl3 = document.getElementById("divKon3ZeitraumKomplett");
	if (kompl3) { kompl3.style.display='block'; kompl3.style.visibility='visible'; }
	var sonntag3 = document.getElementById("divKon3ZeitraumSonntag");
	if (sonntag3) { sonntag3.style.display='none'; sonntag3.style.visibility='hidden'; }
	
	var kompl4 = document.getElementById("divKon4ZeitraumKomplett");
	if (kompl4) { kompl4.style.display='block'; kompl4.style.visibility='visible'; }
	var sonntag4 = document.getElementById("divKon4ZeitraumSonntag");
	if (sonntag4) { sonntag4.style.display='none'; sonntag4.style.visibility='hidden'; }
	
	var kompl5 = document.getElementById("divKon5ZeitraumKomplett");
	if (kompl5) { kompl5.style.display='block'; kompl5.style.visibility='visible'; }
	var sonntag5 = document.getElementById("divKon5ZeitraumSonntag");
	if (sonntag5) { sonntag5.style.display='none'; sonntag5.style.visibility='hidden'; }
	
	var kompl6 = document.getElementById("divKon6ZeitraumKomplett");
	if (kompl6) { kompl6.style.display='block'; kompl6.style.visibility='visible'; }
	var sonntag6 = document.getElementById("divKon6ZeitraumSonntag");
	if (sonntag6) { sonntag6.style.display='none'; sonntag6.style.visibility='hidden'; }
	
	var kompl7 = document.getElementById("divKon7ZeitraumKomplett");
	if (kompl7) { kompl7.style.display='block'; kompl7.style.visibility='visible'; }
	var sonntag7 = document.getElementById("divKon7ZeitraumSonntag");
	if (sonntag7) { sonntag7.style.display='none'; sonntag7.style.visibility='hidden'; }
	
	var kompl8 = document.getElementById("divKon8ZeitraumKomplett");
	if (kompl8) { kompl8.style.display='block'; kompl8.style.visibility='visible'; }
	var sonntag8 = document.getElementById("divKon8ZeitraumSonntag");
	if (sonntag8) { sonntag8.style.display='none'; sonntag8.style.visibility='hidden'; }
}

function ZeitraumSonntag() {
	var tourenFr = document.getElementById("FrTouren");
	var tourenSa = document.getElementById("SaTouren");
	
	if (tourenFr) { tourenFr.style.display='none'; tourenFr.style.visibility='hidden'; }
	if (tourenSa) { tourenSa.style.display='none'; tourenSa.style.visibility='hidden'; }
	
	var kompl2 = document.getElementById("divKon2ZeitraumKomplett");
	if (kompl2) { kompl2.style.display='none'; kompl2.style.visibility='hidden'; }
	var sonntag2 = document.getElementById("divKon2ZeitraumSonntag");
	if (sonntag2) { sonntag2.style.display='block'; sonntag2.style.visibility='visible'; }
	
	var kompl3 = document.getElementById("divKon3ZeitraumKomplett");
	if (kompl3) { kompl3.style.display='none'; kompl3.style.visibility='hidden'; }
	var sonntag3 = document.getElementById("divKon3ZeitraumSonntag");
	if (sonntag3) { sonntag3.style.display='block'; sonntag3.style.visibility='visible'; }
	
	var kompl4 = document.getElementById("divKon4ZeitraumKomplett");
	if (kompl4) { kompl4.style.display='none'; kompl4.style.visibility='hidden'; }
	var sonntag4 = document.getElementById("divKon4ZeitraumSonntag");
	if (sonntag4) { sonntag4.style.display='block'; sonntag4.style.visibility='visible'; }
	
	var kompl5 = document.getElementById("divKon5ZeitraumKomplett");
	if (kompl5) { kompl5.style.display='none'; kompl5.style.visibility='hidden'; }
	var sonntag5 = document.getElementById("divKon5ZeitraumSonntag");
	if (sonntag5) { sonntag5.style.display='block'; sonntag5.style.visibility='visible'; }
	
	var kompl6 = document.getElementById("divKon6ZeitraumKomplett");
	if (kompl6) { kompl6.style.display='none'; kompl6.style.visibility='hidden'; }
	var sonntag6 = document.getElementById("divKon6ZeitraumSonntag");
	if (sonntag6) { sonntag6.style.display='block'; sonntag6.style.visibility='visible'; }
	
	var kompl7 = document.getElementById("divKon7ZeitraumKomplett");
	if (kompl7) { kompl7.style.display='none'; kompl7.style.visibility='hidden'; }
	var sonntag7 = document.getElementById("divKon7ZeitraumSonntag");
	if (sonntag7) { sonntag7.style.display='block'; sonntag7.style.visibility='visible'; }
	
	var kompl8 = document.getElementById("divKon8ZeitraumKomplett");
	if (kompl8) { kompl8.style.display='none'; kompl8.style.visibility='hidden'; }
	var sonntag8 = document.getElementById("divKon8ZeitraumSonntag");
	if (sonntag8) { sonntag8.style.display='block'; sonntag8.style.visibility='visible'; }
}

function CheckAnzPersonen() {
    var vorjahr;
    var anzPersonen8 = document.getElementById('AnzPersonen8');

    if (window.location.hostname.indexOf("localhost") > -1) {
        vorjahr = document.getElementById('_ctl3__ctl0_erstanmeldungHidden');
    }
    else {
        vorjahr = document.getElementById('ctl03_ctl00_erstanmeldungHidden');
    }
    
    if (vorjahr != null && anzPersonen8 != null) {
        if (vorjahr.value == 'true') {
            anzPersonen8.style.display = 'none';
            anzPersonen8.style.visibility = 'hidden';
        }
        else {
            anzPersonen8.style.display = 'block';
            anzPersonen8.style.visibility = 'visible';
        }
    }
}

function ShowHidePersons() {
    var ctrl;
    var anz = 0;
    var anzahlPersonen;

    if (window.location.hostname.indexOf("localhost") > -1) {
        anzahlPersonen = document.getElementById("_ctl3__ctl0_anzPersonen");
    }
    else {
        anzahlPersonen = document.getElementById("ctl03_ctl00_anzPersonen");
    }
	
	if (anzahlPersonen) {
		anz = anzahlPersonen.options[anzahlPersonen.selectedIndex].value;
	}
	
	ctrl = document.getElementById("Person2");
	if (ctrl && anz < 2) {
		ctrl.style.display='none';
		ctrl.style.visibility='hidden';
	}
	else if (ctrl && anz >= 2) {
		ctrl.style.display='block';
		ctrl.style.visibility='visible';
	}
	
	ctrl = document.getElementById("Person3");
	if (ctrl && anz < 3) {
		ctrl.style.display='none';
		ctrl.style.visibility='hidden';
	}
	else if (ctrl && anz >= 3) {
		ctrl.style.display='block';
		ctrl.style.visibility='visible';
	}
	
	ctrl = document.getElementById("Person4");
	if (ctrl && anz < 4) {
		ctrl.style.display='none';
		ctrl.style.visibility='hidden';
	}
	else if (ctrl && anz >= 4) {
		ctrl.style.display='block';
		ctrl.style.visibility='visible';
	}
	
	ctrl = document.getElementById("Person5");
	if (ctrl && anz < 5) {
		ctrl.style.display='none';
		ctrl.style.visibility='hidden';
	}
	else if (ctrl && anz >= 5) {
		ctrl.style.display='block';
		ctrl.style.visibility='visible';
	}
	
	ctrl = document.getElementById("Person6");
	if (ctrl && anz < 6) {
		ctrl.style.display='none';
		ctrl.style.visibility='hidden';
	}
	else if (ctrl && anz >= 6) {
		ctrl.style.display='block';
		ctrl.style.visibility='visible';
	}
	
	ctrl = document.getElementById("Person7");
	if (ctrl && anz < 7) {
		ctrl.style.display='none';
		ctrl.style.visibility='hidden';
	}
	else if (ctrl && anz >= 7) {
		ctrl.style.display='block';
		ctrl.style.visibility='visible';
	}
	
	ctrl = document.getElementById("Person8");
	if (ctrl && anz < 8) {
		ctrl.style.display='none';
		ctrl.style.visibility='hidden';
	}
	else if (ctrl && anz >= 8) {
		ctrl.style.display='block';
		ctrl.style.visibility='visible';
	}
}

function ShowHideFamPersons() {
                                                   
    var anzahlPersonen = document.getElementById("_ctl3__ctl0_anzPersonen");
    var ctrl;
    var anz = 0;

    if (!anzahlPersonen) {
        anzahlPersonen = document.getElementById("ctl03_ctl00_anzPersonen")
    }

    if (anzahlPersonen) {
        anz = anzahlPersonen.options[anzahlPersonen.selectedIndex].value;
    }

    ctrl = document.getElementById("Person2");
    if (ctrl && anz < 2) {
        ctrl.style.display = 'none';
        ctrl.style.visibility = 'hidden';
    }
    else if (ctrl && anz >= 2) {
        ctrl.style.display = 'block';
        ctrl.style.visibility = 'visible';
    }

    ctrl = document.getElementById("Person3");
    if (ctrl && anz < 3) {
        ctrl.style.display = 'none';
        ctrl.style.visibility = 'hidden';
    }
    else if (ctrl && anz >= 3) {
        ctrl.style.display = 'block';
        ctrl.style.visibility = 'visible';
    }

    ctrl = document.getElementById("Person4");
    if (ctrl && anz < 4) {
        ctrl.style.display = 'none';
        ctrl.style.visibility = 'hidden';
    }
    else if (ctrl && anz >= 4) {
        ctrl.style.display = 'block';
        ctrl.style.visibility = 'visible';
    }

    ctrl = document.getElementById("Person5");
    if (ctrl && anz < 5) {
        ctrl.style.display = 'none';
        ctrl.style.visibility = 'hidden';
    }
    else if (ctrl && anz >= 5) {
        ctrl.style.display = 'block';
        ctrl.style.visibility = 'visible';
    }

    ctrl = document.getElementById("Person6");
    if (ctrl && anz < 6) {
        ctrl.style.display = 'none';
        ctrl.style.visibility = 'hidden';
    }
    else if (ctrl && anz >= 6) {
        ctrl.style.display = 'block';
        ctrl.style.visibility = 'visible';
    }

    ctrl = document.getElementById("Person7");
    if (ctrl && anz < 7) {
        ctrl.style.display = 'none';
        ctrl.style.visibility = 'hidden';
    }
    else if (ctrl && anz >= 7) {
        ctrl.style.display = 'block';
        ctrl.style.visibility = 'visible';
    }

    ctrl = document.getElementById("Person8");
    if (ctrl && anz < 8) {
        ctrl.style.display = 'none';
        ctrl.style.visibility = 'hidden';
    }
    else if (ctrl && anz >= 8) {
        ctrl.style.display = 'block';
        ctrl.style.visibility = 'visible';
    }
}

function openFlyoutImage (url, width, height) {
	var dest = "/home/news/" + document.getElementById("objectguid").firstChild.nodeValue + "?img=" + url + "&view=flyout&width="+width+"&height="+height;
	win=window.open(dest,'imageflyout',"'menubar=1 ,toolbar=0,scrollbars=0,status=0,resizable=0,height="+ height +",width=" + width + "'");
  return;
}

function openFlyoutImageRessort (url, res_url, width, height) {
	var dest = "/" + res_url + "/news/" + document.getElementById("objectguid").firstChild.nodeValue + "?img=" + url + "&view=flyout&width="+width+"&height="+height;
	win=window.open(dest,'imageflyout',"'menubar=1 ,toolbar=0,scrollbars=0,status=0,resizable=0,height="+ (parseInt(height)+110) +",width=" + (parseInt(width)+155) + "'");
	return;
}

function openWebcam(url, width, height, tourid) {
	var dest = "/tourentipps/news/?img=" + url + "&view=flyout&type=webcam&tourid=" + tourid + "&width="+width+"&height="+height;
	win=window.open(dest,'Tourentipps',"'menubar=1 ,toolbar=0,scrollbars=0,status=0,resizable=0,height="+ (parseInt(height)+125) +",width=" + (parseInt(width)+155) + "'");
	return;
	
	//win=window.open(url, titel, "'menubar=yes,toolbar=no,scrollbars=no,status=no,resizable=no,height="+ height +",width=" + width + "'");
}
function openWebcamRegion(url, width, height, regionid) {
	var dest = "/tourentipps/news/?img=" + url + "&view=flyout&type=webcam&regionid=" + regionid + "&width="+width+"&height="+height;
	win=window.open(dest,'Tourentipps',"'menubar=1 ,toolbar=0,scrollbars=0,status=0,resizable=0,height="+ (parseInt(height)+125) +",width=" + (parseInt(width)+155) + "'");
	return;
	
	//win=window.open(url, titel, "'menubar=yes,toolbar=no,scrollbars=no,status=no,resizable=no,height="+ height +",width=" + width + "'");
}

function openProductFlyoutImage (url, width, height) {
	var dest = "/home/news/" + document.getElementById("objectguid").firstChild.nodeValue + "?img=" + url + "&view=flyout&width="+width+"&height="+height+"&type=product";
	win=window.open(dest,'imageflyout',"'menubar=1 ,toolbar=0,scrollbars=0,status=0,resizable=0,height="+ height +",width=" + width + "'");
  return;
}

function openPrintView (url) {
	win=window.open(url,'printview');
  return;
}

function checkChoice(whichbox) {
	if (whichbox.checked == false)
		whichbox.form["heft_menge_" + whichbox.value].value = "0";
	else
		whichbox.form["heft_menge_" + whichbox.value].value = "1";
	return;
}

function checkTotal(of) {
	
	var totalAmount = of.form["total"].value;
		
	var somethingDone = false;
	
	for (var i=0;i<totalAmount;i++) {
	
		if ((of.form["heft_check_" + i].checked==true) && parseInt(of.form["heft_menge_"+i].value)>0) {
			somethingDone = true;
			break;
		}
	}
	
	if (somethingDone) {
		of.form.submit();
	}
	else
	{
		alert(unescape("Sie m%FCssen mindestens ein Heft ausw%E4hlen!"));
	}
		
	return;
}

function submitForm() {
	document.forms[0].submit()
}

function SelectMonth(SelectCtrl, URL) {
    var selMonth = SelectCtrl.options[SelectCtrl.selectedIndex].value;
    location.href = URL.replace('||ObjectID||', selMonth).replace('||ObjectID||', selMonth);
	return;
}

function sendDBsearch(myform){
	var startCtrl = document.getElementById("Start");
	var sCtrl = document.getElementById("S")
	var zielCtrl = document.getElementById("Z");
	
	sCtrl.value = encode_iso(startCtrl.value);
	zielCtrl.value = encode_iso(zielCtrl.value);
	
	myform.submit();
	
	return;
}

////iso-8859-1
////D6 = Ö
////=F6 = ö
////=C4 = Ä
////=DF = ß
////=E4 = ä
////=FC = ü
////=DC = Ü

function encode_iso(rohtext) {
    var utftext = "";
     
    rohtext = rohtext.replace(/\r\n/g,"\n");
       
    for(var n=0; n<rohtext.length; n++) {
		
		if (rohtext.charAt(n) == "\xE4") {
			utftext += "ae";
		}
		else if (rohtext.charAt(n) == "\xF6") {
			utftext += "oe";
		}
		else if (rohtext.charAt(n) == "\xFC") {
			utftext += "ue";
		}
		else if (rohtext.charAt(n) == "\xDF") {
			utftext += "ss";
		}
		else if (rohtext.charAt(n) == "\xC4") {
			utftext += "Ae";
		}
		else if (rohtext.charAt(n) == "\xD6") {
			utftext += "Oe";
		}
		else if (rohtext.charAt(n) == "\xDC") {
			utftext += "Ue";
		}
		else if (rohtext.charAt(n) == "ä") {
			utftext += "ae";
		}
		else if (rohtext.charAt(n) == "ö") {
			utftext += "oe";
		}
		else if (rohtext.charAt(n) == "ü") {
			utftext += "ue";
		}
		else if (rohtext.charAt(n) == "ß") {
			utftext += "ss";
		}
		else if (rohtext.charAt(n) == "Ä") {
			utftext += "Ae";
		}
		else if (rohtext.charAt(n) == "Ö") {
			utftext += "Oe";
		}
		else if (rohtext.charAt(n) == "Ü") {
			utftext += "Ue";
		}
		else {
			utftext += rohtext.charAt(n);
		}
	}	
    return utftext;
}


// ---------------------------------------------------------------------------
// Tooltip

/***********************************************
* Cool DHTML tooltip script II- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

// ---------------------------------------------------------------------------
var portalurl2 = "";
// ---------------------------------------------------------------------------

var offsetfromcursorX=12 //Customize x offset of tooltip
var offsetfromcursorY=10 //Customize y offset of tooltip

var offsetdivfrompointerX=10 //Customize x offset of tooltip DIV relative to pointer image
var offsetdivfrompointerY=14 //Customize y offset of tooltip DIV relative to pointer image. Tip: Set it to (height_of_pointer_image-1).

document.write('<div id="dhtmltooltip"></div>') //write out tooltip DIV
document.write('<img id="dhtmlpointer" src="http://mediadb.alpin.de/library/images/tooltipbox.gif">') //write out pointer image

var ie=document.all
var ns6=document.getElementById && !document.all
var enabletip=false
if (ie||ns6)
var tipobj=document.all? document.all["dhtmltooltip"] : document.getElementById? document.getElementById("dhtmltooltip") : ""

var pointerobj=document.all? document.all["dhtmlpointer"] : document.getElementById? document.getElementById("dhtmlpointer") : ""

function ietruebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function ddrivetip(thetext, thewidth, thecolor){
if (ns6||ie){
if (typeof thewidth!="undefined") tipobj.style.width=thewidth+"px"
if (typeof thecolor!="undefined" && thecolor!="") tipobj.style.backgroundColor=thecolor
tipobj.innerHTML=thetext
enabletip=true
return false
}
}

function positiontip(e){
if (enabletip){
var nondefaultpos=false
var curX=(ns6)?e.pageX : event.clientX+ietruebody().scrollLeft;
var curY=(ns6)?e.pageY : event.clientY+ietruebody().scrollTop;
//Find out how close the mouse is to the corner of the window
var winwidth=ie&&!window.opera? ietruebody().clientWidth : window.innerWidth-20
var winheight=ie&&!window.opera? ietruebody().clientHeight : window.innerHeight-20

var rightedge=ie&&!window.opera? winwidth-event.clientX-offsetfromcursorX : winwidth-e.clientX-offsetfromcursorX
var bottomedge=ie&&!window.opera? winheight-event.clientY-offsetfromcursorY : winheight-e.clientY-offsetfromcursorY

var leftedge=(offsetfromcursorX<0)? offsetfromcursorX*(-1) : -1000

//if the horizontal distance isn't enough to accomodate the width of the context menu
if (rightedge<tipobj.offsetWidth){
//move the horizontal position of the menu to the left by it's width
tipobj.style.left=curX-tipobj.offsetWidth+"px"
nondefaultpos=true
}
else if (curX<leftedge)
tipobj.style.left="5px"
else{
//position the horizontal position of the menu where the mouse is positioned
tipobj.style.left=curX+offsetfromcursorX-offsetdivfrompointerX+"px"
pointerobj.style.left=curX+offsetfromcursorX+"px"
}

//same concept with the vertical position
if (bottomedge<tipobj.offsetHeight){
tipobj.style.top=curY-tipobj.offsetHeight-offsetfromcursorY+"px"
nondefaultpos=true
}
else{
tipobj.style.top=curY+offsetfromcursorY+offsetdivfrompointerY+"px"
pointerobj.style.top=curY+offsetfromcursorY+"px"
}
tipobj.style.visibility="visible"
if (!nondefaultpos)
pointerobj.style.visibility="visible"
else
pointerobj.style.visibility="hidden"
}
}

function hideddrivetip(){
if (ns6||ie){
enabletip=false
tipobj.style.visibility="hidden"
pointerobj.style.visibility="hidden"
tipobj.style.left="-1000px"
tipobj.style.backgroundColor=''
tipobj.style.width=''
}
}

document.onmousemove=positiontip

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;
}

function Browser () 
{
	this.isIE = false;
	this.isNS = false;
	this.isOpera = false;
	this.isMozilla = false;
	this.isWin = false;
	this.isMac = false;
	this.isLinux = false;
	this.version = 0;
	this.isFlashed = false;
	var requiredFlashVersion = 6;
	var maxFlashVersion = 10;
	var agent = navigator.userAgent.toLowerCase ();
	this.isIE = agent.indexOf ("msie") != -1 && agent.indexOf ("opera") == -1;
	this.isNS = (agent.indexOf ("netscape") != -1 || navigator.appName == "Netscape") && agent.indexOf ("opera") == -1;
	//in netscape4 "netscape" doesn't appear in navigator.userAgent
	this.isOpera = agent.indexOf ("opera") != -1;
	this.isMozilla = agent.indexOf ("mozilla") != -1;
	this.isKonqueror = agent.indexOf ("konqueror") != -1;
	this.isWin = agent.indexOf ("win") != -1;
	this.isMac = agent.indexOf ("mac") != -1;
	this.isLinux = agent.indexOf ("linux") != -1;
	var minor = parseFloat (navigator.appVersion);
	if (this.isNS) 
	{
	if (minor >= 6) {
	this.version = 6;
	} else {
	this.version = minor;	}
	} else if (this.isKonqueror) {
	this.version = minor;
	} else if (this.isIE) {
	if (agent.indexOf ("msie 5") != -1 && minor == 4) {
	this.version = 5;
	} else {
	this.version = minor;
	}
	} else if (this.isOpera) {
	if (agent.indexOf ("opera 2") != -1 || agent.indexOf ("opera/2") != -1) {
	this.version = 2;
	}
	if (agent.indexOf ("opera 3") != -1 || agent.indexOf ("opera/3") != -1) {
	this.version = 3;
	}
	if (agent.indexOf ("opera 4") != -1 || agent.indexOf ("opera/4") != -1) {
	this.version = 4;
	}
	if (agent.indexOf ("opera 5") != -1 || agent.indexOf ("opera/5") != -1) {
	this.version = 5;
	}
	if (agent.indexOf ("opera 6") != -1 || agent.indexOf ("opera/6") != -1) {
	this.version = 6;
	}
	}
	if (this.isIE && this.isWin) {
	document.write ('<SCR' + 'IPT LANGUAGE="VBScript" \> \n');
	document.write ('on error resume next \n');
	for (i = requiredFlashVersion; i < maxFlashVersion + 1; i++) {
	document.write ('flash' + i + 'Installed = false \n');
	document.write ('flash' + i + 'Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.' + i + '"))) \n');
	}
	document.write ('</SCR' + 'IPT\> \n');
	for (i = requiredFlashVersion; i < maxFlashVersion + 1; i++) {
	if (eval ("flash" + i + "Installed")) {
	this.isFlashed = true;
	break;
	}
	}
	} else if (navigator.plugins && navigator.plugins["Shockwave Flash"]) {
	var plugin = navigator.plugins["Shockwave Flash"];
	var currVersion = plugin.description.charAt (plugin.description.indexOf (".") - 2);
	
	if (currVersion > 0) {
		currVersion = currVersion + plugin.description.charAt (plugin.description.indexOf (".") - 1);
	}
	else
		currVersion = plugin.description.charAt (plugin.description.indexOf (".") - 1);
	
	this.isFlashed = (currVersion >= requiredFlashVersion);
	}
}
var myBrowser = new Browser();

// ---------------------------------------------------------------------------
// FlashVideo
// ---------------------------------------------------------------------------

var local_string = "http://" + window.location.hostname;
if(window.location.port!=""){local_string+=":"+window.location.port}
var videoPath = "http://video.alpin.de/flash/";
var playlistURL = "/videoplaylist";
var videoPlayer = "http://mediadb.alpin.de/library/videoplayer/kickerplayer_1-3-5_b89.swf";
if (local_string.indexOf("localhost") > -1) {
    videoPlayer = local_string + "/flash/kickerplayer_1-3-5_b89.swf";
}

var myListener = {};
var kickerPlayer = {};

function updateHTML(elmId, value) {
    document.getElementById(elmId).innerHTML = value;
}

function setytplayerState(newState) {
    updateHTML("playerstate", newState);
}

function onKickerPlayerReady(playerId) {
    kickerPlayer = document.getElementById("flashVideoPlayer");

    kickerPlayer.addEventListener("onLoad", "myListener.onLoad");
    kickerPlayer.addEventListener("onPlay", "myListener.onPlay");
    kickerPlayer.addEventListener("onPause", "myListener.onPause");
    kickerPlayer.addEventListener("onComplete", "myListener.onComplete");
}

function play() {
    kickerPlayer.playVideo();
}
function pause() {
    kickerPlayer.pauseVideo();
}

myListener.onLoad = function (receivedParamsFromPlayerIfAny) {
    setytplayerState(receivedParamsFromPlayerIfAny);
}
myListener.onPlay = function (receivedParamsFromPlayerIfAny) {
    setytplayerState(receivedParamsFromPlayerIfAny);
}
myListener.onPause = function (receivedParamsFromPlayerIfAny) {
    setytplayerState(receivedParamsFromPlayerIfAny);
}
myListener.onComplete = function (receivedParamsFromPlayerIfAny) {
    setytplayerState(receivedParamsFromPlayerIfAny);
}

function ovCreatePopupPlayer(videoid, category, allowAds, thema, headline, credit, videoLevelId, videoStreamingUrl) {
    var flashvars = '';
    var ewtest = (document.URL.indexOf("ewtest") > -1);
    var vasttest = (document.URL.indexOf("vasttest") > -1);

    //initialClip -> if not defined the player will use the first clip out of the Playlist
    flashvars += 'FlashVars_videoid=' + videoid + '&';
    flashvars += 'FlashVars_category=' + category + '&';
    flashvars += 'FlashVars_allowInitialAds=' + allowAds + '&'; //only for the initial-clip'
    flashvars += 'FlashVars_thema=' + encodeURI(thema) + '&';
    flashvars += 'FlashVars_headline=' + encodeURI(headline) + '&';
    flashvars += 'FlashVars_credit=' + credit + '&';
    flashvars += 'FlashVars_videolevelid=' + videoLevelId + '&';
    flashvars += 'FlashVars_streamingurl=' + videoStreamingUrl + '&';

    flashvars += 'FlashVars_baseURL=http://www.alpin.de&';
    flashvars += 'FlashVars_loglevel=LEVEL_NONE&'; //allowed: LEVEL_NONE, LEVEL_DEBUG, LEVEL_INFO

    if (allowAds == false || allowAds.toLowerCase() == 'false') {
        flashvars += 'FlashVars_allowAds=false' + '&';
        flashvars += 'FlashVars_allowEWAds=false' + '&';
        flashvars += 'FlashVars_allowVASTAds=false' + '&';
    } else {
        flashvars += 'FlashVars_allowAds=true' + '&';
        flashvars += 'FlashVars_allowEWAds=true' + '&';
        flashvars += 'FlashVars_allowVASTAds=true' + '&';
    }
    flashvars += 'FlashVars_urls=' + playlistURL + '?mode=newest;null&';
    flashvars += 'FlashVars_playlistUrl=' + playlistURL + '?&';

    // Statistik	
    flashvars += 'FlashVars_countURL=' + escape(local_string + '/videocount?id=[ID]&format=[FORMAT]') + '&';
    flashvars += 'FlashVars_countFrame=ad_count_frame&';

    flashvars += 'FlashVars_categories=Alle,Spitzen-Bergsport,Trailer&';
    flashvars += 'FlashVars_showCategory=true&';
    //	flashvars += 'FlashVars_tabnames=Neueste&';
    //	flashvars += 'FlashVars_tabmodes=url;search&';
    //	flashvars += 'FlashVars_tabstyles=norm;fold&';

    flashvars += 'FlashVars_videoPath=' + videoPath + '&';
    flashvars += 'FlashVars_lc_networkId=106414' + '&';
    flashvars += 'FlashVars_lc_format=Video-Flash-400-400x300' + '&';
    flashvars += 'FlashVars_lc_levelId=Alpin_Portal%3AAlpin_Gesamt' + '&';
    flashvars += 'FlashVars_lc_displayRegion=Standartbanner' + '&';

    if (ewtest) {
        //Test	
        flashvars += 'FlashVars_ew_pre_url=http://ad.de.doubleclick.net/ad/testadvertiser.smartclip/as3_16.9;sz=400x320;dcmt=text/html;ord=[timestamp]?' + '&';
        flashvars += 'FlashVars_ew_overlay_url=http://ad.de.doubleclick.net/ad/testadvertiser.smartclip/as3_16.9;sz=300x50;dcmt=text/html;ord=[timestamp]?' + '&';
        flashvars += 'FlashVars_ew_mid_url=http://ad.de.doubleclick.net/ad/testadvertiser.smartclip/as3_16.9;sz=400x299;dcmt=text/html;ord=[timestamp]?' + '&';
        flashvars += 'FlashVars_ew_post_url=http://ad.de.doubleclick.net/ad/testadvertiser.smartclip/as3_16.9;sz=400x300;dcmt=text/html;ord=[timestamp]?' + '&';
    } else {
        //Live
        flashvars += 'FlashVars_ew_pre_url=http://ad.de.doubleclick.net/ad/alpinde.smartclip/;sz=400x320;dcmt=text/xml;ord=[random]?' + '&';
        flashvars += 'FlashVars_ew_overlay_url=http://ad.de.doubleclick.net/ad/alpinde.smartclip/;sz=300x50;dcmt=text/xml;ord=[random]?' + '&';
        flashvars += 'FlashVars_ew_mid_url=http://ad.de.doubleclick.net/ad/alpinde.smartclip/;sz=400x299;dcmt=text/xml;ord=[random]?' + '&';
        flashvars += 'FlashVars_ew_post_url=http://ad.de.doubleclick.net/ad/alpinde.smartclip/;sz=400x300;dcmt=text/xml;ord=[random]?' + '&';
    }

    if (vasttest) {
        flashvars += 'FlashVars_vast_pre_url=http://im.banner.t-online.de/?advideo/3.0/784.1/2853455/0//cc=2;vidAS=pre_roll;vidRT=VAST;vidRTV=2.0.1;vidREG=companion_bottom:728x90:adiframe' + '&';
        flashvars += 'FlashVars_vast_overlay_url=http://im.banner.t-online.de/?advideo/3.0/784.1/2853456/0//cc=2;vidAS=overlay;vidRT=VAST;vidRTV=2.0.1;vidREG=companion_bottom:728x90:adiframe' + '&';
        flashvars += 'FlashVars_vast_mid_url=' + '&';
        flashvars += 'FlashVars_vast_post_url=http://im.banner.t-online.de/?advideo/3.0/784.1/2853457/0//cc=2;vidAS=post_roll;vidRT=VAST;vidRTV=2.0.1;vidREG=companion_bottom:728x90:adiframe' + '&';
    } else {
        //Live
        flashvars += 'FlashVars_vast_pre_url=http://im.banner.t-online.de/?advideo/3.0/784.1/3216488/0//cc=2;vidAS=pre_roll;vidRT=VAST;vidRTV=2.0.1;vidREG=companion_bottom:728x90:adiframe' + '&';
        flashvars += 'FlashVars_vast_overlay_url=http://im.banner.t-online.de/?advideo/3.0/784.1/3216487/0//cc=2;vidAS=overlay;vidRT=VAST;vidRTV=2.0.1;vidREG=companion_bottom:728x90:adiframe' + '&';
        flashvars += 'FlashVars_vast_mid_url=' + '&';
        flashvars += 'FlashVars_vast_post_url=http://im.banner.t-online.de/?advideo/3.0/784.1/3216486/0//cc=2;vidAS=post_roll;vidRT=VAST;vidRTV=2.0.1;vidREG=companion_bottom:728x90:adiframe' + '&';
    }

    //ew params
    flashvars += 'FlashVars_midroll_video_length=90' + '&';
    flashvars += 'FlashVars_overlayLoadDelay=3000';

    var params = {};
    params.allowfullscreen = "true";
    var attributes = { id: "kickerplayer" };

    if (navigator.userAgent.indexOf("iPad") >= 0)//|| navigator.userAgent.indexOf("Safari")>=0) 
    {
        var html5player = "<div class=\"ovVideoHTML5Wrapper\"><div class=\"ovVideoHTML5Headline\"><span>" + headline + "</span></div>";
        html5player += "<video src=\"http://video.alpin.de/flash/" + videoid + "_996x560_H264_1400.mp4\" width=\"640\" height=\"360\" autoplay=\"true\" controls=\"controls\" >";
        html5player += "This browser is not compatible with HTML 5";
        html5player += "</video></div>";

        document.getElementById('ovPopupPlayer').innerHTML = html5player;
        var videoCountUrl = ovToolkit.rootURL + '/news/videocount?id=' + videoid + '&format=ipad';
        document.getElementById('ad_count_frame').src = videoCountUrl;
    }
    else if (navigator.userAgent.indexOf("IE") >= 0) {
        document.getElementById('ovPopupPlayer').innerHTML = '<embed src="' + videoPlayer + '" name="flashVideoPlayer" id="flashVideoPlayer" type="application/x-shockwave-flash" width="909" height="381" pluginspage="http://www.macromedia.com/go/getflashplayer" quality="high" bgcolor="#000000" menu="false" allowScriptAccess="always" allowFullScreen="true" FlashVars="' + flashvars + '" wmode="opaque"><\/embed>';
    } else {
        document.getElementById('ovPopupPlayer').innerHTML = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" id="flashVideoPlayer" width="909" height="381">\n<param name="movie" value="' + videoPlayer + '" />\n<param name="quality" value="high" />\n<param name="bgcolor" value="#000000" />\n<param name="menu" value="false" />\n<param name="allowScriptAccess" value="always" />\n<param name="allowFullScreen" value="true" />\n<param name="wmode" value="opaque">\n<param name="FlashVars" value="' + flashvars + '" />\n<embed src="' + videoPlayer + '" name="flashVideoPlayer" type="application/x-shockwave-flash" width="909" height="381" pluginspage="http://www.macromedia.com/go/getflashplayer" quality="high" bgcolor="#000000" menu="false" allowScriptAccess="always" allowFullScreen="true" FlashVars="' + flashvars + '" wmode="opaque"><\/embed>\n<\/object>';
    }
}

//Deklaration CompanionAd
//Displayregion zu Div Id auf der Site Unbefüllt lassen wenn Displayregion nicht gebraucht wird.
companion_bottom = "companion_bottom";
companion_left = "companion_left";
companion_right = "companion_right";
companion_top = "companion_top";
im_site_status = "";

function im_site_load() {
    im_site_status = "ready";
}
function addEvent(obj, evType, fn) {
    if (obj.addEventListener) {
        obj.addEventListener(evType, fn, false);
        return true;
    } else if (obj.attachEvent) {
        var r = obj.attachEvent("on" + evType, fn);
        return r;
    } else {
        return false;
    }
}
addEvent(window, 'load', im_site_load);

function im_companionad_call(im_DisplayRegion, im_CompanionWidth, im_CompanionHeight, im_ResourceType, im_ResourceContent, im_creativeType, im_AltText, im_CompanionClickThrough, im_AdParameters) {

    //alert('im_DisplayRegion : ' + im_DisplayRegion + '\n' + 'im_CompanionWidth : ' + im_CompanionWidth + '\n' +	'im_CompanionHeight : ' + im_CompanionHeight + '\n' + 'im_ResourceType : ' + im_ResourceType + '\n' + 'im_ResourceContent : ' + im_ResourceContent + '\n' + 'im_creativeType : ' + im_creativeType + '\n' + 'im_AltText : ' + im_AltText + '\n' + 'im_CompanionClickThrough : ' + im_CompanionClickThrough + '\n' +	'im_AdParameters : ' + im_AdParameters);

    switch (im_ResourceType) {
        case "Static":
            if (im_creativeType == "image/jpeg" || im_creativeType == "image/gif" || im_creativeType == "image/png") {
                im_companion_ad_content = '<a href="' + im_CompanionClickThrough + '" target="_blank"><img src="' + im_ResourceContent + '" width="' + im_CompanionWidth + '" height="' + im_CompanionHeight + '" alt="' + im_AltText + '" border="0"></a>';
            }
            if (im_creativeType == "application/x-shockwave-flash") {
                im_companion_ad_content = '<OBJECT id="adcompanionobject" CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" WIDTH="' + im_CompanionWidth + '" HEIGHT="' + im_CompanionHeight + '" CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab"><PARAM NAME="MOVIE" VALUE="' + im_ResourceContent + '"><PARAM NAME="WMODE" value="opaque"><PARAM NAME="QUALITY" VALUE="high"><PARAM NAME="SCALE" VALUE="exactscale"><PARAM NAME="AllowScriptAccess" VALUE="always"><PARAM NAME="MENU" VALUE="FALSE"><PARAM NAME="FLASHVARS" VALUE="' + im_AdParameters + '"><EMBED SRC="' + im_ResourceContent + '" quality="high" width="' + im_CompanionWidth + '" height="' + im_CompanionHeight + '" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" wmode="opaque" play="true" loop="true" allowscriptaccess="always" scale="exactscale" menu="false" name="adcompanionobject" FLASHVARS="' + im_AdParameters + '"></EMBED></OBJECT>';
            }
            break;
        case "Iframe":
            im_companion_ad_content = '<iframe src="' + im_ResourceContent + '" width="' + im_CompanionWidth + '" height="' + im_CompanionHeight + '" scrolling="no" marginheight="0" marginwidth="0" frameborder="0"></iframe>';
            break
        case "HTML":
            var im_regexp_check = /script/i;
            if (im_regexp_check.test(im_ResourceContent)) {
                im_companion_ad_content = '<div style="visibility:hidden;">Fehlerhaftes CompanionAd, JS gefunden</div>';
            } else {
                im_companion_ad_content = im_ResourceContent;
            }
            break;
        default:
            break;

    }

    //alert('im_companion_ad_content: ' + im_companion_ad_content);

    im_intervall = "";
    im_intervall = window.setInterval("im_write_out()", 100);
    im_DisplayRegion_save = im_DisplayRegion;
}

function im_write_out() {
    im_write_status = "";
    if (im_site_status == "ready") {
        window.clearInterval(im_intervall);
        switch (im_DisplayRegion_save) {
            case "companion_bottom":
                im_Div_Id = companion_bottom;
                break;
            case "companion_top":
                im_Div_Id = companion_top;
                break;
            case "companion_left":
                im_Div_Id = companion_left;
                break;
            case "companion_right":
                im_Div_Id = companion_right;
                break;
            default:
                im_write_status = "stop";
                break;
        }
        if (document.getElementById(im_Div_Id) && im_write_status != "stop") { document.getElementById(im_Div_Id).innerHTML = im_companion_ad_content; }
    }
}

// ---------------------------------------------------------------------------
//GoogleAd
// ---------------------------------------------------------------------------
function google_ad_request_done(google_ads) {
	var s = '';
	var i;
	
	if (google_ads.length == 0) {
		return;
	}

	if (google_ads[0].type == "image") {
		s += '<a target="_blank" href=\"' +
		google_info.feedback_url + '\" style="color:000000">Google-Anzeigen</a><br> <a target="_blank" href="' +
		google_ads[0].url + '" target="_top" title="go to ' +
		google_ads[0].visible_url + '" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to ' +
		google_ads[0].visible_url + '\';return true"><img class="googleimage" border="0" src="' +
		google_ads[0].image_url + '"width="' +
		google_ads[0].image_width + '"height="' +
		google_ads[0].image_height + '"></a><br style="clear:both;">';
	} 
	else {
		s += '<a target="_blank" href=\"' + google_info.feedback_url + '\" style="color:000000">Google-Anzeigen</a><br><div class="googletextborder">';
		
		if (google_ads.length == 1) {
			s += ' <a class="googletext" target="_blank" href="' +
			google_ads[0].url + '" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to ' +
			google_ads[0].visible_url + '\';return true"> <span style="text-decoration:underline;font-size:20pt"> <b>' +
			google_ads[0].line1 + '</b><br></span></a> <span style="color:#000000;font-size:16pt">' +
			google_ads[0].line2 + '&nbsp;' +
			google_ads[0].line3 + '<br></span> <span><a class="googletextlink" target="_blank" href="' +
			google_ads[0].url + '" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to ' +
			google_ads[0].visible_url + '\';return true">' +
			google_ads[0].visible_url + '</span></a><br>';
		} 
		else if (google_ads.length > 1) {
			for(i = 0; i < google_ads.length; ++i) {
				s += '<div><a class="googletext" target="_blank" href="' +
				google_ads[i].url + '" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to ' +
				google_ads[i].visible_url + '\';return true"> <span style="text-decoration:underline"> <b>' +
				google_ads[i].line1 + '</b><br></span></a> <span style="color:#000000">' +
				google_ads[i].line2 + '<br>' +
				google_ads[i].line3 + '<br></span> <span><a class="googletextlink" target="_blank" href="' +
				google_ads[i].url + '" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to ' +
				google_ads[i].visible_url + '\';return true">' +
				google_ads[i].visible_url + '</span></a><br><br></div>';
			}
		}
		
		s += '</div><br style="clear:both;">';
	}

	document.write(s);
	return;
}

// ---------------------------------------------------------------------------
//Ajax-Functions
// ---------------------------------------------------------------------------
function ovAjaxObject() {
    this.isLocal = (document.URL.indexOf("localhost") > -1);
    this.hostName = "http://" + window.location.hostname;
    this.rootURL = "";
    this.hasAjax = Ajax.getTransport();
    this.IVWPage = "";
    this.IVWURL = "http://kicker.ivwbox.de/cgi-bin/ivw/CP/";
    this.IVWDefault = "http://kicker.ivwbox.de/cgi-bin/ivw/CP/2000;fu_kicker_news";
    this.mediadburl = "http://mediadb.kicker.de";

    if (this.isLocal) {
        this.rootURL = document.URL.substring(0, 21) + '/ov'; //http://localhost:3291;
    }
}

var ovAjax = new ovAjaxObject();

ovAjax.SetIVW = function (IVWCode) {
    if (IVW)
        ovAjax.IVWPage = IVW;

    var ovIVW = $('ovIVW');
    if (IVWCode != "")
        ovIVW.src = ovAjax.IVWURL + IVWCode + "?d=" + (Math.random() * 100000);
    else if (IVWCode == "" && ovAjax.IVWPage == "")
        ovIVW.src = ovAjax.IVWDefault + "?d=" + (Math.random() * 100000);
    else
        ovIVW.src = ovAjax.IVWPage + "?d=" + (Math.random() * 100000);
}
ovAjax.SetReloadIcon = function (elem) {
    $(elem).innerHTML = '<div class="ajaxreload"><img src="' + ovAjax.mediadburl + '/library/img/ajax-reload-m.gif"/><\/div>';
}
ovAjax.ShowElem = function (elem) {
    $(elem).style.display = 'block';
    $(elem).style.visibility = 'visible';
}
ovAjax.HideElem = function (elem) {
    $(elem).style.display = 'none';
    $(elem).style.visibility = 'hidden';
}
ovAjax.DoNothing = function ()
{ }

function ovNextSlide(themaID, catID, motivID, ajaxType) {
    var remotePrefix, domain;
    var contelem = 'slideshow_content' + catID;

    if (!ajaxType || ajaxType.length == 0) {
        ajaxType = 'slideshow';
        remotePrefix = 'slideshow';
        domain = ovAjax.rootURL;
    }
    else {
        remotePrefix = 'rasAjax';
        domain = 'http://www.alpin.de';
    }

    ovAjax.SetReloadIcon(contelem);
    var myAjax = new Ajax.Updater({ success: contelem }, domain + '/' + remotePrefix + '/ajax.ashx?ajaxtype=' + ajaxType + '&thema=' + themaID + '&cat=' + catID + '&motiv=' + motivID, { method: 'get', onComplete: ovSlideshowRefresh, evalScripts: true });
}
function ovSlideshowRefresh() {
    ovAjax.SetIVW("");
}
