
//-----------------------------------------------------------------
//			ScrollLayer Container Code
//-----------------------------------------------------------------


// begin absolutely positioned scrollable area object scripts 
// Extensions developed by David G. Miles and Christian R. Schulz
// Original Scrollable Area code developed by Thomas Brattli 

function verifyCompatibleBrowser(){ 
    this.ver=navigator.appVersion 
    this.dom=document.getElementById?1:0 
    this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0; 
    this.ie4=(document.all && !this.dom)?1:0; 
    this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
 
    this.ns4=(document.layers && !this.dom)?1:0; 
    this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5) 
    return this 
} 

bw = new verifyCompatibleBrowser() 
 
 
var speed=50 
 
var loop, timer 
 
function ConstructObject(obj,nest){ 
    nest=(!nest) ? '':'document.'+nest+'.' 
    this.el=bw.dom?document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?eval(nest+'document.'+obj):0; 
    this.css=bw.dom?document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?eval(nest+'document.'+obj):0; 
	//if(!this.css)alert('!!!' + obj+ ', ');
    this.scrollHeight=bw.ns4?this.css.document.height:this.el.offsetHeight 
    this.clipHeight=bw.ns4?this.css.clip.height:this.el.offsetHeight 
    this.up=MoveAreaUp;this.down=MoveAreaDown;
    this.MoveArea=MoveArea; this.x; this.y; 
    this.obj = obj + "Object" 
    eval(this.obj + "=this") 
    return this 
} 
function MoveArea(x,y){ 
    this.x=x;this.y=y 
    this.css.left=this.x 
    this.css.top=this.y 
} 
 
function MoveAreaDown(move){ 
	if(this.y>-this.scrollHeight+objContainer.clipHeight){ 
    this.MoveArea(0,this.y-move) 
    if(loop) setTimeout(this.obj+".down("+move+")",speed) 
	} 
} 
function MoveAreaUp(move){ 
	if(this.y<0){ 
    this.MoveArea(0,this.y-move) 
    if(loop) setTimeout(this.obj+".up("+move+")",speed) 
	} 
} 

function MoveToBottom(){
	if(initialised){ 
		objScroller.MoveArea(0, -objScroller.scrollHeight+objContainer.clipHeight)
	}
}


function PerformScroll(speed){ 
	speed = speed / 1.7;
	if(initialised){ 
		loop=true; 
		if(speed>0) objScroller.down(speed) 
		else objScroller.up(speed) 
	} 
} 
 
function CeaseScroll(){ 
    loop=false 
    if(timer) clearTimeout(timer) 
} 
var initialised; 
function InitialiseScrollableArea(){ 
    objContainer=new ConstructObject('divContainer') 
    objScroller=new ConstructObject('divContent','divContainer') 
    objScroller.MoveArea(0,0) 
    objContainer.css.visibility='visible' 
    initialised=true; 
} 

function InitialiseScrollableAreaNew(strContainerName, strContentName){ 
    objContainer=new ConstructObject(strContainerName) 
    objScroller=new ConstructObject(strContentName, strContainerName) 
    objScroller.MoveArea(0,0) 
    objContainer.css.visibility='visible' 
	initialised=true; 
} 



// end absolutely positioned scrollable area object scripts 



//-----------------------------------------------------------------
//			Menu Code
//-----------------------------------------------------------------

var actMenu;
var hideActMenu;
var letActMenuShown;
var hideInProgress;
var menuTimer;

function showMenu(strMenuName){
	if((actMenu)&&(strMenuName!=actMenu))hideSlide(actMenu);
	showSlide(strMenuName);
	actMenu=strMenuName;
	hideActMenu = false;
	letShown();
}


function letShown(){
	hideActMenu = false;
	letActMenuShown = true;
	clearTimeout(menuTimer);
}

function hideMenu(hideNow){
	if(!hideActMenu){
		hideActMenu = true;
		letActMenuShown = false;
		menuTimer = setTimeout('hideMenu(true)', 500);
	} else {
		if((!letActMenuShown)&&(actMenu)&&(hideNow)) hideSlide(actMenu);
	}
}

function menuCellClick(cell){
   if(event.srcElement.tagName=='TD')
   {
      cell.children.tags('A')[0].click();
   }
}

function menuCellMouseOver(cell){
	cell.className='menuItemSelected';
	cell.style.cursor='hand';
}

