// JavaScript Document

function Timer(){
	
	
osName = getOSName();

browserName = getBrowserName();



if((osName == "MacOS") && (browserName == "Explorer")){

document.write('<img src="../../macie/img/count.gif" width="200" height="25" />\n');


}

else{

document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="200" height="25">\n');

document.write('<param name="movie" value="../../script/count.swf" />\n');

document.write('<param name="play" value="true">\n');

document.write('<param name="loop" value="true">\n');

document.write('<param name="quality" value="High">\n');

document.write('<param name="wmode" value="transparent">\n');

document.write('<embed src="../../script/count.swf" width="200" height="25" type="application/x-shockwave-flash">\n');

document.write('</object>\n');

}

}



function getOSName() { 

	var uAgent = navigator.userAgent.toUpperCase();

	if (uAgent.indexOf("MAC") >= 0){

		return "MacOS";

		}

	if (uAgent.indexOf("WIN") >= 0){

		return "Windows";

		}

	} 



function getBrowserName() {

	var aName = navigator.appName.toUpperCase();

 	var uName = navigator.userAgent.toUpperCase();

 	if (uName.indexOf("SAFARI") >= 0) {

		return "Mozilla";

	}

	if (uName.indexOf("FIREFOX") >= 0) {

		return "Mozilla";

	}

	if (aName.indexOf("NETSCAPE") >= 0) {

		return "Mozilla";

	}

	if (aName.indexOf("MICROSOFT") >= 0) {

		return "Explorer";

	}

	if (aName.indexOf("OPERA") >= 0) {

		return "Mozilla";

	}

	return ""; 

} 

