<!--
var bName = (navigator.appName); bVersion = (parseInt(navigator.appVersion));
var agt=navigator.userAgent.toLowerCase();

//  openWindow 
function openWindow(theURL,winName,features) { //v2.0
 window.open(theURL,winName,features);
 }
 
//  Change Image 
function changeImg(naam,source) {
 eval('document.' + naam + '.src = "../img/partners/' + source + '.gif";');
 }


/*  browsercheck 
if ((bName == 'Netscape') && (bVersion >= '5')) {
	document.write('<link rel="stylesheet" href="../stylezz/typo.css" type="text/css">');
}
	
else if ((bName == 'Microsoft Internet Explorer') && (bVersion >= '4')) {
	document.write('<link rel="stylesheet" href="../stylezz/typo_ie4.css" type="text/css">');
}
	
else if ((agt == 'Opera') && (bVersion >= '5')) {
	document.write('<link rel="stylesheet" href="../stylezz/typo_ie4.css" type="text/css">');
}
//  preload images  */
arImageSrc = new Array (
	"../img/back_article.gif",
	"../img/back.gif",
	"../img/tri_media.gif",
	"../img/tri_services.gif",
	"../img/tri_references.gif",
	"../img/tri_career.gif",
	"../img/tri_client.gif",
	"../img/tri_partners.gif"
   )

arImageList = new Array ();

for (counter in arImageSrc) {
	arImageList[counter] = new Image();
	arImageList[counter].src = arImageSrc[counter];
   }

//  toggle 
// *** When item is visible, make it invisible, when item invisible, make it visible
function toggle (layerName) {
	if (document.getElementById(layerName).style.visibility != "hidden") {
		document.getElementById(layerName).style.visibility = "hidden";
	} else {
	document.getElementById(layerName).style.visibility = "visible";
	}
}

//  show 
//  Make item visible
function show (layerName) {
	document.getElementById(layerName).style.visibility = "visible";
}
//  type 
function type (layerName,string) {
	document.getElementById(layerName).innerHTML = string;
}
//  showNews 
function showNews(item) {
	show('article');
	show('newsTitle');
	show('newsDetail');
	show('close');
	type('newsDetail',item);
}
// showRef
function showRef(item) {
	show('refMain');
	show('refTitle');
	show('refDetail');
	show('refClose');
	type('refDetail',item);
}
//  callMe
function callMe() {
	show('callMain');
	show('callTitle');
	show('callDetail');
	show('callClose');
}
// apply
function apply() {
	show('applyMain');
	show('applyTitle');
	show('applyDetail');
	show('applyClose');
}

//  Map
function map() {
	show('mapDetail');
}

//  transToOpaque 
function transToOpaque (layerName,OpValue,Speed,LowValue,HighValue) 
{
	// initial value of the layer element
	if (bName == 'Microsoft Internet Explorer') {
		var trans = document.getElementById(layerName).filters.Alpha.opacity;
	}
	else if (bName == "Netscape") {
		var trans = parseInt(document.getElementById(layerName).style.MozOpacity);
	}
	OpChange(trans,layerName,OpValue,Speed,LowValue,HighValue);	
}

//  OpChange 
// *** trans: Transparency value
// *** layerName : Layer name
// *** OpValue: Value with which to augment the transparency value
// *** Speed : Speed with which the OpChange function is called
// *** LowValue: Lowest value of the transparency value
// *** HighValue: Highest value of the transparency value

function OpChange(trans,layerName,OpValue,Speed,LowValue,HighValue) {
	// default values, if parameters aren't defined
	if (HighValue == null || HighValue == "") {HighValue=100};
	if (LowValue == null || LowValue == "") {LowValue=0};
	if (Speed == null || Speed == "") {Speed=50};
	if (OpValue == null || OpValue == "") {OpValue=10};
	if (trans < HighValue && trans >= LowValue) {
		if (bName == 'Microsoft Internet Explorer') {
			document.getElementById(layerName).filters.Alpha.opacity = trans;
		}
		else {
			document.getElementById(layerName).style.MozOpacity = trans;
		}
		trans = trans + OpValue;
//	rem: in html, mozilla style property =  -moz-opacity:10%
	setTimeout("OpChange("+trans+",'"+layerName+"',"+OpValue+","+Speed+","+LowValue+","+HighValue+")",Speed);
	}
}

//  typeURL 

function typeURL (layerName,string) {
	document.getElementById(layerName).innerHTML = ("<a href=" + string + ">" + string + "</a>");
}

//  randomPartner 

function randomPartner () {
	var randomPartner = 0;
	var maxNumber = 15;
	randomNumber = Math.round(maxNumber * Math.random());

//	make random number even
  
		var binary = randomNumber.toString(2);
		if (binary.charAt(binary.length - 1) == "1") {
			randomNumber --;
		}
	changeImg('logo',partnersArray[randomNumber]);
	typeURL('description',partnersArray[++randomNumber]);
}

//-->
