/* ------------------------------------------------------------ */
/* MODULE:							                            */
/*		browser.js				                                */
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  */
/* RELEASE:							                            */
/* 		                        			                    */
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  */
/* DESCRIPTION:							                        */
/*								                                */
/* default javascript included in each template                 */
/*                                                              */
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  */
/* HISTORY:							                            */
/*								                                */
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  */
/* TESTS:							                            */
/*								                                */
/* ************************************************************	*/

bName = navigator.appName;
bVer = parseInt(navigator.appVersion);

var isDOM = (document.getElementById ? true : false);
var isIE5 = ((navigator.appVersion.indexOf("MSIE 5")>-1 && isDOM)?1:0);
var isIE4 = ((document.all && !isDOM) ? true : false);
var isNS4 = (document.layers ? true : false);

function getRef(id) {
    if (isDOM) return document.getElementById(id);
    if (isIE4) return document.all[id];
    if (isNS4) return document.layers[id];
}

function getSty(id) {
    return (isNS4 ? getRef(id) : getRef(id).style);
} 