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; 
    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 +'px'
    this.css.top=this.y +'px'
} 
 
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 PerformScroll(speed){ 
	if(initialised){ 
		loop=true; 
		if(speed>0) objScroller.down(speed) 
		else objScroller.up(speed) 
	} 
} 
function PerformScroll2(speed){ 
	if(initialised){ 
		loop=true; 
		if(speed>0) objScroller2.down(speed) 
		else objScroller2.up(speed) 
	} 
} 
function PerformScroll3(speed){ 
	if(initialised){ 
		loop=true; 
		if(speed>0) objScroller3.down(speed) 
		else objScroller3.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 InitialiseScrollableArea2(){ 
    objContainer2=new ConstructObject('divContainer2') 
    objScroller2=new ConstructObject('divContent2','divContainer2') 
    objScroller2.MoveArea(0,0) 
    objContainer2.css.visibility='visible' 
    initialised=true; 
} 
function InitialiseScrollableArea3(){ 
    objContainer3=new ConstructObject('divContainer3') 
    objScroller3=new ConstructObject('divContent3','divContainer3') 
    objScroller3.MoveArea(0,0) 
    objContainer3.css.visibility='visible' 
    initialised=true; 
} 
/************************************************************************************************************
(C) www.dhtmlgoodies.com, November 2005

This is a script from www.dhtmlgoodies.com. You will find this and a lot of other scripts at our website.	

Terms of use:
You are free to use this script as long as the copyright message is kept intact. However, you may not
redistribute, sell or repost it without our permission.

Thank you!

www.dhtmlgoodies.com
Alf Magne Kalleland

************************************************************************************************************/

var dhtmlgoodies_slideSpeed = 10;	// Higher value = faster
var dhtmlgoodies_timer = 10;	// Lower value = faster

var objectIdToSlideDown = false;
var dhtmlgoodies_activeId = false;
var dhtmlgoodies_slideInProgress = false;
function showHideContent(e,inputId)
{
	if(dhtmlgoodies_slideInProgress)return;
	dhtmlgoodies_slideInProgress = true;
	if(!inputId)inputId = this.id;
	inputId = inputId + '';
	var numericId = inputId.replace(/[^0-9]/g,'');
	var answerDiv = document.getElementById('dhtmlgoodies_a' + numericId);

	objectIdToSlideDown = false;
	
	if(!answerDiv.style.display || answerDiv.style.display=='none'){		
		if(dhtmlgoodies_activeId &&  dhtmlgoodies_activeId!=numericId){			
			objectIdToSlideDown = numericId;
			slideContent(dhtmlgoodies_activeId,(dhtmlgoodies_slideSpeed*-1));
		}else{
			
			answerDiv.style.display='block';
			answerDiv.style.visibility = 'visible';
			
			slideContent(numericId,dhtmlgoodies_slideSpeed);
		}
	}else{
		slideContent(numericId,(dhtmlgoodies_slideSpeed*-1));
		dhtmlgoodies_activeId = false;
	}	
}

function slideContent(inputId,direction)
{
	
	var obj =document.getElementById('dhtmlgoodies_a' + inputId);
	var contentObj = document.getElementById('dhtmlgoodies_ac' + inputId);
	height = obj.clientHeight;
	if(height==0)height = obj.offsetHeight;
	height = height + direction;
	rerunFunction = true;
	if(height>contentObj.offsetHeight){
		height = contentObj.offsetHeight;
		rerunFunction = false;
	}
	if(height<=1){
		height = 1;
		rerunFunction = false;
	}

	obj.style.height = height + 'px';
	var topPos = height - contentObj.offsetHeight;
	if(topPos>0)topPos=0;
	contentObj.style.top = topPos + 'px';
	if(rerunFunction){
		setTimeout('slideContent(' + inputId + ',' + direction + ')',dhtmlgoodies_timer);
	}else{
		if(height<=1){
			obj.style.display='none'; 
			if(objectIdToSlideDown && objectIdToSlideDown!=inputId){
				document.getElementById('dhtmlgoodies_a' + objectIdToSlideDown).style.display='block';
				document.getElementById('dhtmlgoodies_a' + objectIdToSlideDown).style.visibility='visible';
				slideContent(objectIdToSlideDown,dhtmlgoodies_slideSpeed);				
			}else{
				dhtmlgoodies_slideInProgress = false;
			}
		}else{
			dhtmlgoodies_activeId = inputId;
			dhtmlgoodies_slideInProgress = false;
		}
	}
}
function initShowHideDivs()
{
	var divs = document.getElementsByTagName('DIV');
	var divCounter = 1;
	for(var no=0;no<divs.length;no++){
		if(divs[no].className=='dhtmlgoodies_question'){
			divs[no].onclick = showHideContent;
			divs[no].id = 'dhtmlgoodies_q'+divCounter;
			var answer = divs[no].nextSibling;
			while(answer && answer.tagName!='DIV'){
				answer = answer.nextSibling;
			}
			answer.id = 'dhtmlgoodies_a'+divCounter;	
			contentDiv = answer.getElementsByTagName('DIV')[0];
			contentDiv.style.top = 0 - contentDiv.offsetHeight + 'px'; 	
			contentDiv.className='dhtmlgoodies_answer_content';
			contentDiv.id = 'dhtmlgoodies_ac' + divCounter;
			answer.style.display='none';
			answer.style.height='1px';
			divCounter++;
		}		
	}	
}
//--------------------------------------------------------------------------------
//---- Mitteilung im Newssystem schreiben
function schreiben() 
{
var aww = screen.availWidth;
var awh = screen.availHeight;
var breite = 500;
var hoehe = 430;
var x = aww/2 - breite/2;
var y = awh/2 - hoehe/2;
var att ="width="+breite+",height="+hoehe+",status=no; resizable=no"
var pw;

fenster=window.open("/content/Mitteilungenneu.asp?","0", att);
fenster.moveTo(x,y);
fenster.focus();
}
//--------------------------------------------------------------------------------
//---- Aufruf des Umfrageergebnisses
function vote_result(Name) 
{
var aww = screen.availWidth;
var awh = screen.availHeight;
var breite = 500;
var hoehe = 430;
var x = aww/2 - breite/2;
var y = awh/2 - hoehe/2;
var att ="width="+breite+",height="+hoehe+",status=no; resizable=no"
var pw;

fenster=window.open("/content/auswertung.asp?Name="+Name+"","0", att);
fenster.moveTo(x,y);
fenster.focus();
}
//--------------------------------------------------------------------------------
//---- Memoryspiel aufrufen
function memory() 
{
var aww = screen.availWidth;
var awh = screen.availHeight;
var breite = 700;
var hoehe = 530;
var x = aww/2 - breite/2;
var y = awh/2 - hoehe/2;
var att ="width="+breite+",height="+hoehe+",status=no; resizable=no"
var pw;

fenster=window.open("/content/memory.asp","0", att);
fenster.moveTo(x,y);
fenster.focus();
}
//--------------------------------------------------------------------------------
//---- Kommentar zu einer News schreiben
function addcomment_news(ID) 
{
var aww = screen.availWidth;
var awh = screen.availHeight;
var breite = 460;
var hoehe = 380;
var x = aww/2 - breite/2;
var y = awh/2 - hoehe/2;
var att ="width="+breite+",height="+hoehe+",status=no; resizable=no"
var pw;

fenster=window.open("/content/addcomment.asp?ID="+ID+"&commenttype=1","0", att);
fenster.moveTo(x,y);
fenster.focus();
}
//--------------------------------------------------------------------------------
//---- Kommentar zu einer Website News schreiben
function addcomment_websitenews(ID) 
{
var aww = screen.availWidth;
var awh = screen.availHeight;
var breite = 460;
var hoehe = 380;
var x = aww/2 - breite/2;
var y = awh/2 - hoehe/2;
var att ="width="+breite+",height="+hoehe+",status=no; resizable=no"
var pw;

fenster=window.open("/content/addcomment.asp?ID="+ID+"&commenttype=2","0", att);
fenster.moveTo(x,y);
fenster.focus();
}
//--------------------------------------------------------------------------------
//---- Kommentar im Selfmadebereich schreiben
function addcomment(ID) 
{
var aww = screen.availWidth;
var awh = screen.availHeight;
var breite = 460;
var hoehe = 380;
var x = aww/2 - breite/2;
var y = awh/2 - hoehe/2;
var att ="width="+breite+",height="+hoehe+",status=no; resizable=no"
var pw;

fenster=window.open("/content/addcomment.asp?ID="+ID+"&commenttype=3","0", att);
fenster.moveTo(x,y);
fenster.focus();
}
//--------------------------------------------------------------------------------
//---- Kommentar zu einer Frage schreiben
function addcomment_frage(ID) 
{
var aww = screen.availWidth;
var awh = screen.availHeight;
var breite = 460;
var hoehe = 380;
var x = aww/2 - breite/2;
var y = awh/2 - hoehe/2;
var att ="width="+breite+",height="+hoehe+",status=no; resizable=no"
var pw;

fenster=window.open("/content/addcomment.asp?ID="+ID+"&commenttype=4","0", att);
fenster.moveTo(x,y);
fenster.focus();
}
//--------------------------------------------------------------------------------
//---- Leistungsdiagramm eines Users anzeigen
function show_leistungsdiagramm(Name) 
{
var aww = screen.availWidth;
var awh = screen.availHeight;
var breite = 500;
var hoehe = 470;
var x = aww/2 - breite/2;
var y = awh/2 - hoehe/2;
var att ="width="+breite+",height="+hoehe+",status=no; resizable=no; scrollbars=yes"
var pw;

fenster=window.open("show_leistungsdiagramm.asp?Name="+Name+"","0", att);
fenster.moveTo(x,y);
fenster.focus();
}//--------------------------------------------------------------------------------
//---- Video eines Users anzeigen
function show_video(Name) 
{
var aww = screen.availWidth;
var awh = screen.availHeight;
var breite = 500;
var hoehe = 470;
var x = aww/2 - breite/2;
var y = awh/2 - hoehe/2;
var att ="width="+breite+",height="+hoehe+",status=no; resizable=no; scrollbars=yes"
var pw;

fenster=window.open("show_video.asp?Name="+Name+"","0", att);
fenster.moveTo(x,y);
fenster.focus();
}
//--------------------------------------------------------------------------------
//---- Bewertungen eines Users anzeigen
function bewertungen(Name) 
{
var aww = screen.availWidth;
var awh = screen.availHeight;
var breite = 500;
var hoehe = 470;
var x = aww/2 - breite/2;
var y = awh/2 - hoehe/2;
var att ="width="+breite+",height="+hoehe+",status=no, resizable=no, scrollbars=yes"
var pw;

fenster=window.open("/content/Bewertungen.asp?Name="+Name+"","0", att);
fenster.moveTo(x,y);
fenster.focus();
}
//--------------------------------------------------------------------------------
//---- Bewertung für einen User abgeben
function voting(Punkte,Name) 
{
var aww = screen.availWidth;
var awh = screen.availHeight;
var breite = 520;
var hoehe = 630;
var x = aww/2 - breite/2;
var y = awh/2 - hoehe/2;
var att ="width="+breite+",height="+hoehe+",status=no; resizable=no"
var pw;

fenster=window.open("bewertung.asp?Punkte="+Punkte+"&Name="+Name+"","0", att);
fenster.moveTo(x,y);
fenster.focus();
}
//--------------------------------------------------------------------------------
//---- Kennwort anfordern
function forgotpassword()
{
var aww = screen.availWidth;
var awh = screen.availHeight;
var breite = 460;
var hoehe = 250;
var x = aww/2 - breite/2;
var y = awh/2 - hoehe/2;
var att ="width="+breite+",height="+hoehe+",status=no; resizable=no"
var pw;

fenster=window.open("/content/forgotpassword.asp","0", att);
fenster.moveTo(x,y);
fenster.focus();
}
//--------------------------------------------------------------------------------
//---- für eine Umfrage abstimmen
function vote(ID) 
{
var aww = screen.availWidth;
var awh = screen.availHeight;
var breite = 500;
var hoehe = 430;
var x = aww/2 - breite/2;
var y = awh/2 - hoehe/2;
var att ="width="+breite+",height="+hoehe+",status=no; resizable=no"
var pw;

fenster=window.open("/content/vote.asp?ID="+ID+"","0", att);
fenster.moveTo(x,y);
fenster.focus();
}
function fck_car()
      {
        	var oFCKeditor1 = new FCKeditor( 'Motorsonstiges' ) ;
	  		oFCKeditor1.Width 	= 330 ;
	  		oFCKeditor1.Height	= 120 ;
        	oFCKeditor1.ToolbarSet = "Basic" ;
        	oFCKeditor1.ReplaceTextarea() ;
        	
        	var oFCKeditor2 = new FCKeditor( 'Sonstiges' ) ;
	  		oFCKeditor2.Width 	= 330 ;
	  		oFCKeditor2.Height	= 120 ;
        	oFCKeditor2.ToolbarSet = "Basic" ;
        	oFCKeditor2.ReplaceTextarea() ;
        	
        	var oFCKeditor3 = new FCKeditor( 'Fahrwerk' ) ;
	  		oFCKeditor3.Width 	= 330 ;
	  		oFCKeditor3.Height	= 120 ;
        	oFCKeditor3.ToolbarSet = "Basic" ;
        	oFCKeditor3.ReplaceTextarea() ;
        	
        	var oFCKeditor4 = new FCKeditor( 'Exterieur' ) ;
	  		oFCKeditor4.Width 	= 330 ;
	  		oFCKeditor4.Height	= 120 ;
        	oFCKeditor4.ToolbarSet = "Basic" ;
        	oFCKeditor4.ReplaceTextarea() ;
        	
        	var oFCKeditor5 = new FCKeditor( 'Interieur' ) ;
	  		oFCKeditor5.Width 	= 330 ;
	  		oFCKeditor5.Height	= 120 ;
        	oFCKeditor5.ToolbarSet = "Basic" ;
        	oFCKeditor5.ReplaceTextarea() ;
        	
        	var oFCKeditor6 = new FCKeditor( 'Sonderausstattung' ) ;
	  		oFCKeditor6.Width 	= 330 ;
	  		oFCKeditor6.Height	= 120 ;
        	oFCKeditor6.ToolbarSet = "Basic" ;
        	oFCKeditor6.ReplaceTextarea() ;
        	
        	var oFCKeditor7 = new FCKeditor( 'sonstigesRadio' ) ;
	  		oFCKeditor7.Width 	= 330 ;
	  		oFCKeditor7.Height	= 120 ;
        	oFCKeditor7.ToolbarSet = "Basic" ;
        	oFCKeditor7.ReplaceTextarea() ;
       }
function fck_gbook()
      {
        var oFCKeditor1 = new FCKeditor( 'Beitrag' ) ;
	oFCKeditor1.Height = 250 ;
        oFCKeditor1.ToolbarSet = "GBook" ;
        oFCKeditor1.ReplaceTextarea() ;

       }

function fck_news_new()
      {
        var oFCKeditor1 = new FCKeditor( 'Content' ) ;
	oFCKeditor1.Height = 500;
        oFCKeditor1.ReplaceTextarea() ;

       }
