/* take advantage of feautures on fully css compliant browsers */
/* hmm, not many yet. Maybe latest Konq (eg safari) are? */
function css_compliant()
{
    var ua = navigator.userAgent;
    // alert("User agent is "+ua);
    
    var compliant = (ua.indexOf("Gecko") > -1 || ua.indexOf("Opera") > -1) ? 1 : 0;
    if (compliant) {
	document.getElementById('title').style.position='fixed';
    	document.getElementById('text').style.position='fixed';
	//document.getElementById('text').style.overflow='scroll';
	document.getElementById('text').style.bottom='1ex';
    }

    var ie = (ua.indexOf("MSIE") > -1) ? 1 : 0;
    /* unlike compliant browsers, MSIE appears to consider % widths to be % of
	document window, not % of current div. Using fixed values is safest 
	way out.
       The number is fairly arbitary, but should fit two std size landscape 
        images, plus reasonable margins on a row in the text div.
    */
    if (ie) {
	if (document.all['title']) {
		document.all['title'].style.width='550px';
		document.all['title'].style.padding='2ex,0,0,0';
		document.all['title'].style.height='13ex';
		document.all['title'].style.margin='0px';
		document.all['title'].style.lineHeight='150%';
	}
	if (document.all['text']) {
		document.all['text'].style.overflow='hidden';
		document.all['text'].style.top='20ex';
		document.all['text'].style.width='550px';
		document.all['text'].style.padding='0,0,0,0';
		document.all['text'].style.margin='0px';
	}
	/* pos absolute goes over menu, if window is not as tall as menu */
	if (document.all['updated']) {
		/* IE4 doesnt have position */
	    	if (document.all['updated'].style.position)
			document.all['updated'].style.position='relative';
	    	document.all['updated'].style.padding='5px';
	}
    }
}
