// topmenu main
//
var specialnavigation = false;
var specialsub;

var countrycode ="main";
var noyellowred = "0";

var topmenu = new Array;
topmenu['78']=new Array;
topmenu['78'][0]=new Array("Products &amp; Solutions","http://www.medical.philips.com/" + countrycode + "/products/",'120');
topmenu['78'][1]=new Array("Customer Services","http://www.medical.philips.com/" + countrycode + "/services/",'419');
topmenu['78'][2]=new Array("Clinical Segments","http://www.medical.philips.com/" + countrycode + "/clinicalsegments/",'420');
topmenu['78'][3]=new Array("News Center","http://www.medical.philips.com/" + countrycode + "/news/",'114');
topmenu['78'][4]=new Array("Company","http://www.medical.philips.com/" + countrycode + "/company/",'421');
topmenu['78'][5]=new Array("Connectivity","http://www.medical.philips.com/" + countrycode + "/company/connectivity/connectivity_index.html",'92');

	menusLength = 6;

	if (document.formUrl) {
		previewmenuUrl = this.location.hostname + formUrl; // import from perl !!!
	} else {
		previewmenuUrl ='';
	}
	document.write('| ');
	for (var i=0; i<menusLength; i++) {
		noyellowred = "0";
		menuLocation = this.location.hostname + topmenu['78'][i][1];

// If we check for /company/ and we are at /company/connectivity/ do not make the item red
		if (i==4 && this.location.href.indexOf(this.location.hostname + topmenu['78'][5][1]) != -1) {
			noyellowred = 1
		}

		if ((this.location.href.indexOf(menuLocation) != -1 || previewmenuUrl.indexOf(menuLocation) != -1) && noyellowred != 1) {
			if ((i != 1) || (this.location.href == "http://" + this.location.hostname + "/" + countrycode + "/")) {
					//specialnavigation = true;
					//specialsub = i;
			}
			document.write(' <a class="yellowred" id="' + topmenu['78'][i][0] + '" href="' + topmenu['78'][i][1] + '">' + topmenu['78'][i][0] + '</a> |');
		} else {
			document.write(' <a class="yellow" id="' + topmenu['78'][i][0] + '" href="' + topmenu['78'][i][1] + '">' + topmenu['78'][i][0] + '</a> |');
		}
	}