function menuCellMouseOut(cell){
	cell.className='menuItem';
	cell.style.cursor = 'default';
}

//-----------------------------------------------------------------
//			Topic-Tabellen Code
//-----------------------------------------------------------------


function topicCellClick(cell){
   if((event.srcElement.tagName=='TD')&&(cell.children.tags('A')[0]))
   {
      cell.children.tags('a')[0].click();
   }
}

function topicCellMouseOver(cell){
	cell.className='topicTableSelected';
	cell.style.cursor='hand';
}

function topicCellMouseOut(cell){
	cell.className='topicTable';
	cell.style.cursor='hand';
}


//-----------------------------------------------------------------
//			Funktionen zum platzieren des ContentLayers
//-----------------------------------------------------------------

function resizeContentSlide(){
	wWidth = document.body.offsetWidth;
	wHeight = document.body.offsetHeight;
	resizeSlide('contentSlide', wWidth-230, wHeight-105);
	//resizeSlide('topicSlide', 170, wHeight-135);

}

//-----------------------------------------------------------------
//			Funktionen zum platzieren der PreviewLayer
//-----------------------------------------------------------------

function showArtikelSlide(cell, artikelID){
	wHeight = document.body.offsetHeight;
	var position = getElementPosition(cell);
	resizeSlide('artikel' + artikelID, 400, wHeight-position.y);
	posSlide('artikel' + artikelID, 198, position.y);
	showSlide('artikel' + artikelID);
	
}

function hideArtikelSlide(artikelID){
	hideSlide('artikel' + artikelID);

}


//-----------------------------------------------------------------
//			Funktionen zum dynamischen generieren der Layer
//-----------------------------------------------------------------

var NN       = (document.layers ? true : false);
var W3C		 = (!document.all && document.getElementById) ? true : false;
//if(navigator.appVersion >= 5)NN = false;
var hideName = (NN ? 'hide' : 'hidden');
var showName = (NN ? 'show' : 'visible');
var zIdx = 0;
if (NN || W3C) document.captureEvents(Event.MOUSEMOVE)

function genSlide(sName, sLeft, sTop, sWdh, sHgt, sVis, copy, optParam) {
  if (NN) {
	var strHTML = '<LAYER NAME="' + sName + '" LEFT=' + sLeft + ' TOP=' + sTop + ' WIDTH=' + sWdh + ' HEIGHT=' + sHgt + ' VISIBILITY="' + sVis + '" z-Index=' + (++zIdx);
	if(optParam)strHTML += optParam;
	strHTML += '">' + copy + '</LAYER>';
    document.writeln(strHTML);
    }
  else {
	var strHTML = '<DIV ID="' + sName + '" STYLE="position:absolute; overflow:none; left:' + sLeft + 'px; top:' + sTop + 'px; width:' + sWdh + 'px; height:' + sHgt + 'px; visibility:' + sVis + '; z-Index=' + (++zIdx) + '; ';
	if(optParam)strHTML += optParam;
	strHTML += '">' + copy + '</DIV>';
    document.writeln(strHTML);
    }
}

function genSlideTag(sName, sLeft, sTop, sWdh, sHgt, sVis, copy, optParam) {
  if (NN) {
	var strHTML = '<LAYER NAME="' + sName + '" LEFT=' + sLeft + ' TOP=' + sTop + ' WIDTH=' + sWdh + ' HEIGHT=' + sHgt + ' VISIBILITY="' + sVis + '" z-Index=' + (++zIdx);
	if(optParam)strHTML += optParam;
	strHTML += '">' + copy + '</LAYER>';
    return strHTML;
  } else {
	var strHTML = '<DIV ID="' + sName + '" STYLE="position:absolute; overflow:none; left:' + sLeft + 'px; top:' + sTop + 'px; width:' + sWdh + 'px; height:' + sHgt + 'px; visibility:' + sVis + '; z-Index=' + (++zIdx) + '; ';
	if(optParam)strHTML += optParam;
	strHTML += '">' + copy + '</DIV>';
    return strHTML;
  }
}


