/* toRight.js

    (c) 2004 eg.media GmbH

    Written by Christof Donat
*/

function toRight(parent,child) {
	var p = document.getElementById(parent);
	var c = document.getElementById(child);
	
	if( /Firefox\/1/.test(navigator.userAgent) && !/Firefox\/1[.]5/.test(navigator.userAgent) ) {
		if( c.offsetWidth > p.offsetWidth ) c.style.marginLeft = (p.offsetWidth-c.offsetWidth);
		else c.style.marginLeft = 0;
	} else {
		if(document.all) { c.style.marginLeft = 0; c.style.top = -3; }
		if( c.offsetWidth > p.offsetWidth ) c.style.marginLeft = (p.offsetWidth-c.offsetWidth)-450;
		else c.style.marginLeft = -450;
	}
}

