// JavaScript Document

function Topfl(){

osName = getOSName();

browserName = getBrowserName();



if((osName == "MacOS") && (browserName == "Explorer")){

document.write('<table width=900 border=0 cellpadding=0 cellspacing=0><tr><td background="img/bg_header.jpg">\n');
document.write('<table width=900 border=0 cellpadding=0 cellspacing=0>\n');
document.write('<tr><td width=51 height=44><img src="macie/img/btn_jp2.gif" width=51 height=44></td>\n');
document.write('<td width=57 height=44><a href="macie/index_es.html"><img src="macie/img/btn_es.gif" width=57 height=44></a></td>\n');
document.write('<td width=60 height=44><a href="macie/index_fr.html"><img src="macie/img/btn_fr.gif" width=60 height=44></a></td>\n');
document.write('<td width=56 height=44><a href="macie/index_it.html"><img src="macie/img/btn_it.gif" width=56 height=44></a></td>\n');
document.write('<td width=53 height=44><a href="macie/index_en.html"><img src="macie/img/btn_en.gif" width=53 height=44></a></td>\n');
document.write('<td width=623 height=44 colspan=6><img src="macie/img/spacer.jpg" width=623 height=1></td></tr></table>\n');
document.write('</td></tr></table>\n');
document.write('<table width=900 border=0 cellpadding=0 cellspacing=0>\n');
document.write('<tr><td width=900 height=481><img src="macie/img/img_main.jpg" width=900 height=481 alt=""></td></tr></table>\n');
document.write('<table width=900 border=0 cellpadding=0 cellspacing=0><tr><td background="img/bg_header.jpg">\n');
document.write('<table width=900 border=0 cellpadding=0 cellspacing=0><tr>\n');
document.write('<td width=453 height=75><img src="macie/img/logo.gif" width=96 height=62></td>\n');
document.write('<td width=92 height=75><a href="jp/greeting/greeting.html"><img src="jp/img/btn_greetings.gif" width=87 height=61 alt=""></a></td>\n');
document.write('<td width=87 height=75><a href="jp/summary/summary.html"><img src="jp/img/btn_summary.gif" width=82 height=61></a></td>\n');
document.write('<td width=87 height=75><a href="jp/policy/policy.html"><img src="jp/img/btn_policy.gif" width=82 height=61></a></td>\n');
document.write('<td width=88 height=75><a href="jp/chef/chef.html"><img src="jp/img/btn_chef.gif" width=83 height=61></a></td>\n');
document.write('<td width=93 height=75><a href="jp/location/location.html"><img src="jp/img/btn_location.gif" width=88 height=61></a></td>\n');
document.write('</tr></table></td></tr></table>\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,29,0" width="900" height="600">\n');

document.write('<param name="movie" value="script/top.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/top.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="900" height="600"></embed>\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 ""; 

} 