function genRelativeSlideTag(sName, sLeft, sTop, sWdh, sHgt, sVis, copy, optParam) {
  if (NN) {
    return '<LAYER NAME="' + sName + '" WIDTH=' + sWdh + ' HEIGHT=' + sHgt + ' VISIBILITY="' + sVis + '" z-Index=' + (++zIdx) + '>' + copy + '</LAYER>';
  } else {
	var strHTML = '<DIV ID="' + sName + '" STYLE="position:relative; left:' + sLeft + 'px; top:' + sTop + 'px; width:' + sWdh + 'px; height:' + sHgt + 'px; visibility:' + sVis + '; z-Index=' + (++zIdx) + '; ';
	if(optParam)strHTML += optParam;
	strHTML += '">' + copy + '</DIV>';
    return strHTML;
    //return '<DIV ID="' + sName + '" STYLE="position:relative; overflow:auto; width:' + sWdh + 'px; height:' + sHgt + 'px; visibility:' + sVis + '; z-Index=' + (++zIdx) + '">' + copy + '</DIV>';
  }
}

function getSlideHTML(sName){

}


function changeSlideInnerHTML(sName, innerHTML){
	if(NN){
		refSlide(sName).document.open();
		refSlide(sName).document.write(innerHTML);
		refSlide(sName).document.close();					
	} else {
		eval("document.all." + sName + ".innerHTML = '" + innerHTML + "'");
	}
}

function setSlideZ(name, intZ){
	refSlide(name).zIndex = intZ;
}

function hideSlide(name) {

  refSlide(name).visibility = hideName;
  //refSlide(name).zIndex = intOldZ;
}

function showSlide(name) {
  refSlide(name).visibility = showName;
  intOldZ = refSlide(name).zIndex;
  //refSlide(name).zIndex = zIdx + 1;
}

function posSlide(name, xPos, yPos) {
	
	if((NN) || (W3C)){
		refSlide(name).left = xPos;
		refSlide(name).top = yPos;
	}else{
		refSlide(name).posLeft = xPos;
		refSlide(name).posTop = yPos;
	}
}

function getSlideX(name){
	if((NN) || (W3C)){
		return refSlide(name).left;
	}else{
		return refSlide(name).posLeft;
	}
}

function getSlideY(name){
	if((NN) || (W3C)){
		return refSlide(name).top;
	}else{
		return refSlide(name).posTop;
	}
}

function getSlideWidth(name){
	return refSlide(name).width;
}

function getSlideHeight(name){
	return refSlide(name).height;
}

function posSlideScrollResistant(name, xPos, yPos){
	if(NN){
		refSlide(name).left = pageXOffset + xPos;
		refSlide(name).top = pageYOffset + yPos;
	
	}else{
		refSlide(name).posLeft = document.body.scrollLeft + xPos;
		refSlide(name).posTop = document.body.scrollTop + yPos;
	}
	setTimeout("posSlideScrollResistant('" + name + "', " + xPos + ", " + yPos + ")",200);
}


function posLoginSlideScrollResistant(name, lWidth, lHeight){
	if(NN){
		var wWidth, wHeight;
		wWidth = window.outerWidth;
		wHeight = window.outerHeight;
	}else{
		var wWidth, wHeight;
		wWidth = document.body.offsetWidth;
		wHeight = document.body.offsetHeight;
	}

	if(NN){
		refSlide(name).left = pageXOffset + (wWidth / 2) - (lWidth / 2);
		refSlide(name).top = pageYOffset + (wHeight / 2) - (lHeight / 2);
	
	}else{
		refSlide(name).posLeft = document.body.scrollLeft + (wWidth / 2) - (lWidth / 2);
		refSlide(name).posTop = document.body.scrollTop + (wHeight / 2) - (lHeight / 2);
	}
	setTimeout("posLoginSlideScrollResistant('" + name + "', " + lWidth + ", " + lHeight + ")",200);
}


function posSlideCentered(name, lWidth, lHeight){
	if(NN){
		var wWidth, wHeight;
		wWidth = window.outerWidth;
		wHeight = window.outerHeight;
		lWidth = refSlide(name).clip.width;
		lHeight = refSlide(name).clip.height;
	}else{
		var wWidth, wHeight;
		wWidth = document.body.offsetWidth;
		wHeight = document.body.offsetHeight;
		if(!lWidth)lWidth = refSlide(name).width;
		if(!lHeight)lHeight = refSlide(name).height;
	}

	if(NN){
		//alert(refSlide(name).left);
		refSlide(name).left = (wWidth / 2) - (lWidth / 2);
		//refSlide(name).top = yPos;
		//alert(refSlide(name).left);
	
	}else{
		refSlide(name).posLeft = document.body.scrollLeft + (wWidth / 2) - (lWidth / 2);
		refSlide(name).posTop = document.body.scrollTop + (wHeight / 2) - (lHeight / 2);
	}

}


