/*****************************************************
CSS fuer CMSilver

Coding, (c): Bert Riecken, Hamburg
http://www.tonbildtext.de/
03.2008
******************************************************/

<!--
var TBE_EDITOR_isChanged = 1;
function jumpToUrl(URL,formEl)	{	//
	if (!TBE_EDITOR_isFormChanged())	{
		document.location = URL;
	} else if (formEl && formEl.type=="checkbox") {
		formEl.checked = formEl.checked ? 0 : 1;
	}
}

function changeLocation(URL, param)	{
	if(param) {
		if(param.substring(0,1) != "?") param = "?" + param;
	}
	document.parentWindow.location.href = URL + param;
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
   if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
     document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
   else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
 }
MM_reloadPage(true);

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

// Bild austauschen (img und form-element)
function swapPrevImage($name,$pfad,$ziel,$text) {
	document.images[$name].width = 50;
	document.images[$name].height = 50;
	document.images[$name].src = $pfad + $ziel;
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

var windowOpenCloseReference;

function MM_openBrWindow(theURL,winName,features) { //v2.0
	if(windowOpenCloseReference) windowOpenCloseReference.close();
	windowOpenCloseReference = window.open(theURL,winName,features);
	windowOpenCloseReference.focus();
}
function MM_closeBrWindow() { //v2.0
	if(windowOpenCloseReference) windowOpenCloseReference.close();
}
function OpenCloseExtWin(targetwin, width, height, resizable, toolbar, menubar, tarlocation, status, scrollbars) 
{ 
		if(!targetwin) targetwin='SiteExtWin';
		if(!width) width=800;
		if(!height) height=600;
		if(!resizable) resizable='yes';
		if(!toolbar) toolbar='yes';
		if(!menubar) menubar='yes';
		if(!tarlocation) tarlocation='yes';
		if(!status) status='yes';
		if(!scrollbars) scrollbars='yes';

		if(windowOpenCloseReference) windowOpenCloseReference.close();
		windowOpenCloseReference = window.open("", targetwin ,"width=" + width + ",height=" + height + ",resizable=" + resizable + ",toolbar=" + toolbar + ",menubar=" + menubar + ",location=" + tarlocation + ",status=" + status + ",scrollbars=" + scrollbars);
		windowOpenCloseReference.focus();
}

//* window.location.href setzen auf php-datei, parametrisiert, OPTIONS-Feld-Auswertung
//*  Aufruf: optionNav(scriptpath [,paramString[,optParamName,optList[,optTargetNew]]])
//*          (bei Auslassen eines Parameters '' oder null übergeben!
//*  scriptpath: Pfad php-datei (path/datei.php)
//*  paramString: ?param='value'[&param='value'] 
//*  optParamName: parametername
//*  optList: SELECT.name (SELECT-name eines FORM mit OPTIONS zur Auswahl), SELECTED wird bei optParamName als wert eingesetzt
//*  optTargetNew: Neues Fenster (name)
function optionNav(scriptpath) {
	var args = optionNav.arguments;
	if(args.length > 1) var paramString = args[1];
	if(args.length > 2) var optParamName = args[2];
	if(args.length > 3) var optList = args[3];
	if(args.length > 4) var optTargetNew = args[4];
	if(optList) var opt = (optList.options[optList.selectedIndex].value);
	var pars = "";
	if(paramString) {
		if(paramString.substring(0,1) != "?") pars = "?";
	} else if(optParamName) {
		if(optParamName.substring(0,1) != "?") pars = "?";
	}
	if (paramString) pars = pars + paramString;
	if (optParamName && optList) pars = pars + "&" + optParamName + "='" + opt + "'";
	var url = scriptpath + pars;
	if (optTargetNew) win = window.open(url,optTargetNew);
	else if (scriptpath) document.parentWindow.location.href = url;
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
   if (selObj.options[selObj.selectedIndex].value!='no') {
      eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
      if (restore) selObj.selectedIndex=0;
   }
}

function WriteLastUpdate() {
	// last modified script by Bernhard Friedrich; should work in all browsers
	var a;
	a = new Date(document.lastModified);
	lm_year=a.getYear();
	if (lm_year<1000){ 				//just in case date is delivered with 4 digits
		if (lm_year<70){
		lm_year=2000+lm_year;
		}
		else lm_year=1900+lm_year;
	}								//end workaround
	lm_month=a.getMonth()+1;
	if (lm_month<10){
		lm_month='0'+lm_month;
	}
	lm_day=a.getDate();
	if (lm_day<10){
		lm_day='0'+lm_day;
	}
	document.write("Update: " + lm_day+'.'+lm_month+'.'+lm_year);
}

function showPicture(picPath, picName){
	if(picPath.substring(picPath.length-1) != "/") picPath = picPath + "/";
	globPicPath = picPath+picName;
	if(picName) {
		NewWindow=window.open(globPicPath,"ZOOM","width=200,height=200,resizable=yes,scrollbars=no");
	}
}

function showFile(fileURI, fileName){
	if(fileURI.substring(fileURI.length-1,1) != "/") fileURI = fileURI + "/";
	filePath = fileURI+fileName;
	if(fileName) {
		NewWindow=window.open(filePath,"ZOOM","resizable=yes,scrollbars=no");
	}
}

function showURL(fileName){
	if(fileName) {
		if(fileName.substring(0,4) != "http") fileName = "http://" + fileName;
		NewWindow=window.open(fileName,"ZOOM","resizable=yes,scrollbars=auto,toolbar=yes,menubar=yes");
	}
}

function SetCookie(Bezeichner, Wert, Verfall) {
 var jetzt = new Date();
 var Auszeit = new Date(jetzt.getTime() + Verfall);
 document.cookie = Bezeichner+"="+Wert+"; expires="+Auszeit.toGMTString()+";";
}

//->



