/*======================================================================*\|| #################################################################### |||| # Datum: 20.12.2003                                                # |||| # ---------------------------------------------------------------- # |||| # Copyright ©2003 bis 2006 cichlidenstube.de  All Rights Reserved. # |||| # This file may not be redistributed in whole or significant part. # |||| # ------------------- THIS IS NOT FREE SOFTWARE ------------------ # |||| # ----------------- http://www.cichlidenstube.de ----------------- # |||| #################################################################### ||\*======================================================================*//*-----------------------------------------------------------------------------*\|*  frameset bei Bedarf nachladen                                              *|\*-----------------------------------------------------------------------------*/function checkFramecall() {var Adressanhang=location.search;if(Adressanhang)frames.main.location.href=Adressanhang.substring(1,Adressanhang.length);}function checkFrameset(){if(!parent.menu)location.href="http://www.cichlidenstube.de/frameset.htm?" + location.pathname;}/*-----------------------------------------------------------------------------*\|*  Abwehr gegen spam                                                          *|\*-----------------------------------------------------------------------------*/function eBrief(name, domain,tld, link){var link = "<a href='mailto:"+name+"&#64;"+domain+"."+tld+"'>"+link+"</a>";document.write(link);}/*-----------------------------------------------------------------------------*\|*  Rechner                                                                    *|\*-----------------------------------------------------------------------------*/function kalWW(){	var Temp = ((parseInt(document.kalWW.TA.value)	* (100 - parseInt(document.kalWW.GW.value)))	+ (parseInt(document.kalWW.TL.value)	* parseInt(document.kalWW.GW.value))) / 100;	document.kalWW.W.value = Temp;}  /*-----------------------------------------------------------------------------*\|*  Abwehr gegen klauen - na ja, Versuch ;-)                                   *|\*-----------------------------------------------------------------------------*/function click(){if (event.button==2) {alert('Copyright © cichlidenstube.de')}}document.onmousedown=clickfunction click(){if (navigator.appName.indexOf("Netscape") != -1){window.captureEvents(Event.MOUSEDOWN | Event.MOUSEUP)window.onmousedown=rightclick;window.onmouseup=rightclick;}function rightclick(e){if (e.which == 3) {alert('Function disabled!')return false; }else {return true; }}}/*-----------------------------------------------------------------------------*\|*  catch possible bugs with WebTV and other older browsers                    *|\*-----------------------------------------------------------------------------*/var is_regexp = (window.RegExp) ? true : false;/*-----------------------------------------------------------------------------*\|*  let's find out what DOM functions we can use                               *|\*-----------------------------------------------------------------------------*/var vbDOMtype = '';if (document.getElementById){	vbDOMtype = "std";}else if (document.all){	vbDOMtype = "ie4";}else if (document.layers){	vbDOMtype = "ns4";}/*-----------------------------------------------------------------------------*\|*  make an array to store cached locations of objects called by fetch_object  *|\*-----------------------------------------------------------------------------*/var vBobjects = new Array();/*-----------------------------------------------------------------------------*\|*  function to emulate document.getElementById                                *|\*-----------------------------------------------------------------------------*/function fetch_object(idname, forcefetch){	if (forcefetch || typeof(vBobjects[idname]) == "undefined")	{		switch (vbDOMtype)		{			case "std":			{				vBobjects[idname] = document.getElementById(idname);			}			break;			case "ie4":			{				vBobjects[idname] = document.all[idname];			}			break;			case "ns4":			{				vBobjects[idname] = document.layers[idname];			}			break;		}	}	return vBobjects[idname];}/*-----------------------------------------------------------------------------*\|*  simple function to toggle the 'display' attribute of an object             *|\*-----------------------------------------------------------------------------*/function toggle_display(idname){	obj = fetch_object(idname);	if (obj)	{		if (obj.style.display == "none")		{			obj.style.display = "";		}		else		{			obj.style.display = "none";		}	}	return false;}/*-----------------------------------------------------------------------------*\|*  Collapse HTML Functions                                                    *||*  function to toggle the collapse state of an object                         *|\*-----------------------------------------------------------------------------*/function toggle_collapse(objid){	if (!is_regexp)	{		return false;	}		obj = fetch_object("collapseobj_" + objid);		img = fetch_object("collapseimg_" + objid);	cel = fetch_object("collapsecel_" + objid);		if (!obj)	{		// nothing to collapse!		if (img)		{			// hide the clicky image if there is one			img.style.display = "none";		}		return false;	}	if (obj.style.display == "none")	{		obj.style.display = "";		save_collapsed(objid, false);		if (img)		{			img_re = new RegExp("_collapsed\\.png$");			img.src = img.src.replace(img_re, '.png');		}		if (cel)		{			cel_re = new RegExp("^(thead|tcat)(_collapsed)$");			cel.className = cel.className.replace(cel_re, '$1');		}	}	else	{		obj.style.display = "none";		save_collapsed(objid, true);		if (img)		{			img_re = new RegExp("\\.png$");			img.src = img.src.replace(img_re, '_collapsed.png');		}		if (cel)		{			cel_re = new RegExp("^(thead|tcat)$");			cel.className = cel.className.replace(cel_re, '$1_collapsed');		}	}	return false;}