function getSlideBottom(name){
	if(NN){
		return (refSlide(name).top + refSlide(name).clip.height);
	}else{
		return (parseInt(refSlide(name).posTop) + parseInt(refSlide(name).height));
	}
}

function changeSlideClip(name, clipLeft, clipTop, clipRight, clipBottom){
	if(document.layers){
		refSlide(name).style.clip.top = clipTop;
		refSlide(name).style.clip.left = clipLeft;
		refSlide(name).style.clip.right = clipRight;
		refSlide(name).style.clip.bottom = clipBottom;
	}
	else if (document.getElementById || document.all)
	{
		lyrheight = x.obj.offsetHeight;
		refSlide(name).style.clip = 'rect('+clipTop+' '+clipRight+' '+clipBottom+' '+clipLeft+')';
	}

}

function resizeSlide(name, sWidth, sHeight) {
	if(NN){
		refSlide(name).clip.width = sWidth;
		refSlide(name).clip.height =  sHeight;
		//writeToDebugWindow('refSlide(name).height' + refSlide(name).height);
	}else{
		refSlide(name).width =  sWidth;
		refSlide(name).height =  sHeight;
		//alert(refSlide(name).height);
	}
}

function refSlide(name) {
	if (document.getElementById){
		return eval('document.getElementById("' + name + '").style;');
	}else if (document.all){
		return eval('document.all.' + name + '.style'); 
	}else if (document.layers){
		return getNN4Slide(document,name);
	}
}

function getNN4Slide(obj,name){
	var arrLayers = obj.layers;
	var returnLayer;
	for (var i=0;i<arrLayers.length;i++)
	{
		if (arrLayers[i].id == name)
		 	returnLayer = arrLayers[i];
		else if (arrLayers[i].layers.length)
			var tmpLayer = getObjNN4(arrLayers[i],name);
		if (tmpLayer) returnLayer = tmpLayer;
	}
	return returnLayer;
}

function getMouseX(){
	if((NN)||(W3C)){
		return e.pageX;
	}else{
		return event.x;
	}
}
	
function getMouseY(){
	if((NN)||(W3C)){
		return e.pageY;
	}else{
		return event.y;
	}
}

//-----------------------------------------------------------------
//			SlideOutLayer
//-----------------------------------------------------------------

function slideOutLayer(layerName, objName, endPosition, cos){
	this.objName = objName;
	this.intervalTimer = 30;
	this.smoothLayerName = layerName;
	this.smoothLayerXPos=getSlideX(layerName);//startposition des div tags
	var pixToGo = (endPosition-this.smoothLayerXPos);
	this.smoothLayerXMov=25;//geschwindigkeit(maximale pixel am anfang)
	this.smoothLayerXMax=-this.smoothLayerXPos;//maximal zu verschiebende pixel
	if (cos) { this.z=cos; } else {
		this.z=1.15+((1.15*pixToGo)/350);//streckwert der cosinusfunktion
	}
	this.pi=3.141592654;
	this.smoothLayerStartPosition=this.smoothLayerXPos;//altestartposition
	this.smoothLayerXEndPosition = endPosition;
	this.smoothLayerMovedOut = false;
	this.smoothLayerTimeIntervall = null;
	this.stillMoving = false;
	this.moveLayerSmooth = moveLayerSmooth; this.moveLayerSmoothToStart = moveLayerSmoothToStart;
	this.aufzaehlen = aufzaehlen; this.abzaehlen=abzaehlen;

}

