/***************************************************************
*
*  Universal formupdate-function
*
*  Copyright notice
*
*  (c) 2007 Gunther Pfannenschmidt
*  All rights reserved
*
*  This script is part of the TYPO3 t3lib/ library provided by
*  Kasper Skaarhoj <kasper@typo3.com> together with TYPO3
*
*  This modified script is part of the TYPO3 sr_feuser_register extension provided by
*  Stanislas Rolland <stanislas.rolland@fructifor.ca> to use form id rather than formname
*
*  Released under GNU/GPL (see license file in tslib/)
*
*  This script is distributed in the hope that it will be useful,
*  but WITHOUT ANY WARRANTY; without even the implied warranty of
*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
*  This copyright notice MUST APPEAR in all copies of this script
***************************************************************/

function md(obj) {
	obj.style.backgroundImage="url(fileadmin/Bilder/teaser-down.gif)";
	//document.getElementById('search').innerHTML = obj.childNodes[0].childNodes[0].childNodes.length;
	//document.getElementById('search').innerHTML = obj.childNodes[0].childNodes[0].childNodes[0].id;
	if (navigator.appName == "Netscape") {
		obj.childNodes[1].childNodes[0].childNodes[0].style.padding="14 6 6 14";
		obj.childNodes[1].childNodes[0].childNodes[2].style.margin="14 6 0 14";
	}
	else {
		obj.childNodes[0].childNodes[0].childNodes[0].style.padding="14 6 6 14";
		obj.childNodes[0].childNodes[0].childNodes[1].style.margin="14 6 0 14";
	}
}
function mu(obj) {
	obj.style.backgroundImage="url(fileadmin/Bilder/teaser-normal.gif)";
	if (navigator.appName == "Netscape") {
		obj.childNodes[1].childNodes[0].childNodes[0].style.padding="10 10 10 10";
		obj.childNodes[1].childNodes[0].childNodes[2].style.margin="10 10 0 10";
	}
	else {
		obj.childNodes[0].childNodes[0].childNodes[0].style.padding="10 10 10 10";
		obj.childNodes[0].childNodes[0].childNodes[1].style.margin="10 10 0 10";
	}
}
function mo(obj) {
	mu(obj);
}
function mdu(obj) {
	//document.getElementById('search').innerHTML = obj.parentNode.parentNode.parentNode.id;
	if (navigator.appName != "Netscape") {
		obj.parentNode.parentNode.click();
	}
}
