function makeFlashObj(sID, sPath, sWidth, sHeight, sBG, sPosition, sIndex)
{
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="' + sID + '" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" style="margin: 0; padding: 0;width:' + sWidth + '; height:' + sHeight + ';">');
	document.write('<param name="movie" value="' + sPath + '">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="wmode" value="transparent">');
	document.write('<param name="bgcolor" value="' + sBG + '">');
	document.write('<embed style="z-index: ' + sIndex + '; position:' + sPosition + ';" wmode=transparent bgcolor="' + sBG + '" src="' + sPath + '" quality="high" id="' + sID + '" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + sWidth + '" height="' + sHeight + '" style="margin: 0; padding: 0;width:' + sWidth + '; height:' + sHeight + ';"></embed>');
	document.write('</object>');
}

window.onload = function(){
	var startpoint = document.getElementById("departSchema"); 
	if (startpoint == null) return false;
	var tables = startpoint.getElementsByTagName("table");
	for ( var t = 0; t < tables.length; t++ ) {
	  var rows = tables[t].getElementsByTagName("tr");
	  for ( var i = 1; i < rows.length; i += 2 )
		if ( !/(^|s)odd(s|$)/.test( rows[i].className ) )
		  rows[i].className += " odd";
	}	
}