function aufzaehlen() {
	if (this.smoothLayerXPos<this.smoothLayerXEndPosition) {
		//schon verschobene pixel
		var smoothLayerDestination=getSlideX(this.smoothLayerName)+this.smoothLayerXMax;
		var smoothLayerPositionAdd=(((Math.cos(((this.pi/this.z)/this.smoothLayerXMax)*smoothLayerDestination)+1)/2)*this.smoothLayerXMov);
		this.smoothLayerXPos=this.smoothLayerXPos+smoothLayerPositionAdd;
		if (this.smoothLayerXPos>this.smoothLayerXEndPosition) this.smoothLayerXPos=this.smoothLayerXEndPosition;
		posSlide(this.smoothLayerName, this.smoothLayerXPos, getSlideY(this.smoothLayerName));
		this.stillMoving = true;
	}else{
		window.clearInterval(this.smoothLayerTimeIntervall); 
		this.smoothLayerMovedOut = true;
		this.stillMoving = false;
	}
}

function abzaehlen() {
	if (this.smoothLayerXPos>this.smoothLayerStartPosition) {
		var smoothLayerDestination=-getSlideX(this.smoothLayerName);
		var smoothLayerPositionAdd=(((Math.cos(((this.pi/this.z)/this.smoothLayerXMax)*smoothLayerDestination)+1)/2)*this.smoothLayerXMov);
		this.smoothLayerXPos=this.smoothLayerXPos-smoothLayerPositionAdd;
		if (this.smoothLayerXPos<this.smoothLayerStartPosition) this.smoothLayerXPos=this.smoothLayerStartPosition;
		posSlide(this.smoothLayerName, this.smoothLayerXPos, getSlideY(this.smoothLayerName));
		this.stillMoving = true;
	}else{
		window.clearInterval(this.smoothLayerTimeIntervall); 
		this.smoothLayerMovedOut = false;
		this.stillMoving = false;
	}
}

function moveLayerSmoothToStart() {
	if(this.smoothLayerMovedOut){
		if (this.smoothLayerTimeIntervall) window.clearInterval(this.smoothLayerTimeIntervall); 
		this.smoothLayerTimeIntervall = window.setInterval(this.objName + ".abzaehlen()",this.intervalTimer);
	}
}

function moveLayerSmooth() {
	if(!this.smoothLayerMovedOut){
		if (this.smoothLayerTimeIntervall) window.clearInterval(this.smoothLayerTimeIntervall); 
		this.smoothLayerTimeIntervall = window.setInterval(this.objName + ".aufzaehlen()",this.intervalTimer);
	}else{
		this.moveLayerSmoothToStart();
	}
}


//-----------------------------------------------------------------
//			Formular-Code
//-----------------------------------------------------------------

var intTimeout;
var stillLoading = false;
var strMainPath = "proticketB2B";

function resetNavForm(){
	setNavFrmAttribute('rsProPage', 30);
	setNavFrmAttribute('pageCounter', 1);
	setNavFrmAttribute('orderBy', '');
}

function setNavFrmAttribute(strFormElementName, strValue){
	eval('document.navForm.' + strFormElementName + '.value = "' + strValue + '";');
}

function showPage(strPageName, pageID, strTarget){
	document.navForm.action = "/" + strMainPath + "/" + strPageName;
	if(strTarget) document.navForm.target = strTarget;
	if(pageID)document.navForm.ID.value = pageID;
	document.navForm.submit();	
}


function navigateToPageCount(strPageName, intPageCounter, strTarget){
	document.navForm.action = "/" + strMainPath + "/" + strPageName + "List.asp";
	if(strTarget) document.navForm.target = strTarget;
	document.navForm.PageCounter.value = intPageCounter;
	document.navForm.submit();	
}

function showInNewWin(strPageName, strOption){
	if(strOption){
		var strMyOption = strOption;
	}else{
		var strMyOption = "width=600,height=480,scrollbars=yes,resizeable=yes";
	}
	var myNumber = Math.round(Math.random()*(1000));
	newWin = window.open(strPageName, "newWin" + myNumber, strMyOption)
	document.navForm.action = "/" + strMainPath + "/" + strPageName;
	document.navForm.target = "newWin" + myNumber;
	document.navForm.submit();
	document.navForm.target = "";
}

function showBerichtInNewWin(strPageName, strOption){
	if(strOption){
		var strMyOption = strOption;
	}else{
		var strMyOption = "width=600,height=480,scrollbars=yes,resizeable=yes";
	}
	var myNumber = Math.round(Math.random()*(1000));
	newWin = window.open(strPageName, "newWin" + myNumber, strMyOption)
	document.navForm.action = strPageName;
	document.navForm.target = "newWin" + myNumber;
	document.navForm.submit();
	document.navForm.target = "";
}

