document.write('<style>')
document.write('#charterTable a {display: block; width: 100%;}')
document.write('#shuttleTable a {display: block; width: 100%;}')
document.write('#helistopTable a {display: block; width: 100%;}')
document.write('</style>')

function table_effects(evt){

var d=document, charter_table, td;

var header_highlight = "#37b237";
var travel_highlight = "#91e0bf";

/* onmouseover/out 1st cell 2nd row */
function mover1(evt){
this.style.background=travel_highlight;
td[0].style.background=header_highlight;
}
function mout1(evt){
this.style.background="#99cccc";
td[0].style.background="#339933";
}

/* onmouseover 2nd/3rd cell 2nd row */
function mover2(evt){
td[3].style.background=travel_highlight;
td[4].style.background=travel_highlight;
td[5].style.background=travel_highlight;

td[0].style.background=header_highlight;
td[1].style.background=header_highlight;
td[2].style.background=header_highlight;
}
function mout2(evt){
td[3].style.background="#99cccc";
td[4].style.background="#99cccc";
td[5].style.background="#99cccc";

td[0].style.background="#339933";
td[1].style.background="#339933";
td[2].style.background="#339933";
}

/* rest of the rows plus 1st cell 2nd row */
function mover3(evt){
this.style.background=travel_highlight;
td[3].style.background=travel_highlight;

td[0].style.background=header_highlight;
td[1].style.background=header_highlight;
td[2].style.background=header_highlight;
}

function mout3(evt){
this.style.background="#99cccc";
td[3].style.background="#99cccc";

td[0].style.background="#339933";
td[1].style.background="#339933";
td[2].style.background="#339933";
}


/* only row highlights in shuttle table */
function mover4(evt){
this.style.background=travel_highlight;
}

function mout4(evt){
this.style.background="#99cccc";
}


/* only row highlights in helistop table */
function mover5(evt){
this.style.background=travel_highlight;
}

function mout5(evt){
this.style.background="#99cccc";
}



if(d.getElementById && d.getElementsByTagName){

tr=d.getElementById("charterTable").getElementsByTagName("tr");
td=d.getElementById("charterTable").getElementsByTagName("td");

/* get tags for shuttleTable if it exists */
if (document.getElementById("shuttleTable")){
shuttle_table=d.getElementById("shuttleTable").getElementsByTagName("tr");
}

/* get tags for helistopTable if it exists */
if (document.getElementById("helistopTable")){
helistop_table=d.getElementById("helistopTable").getElementsByTagName("tr");
}


/* assign special onmouseover/out handlers to cell in 2nd row */
for(var iii=0;iii<td.length; iii++){
td[3].onmouseover=mover1;
td[3].onmouseout=mout1;

td[4].onmouseover=mover2;
td[4].onmouseout=mout2;

td[5].onmouseover=mover2;
td[5].onmouseout=mout2;
}

for(var ii=2;ii<tr.length; ii++){

tr[ii].onmouseover=mover3;
tr[ii].onmouseout=mout3;
}

/* assign onmouseover/out handlers to rows in shuttleTable if it exists */
if (document.getElementById("shuttleTable")){
for(var i=1;i<shuttle_table.length; i++){
shuttle_table[i].onmouseover=mover4;
shuttle_table[i].onmouseout=mout4;
}
}

/* assign onmouseover/out handlers to rows in helistopTable if it exists */
if (document.getElementById("helistopTable")){
for(var iiii=1;iiii<helistop_table.length; iiii++){
helistop_table[iiii].onmouseover=mover5;
helistop_table[iiii].onmouseout=mout5;
}
}



}
}
