function browser_name() {
		var browser_name = navigator.appName;
		return browser_name;
	}

	function browser_version() {
		var browser_version = parseFloat(navigator.appVersion);
		return browser_version;
	}

	function browser_os() {
		if(navigator.appVersion.indexOf("Win95") > 0) return "WIN95";
		else if(navigator.appVersion.indexOf("Win16") > 0) return "WIN31";
		else if(navigator.appVersion.indexOf("WinNT") > 0) return "NT";
		else if(navigator.appVersion.indexOf("Mac") > 0) return "MAC";
		else if(navigator.appVersion.indexOf("UNIX") > 0) return "UNIX";
		else return "UNKNOWN";
	}

var browserOk = false;

if (browser_name() == "Netscape" && browser_version() >= 3.0) browserOk = true;
else if (browser_name() == "Microsoft Internet Explorer" && browser_version() >= 3.0) browserOk = true;

function chg_button(titlename, onoff) 
{
	if (browserOk == true) {
			document[titlename].src = "/images/green/button_" + titlename + "_" + onoff + ".gif"
	}
}

function open_window (page) {

date = new Date();
counter = Math.floor((date.getSeconds()/60)*100);

	new_window = window.open (page,"a" + counter + "a","width=780,height=450,toolbar=no,location=no,scrollbars=yes,directories=no,menubar=no,resizable=yes");
}

function open_photo (image_path) {

date = new Date();
counter = Math.floor((date.getSeconds()/60)*100);

	new_window = window.open ("photo_enlarge.asp?path="+image_path,"a" + counter + "a","width=660,height=680,toolbar=no,location=no,scrollbars=no,directories=no,menubar=no,resizable=no");
}


function open_photos (filepath) {
	new_window = window.open ("images/photos_front/"+filepath+".jpg",filepath,"width=640,height=440,toolbar=no,location=no,scrollbars=yes,directories=no,menubar=no,resizable=yes");
}


function open_otherimage (imagefile, width, height) {

date = new Date();
counter = Math.floor((date.getSeconds()/60)*100);


	new_window = window.open (imagefile,"a" + counter + "a","width="+width+",height="+height+",toolbar=no,location=no,scrollbars=no,directories=no,menubar=no,resizable=no");
}


function run_null () {
	do_nothing = "this";
}

function show() {


    if (document.getElementById) {
         document.getElementById("example_list").style.visibility='visible';
         document.getElementById("example_list").style.display='block';
    }
    else if (document.layers) {
	 document.layers["example_list"].visibility = 'visible';
	 document.layers["example_list"].display = 'block';
    }
    else if (document.all) {
       document.all["example_list"].style.zIndex = 100;
        document.all["example_list"].style.visibility = 'visible';
    }
}

function hide() {

    if (document.getElementById) {
         document.getElementById("example_list").style.visibility='hidden';
         document.getElementById("example_list").style.display='none';
    }
    else if (document.layers) {
	 document.layers["example_list"].visibility = 'hidden';
    }
    else if (document.all) {
         document.all["example_list"].style.visibility = 'hidden';
    }
}


function cent(amount) {
    amount -= 0;
    amount = (Math.round(amount*100))/100;
    return (amount == Math.floor(amount)) ? amount + '.00' : (  (amount*10 == Math.floor(amount*10)) ? amount + '0' : amount);
}

function changeFontSize(inc){  
     var p = document.getElementsByTagName('p');  
	 for(n=0; n<p.length; n++) {    if(p[n].style.fontSize) {       var size = parseInt(p[n].style.fontSize.replace("px", ""));    
	 } else {       
	 var size = 12;    
	 }    
	 p[n].style.fontSize = size+inc + 'px';   
	 }};
	 


function ts( trgt,inc ) {

var tgs = new Array( 'div','td','tr');
var szs = new Array( 'xx-small','x-small','small','medium','large','x-large','xx-large' );

var startSz = 2;
	if (!document.getElementById) return
	var d = document,cEl = null,sz = startSz,i,j,cTags;
	
	sz += inc;
	if ( sz < 0 ) sz = 0;
	if ( sz > 6 ) sz = 6;
	startSz = sz;
		
	if ( !( cEl = d.getElementById( trgt ) ) ) cEl = d.getElementsByTagName( trgt )[ 0 ];

	cEl.style.fontSize = szs[ sz ];

	for ( i = 0 ; i < tgs.length ; i++ ) {
		cTags = cEl.getElementsByTagName( tgs[ i ] );
		for ( j = 0 ; j < cTags.length ; j++ ) cTags[ j ].style.fontSize = szs[ sz ];
	};
};