function showInFullWin(strPageName, strOption){
	var winWidth = window.screen.width - 10;
	var winHeight = window.screen.height - 10;
	var strParam = "left=0,top=0,scrollbars=yes,resizable=no,width=" + winWidth + ",height=" + winHeight + ""
	if(strOption)strParam+=","+strOption;
	newWin = window.open(strPageName, "devWin", strParam)
	//document.navForm.action = "/" + strMainPath + "/" + strPageName;
	//document.navForm.target = "devWin";
	//document.navForm.submit();
}



//---------------------------------------------------------------
//
//---------------------------------------------------------------



function getElementPosition( e, root, x, y ){
	if( document.layers !== void 0 ){
		x = e.$x !== void 0 ? e.$x : e.x ;
		y = e.$y !== void 0 ? e.$y : e.y ;
		return { x:x, y:y };
	}else{
		function searchParentHTMLElement( e, tagName ){
			if( e === document.body ){
				return null ;
			}else{
				var tname = e.tagName.toLowerCase();
				if( tagName == "cell" ){
					return tname == "td" || tname == "th" ? e : arguments.callee( e.parentNode, tagName );
				}else{
					return tname == tagName ? e : arguments.callee( e.parentNode, tagName );
				}
			}
		}
		if( arguments.length == 1 ){
			var dynElement = function( e ){
				if( e === document.body ){
					return null ;
				}else{
					return e.style.position == "absolute" ? e : arguments.callee( e.parentNode );
				}
			}( e );
			if( dynElement == null ){
				if( document.all !== void 0 ){
					return arguments.callee( e, document.body, e.offsetLeft, e.offsetTop );
				}else{
					return { x:e.offsetLeft, y:e.offsetTop };
				}
			}else{
				if( document.all !== void 0 ){
					return arguments.callee( e, dynElement, dynElement.offsetLeft+e.offsetLeft, dynElement.offsetTop+e.offsetTop );
				}else{
					return { x:dynElement.offsetLeft+e.offsetLeft, y:dynElement.offsetTop+e.offsetTop };
				}
			}
		}
		if( e === root ){
			return { x:x, y:y };
		}else{
			var elementCELL = searchParentHTMLElement( e, "cell" );
			if( elementCELL == null ){
				return { x:x, y:y };
			}else{
				var elementTABLE = searchParentHTMLElement( elementCELL, "table" );
				x += elementTABLE.offsetLeft+elementCELL.offsetLeft ;
				y += elementTABLE.offsetTop+elementCELL.offsetTop ;
				if( parseInt( elementTABLE.border ) != 0 ) y += 1 ;
				return arguments.callee( elementTABLE, root, x, y );
			}
		}
	}
}

function formatFloat(x, n)
{
	//formatiert die Nachkomma-Stellen von x, n ist Anzahl der NKS 
  var faktor = Math.pow(10, n)
  var myNumber = (Math.round(x * faktor) / faktor) + '';
  var kommaStelle = myNumber.indexOf(".");
  if (kommaStelle<=0){
	return myNumber + ".00";
  }else{
	if (kommaStelle==myNumber.length-2){
		return myNumber + "0";
	}else{
		return myNumber;
	}
  }
  
}

function formatPosition(myNumber){
	myNumber += '';
	if (myNumber.indexOf("px")>0){
		return myNumber.substr(0,myNumber.length-2);
	}else{
		return myNumber;
	}
}

var detectionSlideExists = false;
function detectStringWidth(myString, styleName){
	//ermittelt die Breite eines Strings mit dem angegebenen StyleSheet

	strHTML = '<table><tr><td style="' + styleName + '">' + myString + '</td></tr><tr><td><img name="myWidthDetection" src="images/blank.gif" width="100%"></td></tr></table>';
	if(!detectionSlideExists){
		genSlide('myWidthDetectionSlide', -1000, -1000, 999, 999, hideName, strHTML);
		detectionSlideExists = true;
	}else{
		changeSlideInnerHTML('myWidthDetectionSlide', strHTML);
	}
	return document.images['myWidthDetection'].width;

}

function catchRightMouseClick() 
{
if (event.button==2) 
 {
 alert('(c) ProTicket GmbH & Co KG. ')
 }
}

function deActivateRightMouseClick(){
	document.onmousedown=catchRightMouseClick;
}
