/* * *  /thr5arts.js *  master jscripts *	 *	rev 20070310  * *  thrive | arts *	socially conscious design, web development, advertising and marketing for the arts community *	3610 Park Blvd *  San Diego, Ca 92103 USA *  mbl: +1 619 8139423 *  eml: info@thr5.com *  web: www.thrivearts.com * */  /*   *	FUNCTION :: tests for DHTML DIV Layer browser support *  rev 20060120 */	function getDivCompatibility(divID) {        /*  	 *  Browser support data from : 	 *	http://www.howtocreate.co.uk/tutorials/index.php?tut=0&part=14 	 *	Current as of 20060120 	 *	 *  Netscape 4	 *  Mozilla Rhino engine (Escape 4)	 *  OmniWeb 4.2	 */	if( document.layers ) { return document.layers[divID]; }        /* 	 *  Newest W3C DOM-compliant browsers, including:	 *  AOLTV	 *  iCab 2	 *  iPanel MicroBrowser with advanced modules	 *  Internet Explorer 5 Mac	 *  Internet Explorer 5, 6 Win	 *  Liberate's TV Navigator	 *  Mozilla Gecko (FireFox, Netscape 6+)	 *  Mozilla Rhino engine (Escape 5)	 *  Mozilla Rhino engine (ICEbrowser)	 *  Netgem 4 browser (NetBox)	 *  NetFront	 *  OpenTV	 *  Opera 5, 6, 7+	 *  Safari	 */	if( document.getElementById ) { return document.getElementById(divID); }        /* 	 *  Old browsers and proprietary DOM:	 *  iCab 2	 *  Internet Explorer 4, 5 Mac	 *  Internet Explorer 4, 5, 6 Win	 *  Mozilla Rhino engine (ClueBrowser)	 *  Mozilla Rhino engine (Escape 5)	 *  Mozilla Rhino engine (ICEbrowser)	 *  OmniWeb 4.1, 4.5+	 *  Opera 7+	 *  Safari	 *  WebTV (MSN TV) Plus and extended Classic	 */    if( document.all ) { return document.all[divID]; }        /*     *	Netscape alternative     */    if( document[divID] ) { return document[divID]; }        return false;}/*   *	FUNCTION :: toggles DHTML DIV Layer ON *  rev 20060120 */ function showDiv(id) { // Fixed-size version	var calculate = document.layers ? "" : "px";	var compatibleBrowser = getDivCompatibility(id);	if( !compatibleBrowser ) {		window.alert('Error : Image layers and popups do not work in this browser.'); return;	}	if( compatibleBrowser.style ) {		this.obj = compatibleBrowser.style.display = 'block';	} else {		if( compatibleBrowser.visibility ) {			this.obj = compatibleBrowser.visibility = 'show';		} else {			window.alert('Error : Image layers are not supported in this browser. You will not be able to view image enlargements.'); return;		}	}}/*   *	FUNCTION :: centers DHTML DIV in screen, for Netscape browsers *  rev 20060120 */function centerElement() {	return ( document.compatMode && document.compatMode!="BackCompat" ) ? document.documentElement : document.body;}/*   *	FUNCTION :: toggles DHTML DIV Layer OFF *  rev 20060120 */function hideDiv(id) {	var compatibleBrowser = getDivCompatibility(id);	if( !compatibleBrowser ) {		window.alert('Error : Image layers are not supported in this browser. You will not be able to view image enlargements.'); return;	}	if( compatibleBrowser.style ) {		compatibleBrowser.style.display = 'none';	} else {		if( compatibleBrowser.visibility ) {			compatibleBrowser.visibility = 'hide';		} else {			window.alert('Error : Image layers are not supported in this browser. You will not be able to view image enlargements.'); return;		}	}}
