//globals
var left_link_active = false;
var right_link_active = false;
var menu_on = false;
var bigpic = "";
var smallpic = "";
var body_override = false;

//link locations
var menu1 = "";
var menu2 = "";
var menu3 = "";
var menu4 = "";
var menu5 = "";
var menu6 = "";
var menu7 = "";
var menu8 = "";
var menu9 = "";
var menu10 = "";
var menu11 = "";
var menu12 = "";
var menu13 = "";
var menu14 = "";

//----------------------------------------------------------------------------- INIT
function init(){
repos();
}
/*
//-----------------------------------------------------------------------------mouseover_pic
function domouseover_pic(eid){

   document.getElementById(eid).style.opacity = 10;
   document.getElementById(eid).style.filter = 'alpha(opacity='10')'; 

  //     filter:progid:DXImageTransform.Microsoft.Alpha(opacity=100);
  //     -moz-opacity: 1;
 //  }


}
//-----------------------------------------------------------------------------mouseout_pic
function domouseout_pic(eid){

   //document.getElementById(eid).style.filter = progid:DXImageTransform.Microsoft.Alpha(opacity=50);
   //-moz-opacity = 1;

}
*/
//----------------------------------------------------------------------------- DO ROLL-OVER - CLICK
function dorollover(picname, eid, picname2, eid2){

   document.getElementById(eid).src = "../pictures/" + picname + ".jpg";
   document.getElementById(eid2).src = "../pictures/" + picname2 + ".jpg";

}
//----------------------------------------------------------------------------- SPN_MOUSEOVER
function spn_mouseOver( ele, num ){
   
   resetLeftLink( );
   ele.style.color = "#FFDDFF";
      showMenu( num );
      left_link_active = true;
}
//----------------------------------------------------------------------------- SPN_MOUSEOUT
function spn_mouseOut( ele ){
   var doResets = setTimeout( "doResets()", 2000 );
   //deactivate link
   left_link_active = false;
}

//----------------------------------------------------------------------------- SPNa1_MOUSEOVER
function spna1_mouseOver( ele ){
   
   body_override = true;
   changeSmallPic("whysmall");
   ele.style.color = "#FFDDFF"; 
   arrow5.style.visibility = "visible";
}
//----------------------------------------------------------------------------- SPNa1_MOUSEOUT
function spna1_mouseOut( ele ){
   ele.style.color = "#ffffff";
   arrow5.style.visibility = "hidden";
   body_override = false;
   hideSmallPic();
}
//----------------------------------------------------------------------------- SPNa2_MOUSEOVER
function spna2_mouseOver( ele ){  
   ele.style.color = "#FFDDFF";
   arrow6.style.visibility = "visible";
   body_override = true;
   changeSmallPic("thanksmall");
}
//----------------------------------------------------------------------------- SPNa2_MOUSEOUT
function spna2_mouseOut( ele ){
   ele.style.color = "#ffffff";
   arrow6.style.visibility = "hidden";
   body_override = false;
   hideSmallPic();
}

//----------------------------------------------------------------------------- SPNa3_MOUSEOVER
function spna3_mouseOver( ele ){  
   ele.style.color = "#FFDDFF";
   arrow7.style.visibility = "visible";
   body_override = true;
   changeSmallPic("healthsmall");
}
//----------------------------------------------------------------------------- SPNa3_MOUSEOUT
function spna3_mouseOut( ele ){
   ele.style.color = "#ffffff";
   arrow7.style.visibility = "hidden";
   body_override = false;
   hideSmallPic();
}

//----------------------------------------------------------------------------- DO RESETS
function doResets(){
   if( right_link_active == false && left_link_active == false){
      resetLeftLink();
      hideMenus();
   }
}
//----------------------------------------------------------------------------- RESET LEFT LINK
function resetLeftLink( ){
   //change link color to inactive
   for( x=1; x<=8; x++ ){
      eval( "spn" + x ).style.color = "#ffffff";
   }
   for( x=1; x<=3; x++ ){
      eval( "spna" + x ).style.color = "#ffffff";
   }
}
//----------------------------------------------------------------------------- MNU_MOUSEOVER
function mnu_mouseOver( ele, ident ){

   //get unique id for arrow image placeholder
   var u_id = eval( "arr" + ident ); 
   //menu and arrow control
   ele.style.color = "#A080C9";
   hideArrows();
   u_id.src = "pictures/arrow.gif";
   right_link_active = true;
   changeSmallPic(smallpic);
}
//----------------------------------------------------------------------------- MNU_MOUSEOUT
function mnu_mouseOut( ele ){   
   ele.style.color = "#510051";
   right_link_active = false; //deactivate link
   menu_on = false; //deactivate menu
   hideSmallPic();
}
//----------------------------------------------------------------------------- BODY_MOUSEOVER
function body_mouseOver(){
   //if no links are active, hide menus, reset link colors to inactive
   if(menu_on == false && right_link_active == false){
      resetLeftLink();
      hideMenus();
   }
}
//----------------------------------------------------------------------------- HIDE MENUS
function hideMenus(){
   //hide all drop downs
   for(x=1; x<=8; x++){
      eval("mnu" + x).style.visibility = "hidden";
   } 
   shadow.style.visibility = "hidden";
   if(!body_override){
      hideSmallPic();
   }
}
//----------------------------------------------------------------------------- SPN1_CLICK
function spn1_click(){
//early years
}
//----------------------------------------------------------------------------- SPN2_CLICK
function spn2_click(){
   changeBigPic("childcarebig");
   frames['iframe01'].location.href = "links/childcare.htm";
}
//----------------------------------------------------------------------------- SPN2_CLICK
function spn3_click(){
//outreach
}
//----------------------------------------------------------------------------- SPN4_CLICK
function spn4_click(){
//Donate
}
//----------------------------------------------------------------------------- SPN5_CLICK
function spn5_click(){
   changeBigPic("transportationbig");
   frames['iframe01'].location.href = "links/transportation.htm";
}
//----------------------------------------------------------------------------- SPN6_CLICK
function spn6_click(){
   changeBigPic("volunteerbig");
   frames['iframe01'].location.href = "links/volunteer.htm";
}
//----------------------------------------------------------------------------- SPN7_CLICK
function spn7_click(){
//numbers & Links
}
//----------------------------------------------------------------------------- SPN8_CLICK
function spn8_click(){
 changeBigPic("searchbig");
 frames['iframe01'].location.href = "links/search.htm";
}
//----------------------------------------------------------------------------- SPN9_CLICK
function spn9_click(){
//not yet used
}
//----------------------------------------------------------------------------- SPN10_CLICK
function spn10_click(){
//not yet used  
}
//----------------------------------------------------------------------------- SPNa1_CLICK
function spna1_click(){
   changeBigPic("whybig");
   frames['iframe01'].location.href = "links/why.htm";
}
//----------------------------------------------------------------------------- SPNa2_CLICK
function spna2_click(){
   changeBigPic("thankbig");
   frames['iframe01'].location.href = "links/early_learning.htm";
}
//----------------------------------------------------------------------------- SPNa3_CLICK
function spna3_click(){
 //  changeBigPic("thankbig");
   window.open( "http://www.hc-sc.gc.ca/cps-spc/advisories-avis/aw-am/index-eng.php");
  // frames['iframe01'].location.href = "http://www.hc-sc.gc.ca/cps-spc/advisories-avis/aw-am/index-eng.php" target="_blank";
}
//----------------------------------------------------------------------------- SPNMYTEK_CLICK
function spnMyTek_click(){
   window.open( "http://www.my-tek.ca/");
}
//----------------------------------------------------------------------------- SPNMYTEK_MOUSEOVER
function spnMyTek_mouseover(ele){
   ele.style.color = "#A17CC9";
}
//----------------------------------------------------------------------------- SPNMYTEK_MOUSEOUT
function spnMyTek_mouseout(ele){
   ele.style.color = "#510051";
}
//----------------------------------------------------------------------------- MNU1_CLICK
function mnu1_click(){
   changeBigPic(bigpic);
   frames['iframe01'].location.href = "links/" + menu1 + ".htm";
}
//----------------------------------------------------------------------------- MNU2_CLICK
function mnu2_click(){
   changeBigPic(bigpic);
   frames['iframe01'].location.href = "links/" + menu2 + ".htm";
}
//----------------------------------------------------------------------------- MNU3_CLICK
function mnu3_click(){
   changeBigPic(bigpic);
   frames['iframe01'].location.href = "links/" + menu3 + ".htm";
}
//----------------------------------------------------------------------------- MNU4_CLICK
function mnu4_click(){
   changeBigPic(bigpic);
   frames['iframe01'].location.href = "links/" + menu4 + ".htm";
}
//----------------------------------------------------------------------------- MNU5_CLICK
function mnu5_click(){
   changeBigPic(bigpic);
   frames['iframe01'].location.href = "links/" + menu5 + ".htm";
}
//----------------------------------------------------------------------------- MNU6_CLICK
function mnu6_click(){
   changeBigPic(bigpic);
    frames['iframe01'].location.href = "links/" + menu6 + ".htm";
}
//----------------------------------------------------------------------------- MNU7_CLICK
function mnu7_click(){
    changeBigPic(bigpic);
    frames['iframe01'].location.href = "links/" + menu7 + ".htm";
}
//----------------------------------------------------------------------------- MNU8_CLICK
function mnu8_click(){
 
    changeBigPic(bigpic);
    frames['iframe01'].location.href = "links/" + menu8 + ".htm";
}
//----------------------------------------------------------------------------- MNU9_CLICK
function mnu9_click(){
  
}
//----------------------------------------------------------------------------- MNU10_CLICK
function mnu10_click(){
 
}
//----------------------------------------------------------------------------- MNU11_CLICK
function mnu11_click(){

}
//----------------------------------------------------------------------------- MNU12_CLICK
function mnu12_click(){

}
//----------------------------------------------------------------------------- MNU13_CLICK
function mnu13_click(){

}
//----------------------------------------------------------------------------- MNU14_CLICK
function mnu14_click(){

}
//----------------------------------------------------------------------------- MNU15_CLICK
function mnu15_click(){

}
//----------------------------------------------------------------------------- MNU16_CLICK
function mnu16_click(){

}
//----------------------------------------------------------------------------- MNU17_CLICK
function mnu17_click(){

}
//----------------------------------------------------------------------------- MNU18_CLICK
function mnu18_click(){

}
//----------------------------------------------------------------------------- HIDE ARROWS
function hideArrows(){
   for( x=1; x<=14; x++ ){
      eval("arr" + x ).src = "pictures/blank.gif";
   }
}
//----------------------------------------------------------------------------- REPOS
function repos(){
   // reposition main table on window resize
   if( getBrowserWidth() <= 794 ){
      tblMain.style.left = 0;
   }
   else{
      tblMain.style.left = ( getBrowserWidth() - 794 ) / 2;
   }
   
   //link span style.top starting point = 220 ( actually 250 - loop below will add 10 )
   var link_top_start = 220;
   // repositon link spans based on main table location
   for( x = 1; x <=8; x++){
   eval("spn" + x).style.left = parseInt(tblMain.style.left)-5;
   eval("mnu" + x).style.left = parseInt(tblMain.style.left) + 185;
   eval("spn" + x).style.top = link_top_start + (x * 24);
   eval("mnu" + x).style.top = link_top_start - 4 + (x * 24);
   }

   //link span style.top starting point = 340 ( actually 350 - loop below will add 10 )
   var link_top_start2 = 428;
   // repositon link spans based on main table location
   for( x = 1; x <=3; x++){
   eval("spna" + x).style.left = parseInt(tblMain.style.left)+5;
   eval("spna" + x).style.top = link_top_start2 + (x * 60);

   }


   //positon top links
 //  document.getElementById("home").style.top = 74; document.getElementById("home").style.left = parseInt(tblMain.style.left) + 320;
   home.style.top = 70; home.style.left = parseInt(tblMain.style.left) + 320;
   about.style.top = 70; about.style.left = parseInt(tblMain.style.left) + 440;
   contact.style.top = 70; contact.style.left = parseInt(tblMain.style.left) + 560;
   careers.style.top = 70; careers.style.left = parseInt(tblMain.style.left) + 680;
   

   

   //position smallpic
 // smallpic1.style.top = parseInt(tblMain.style.top) + 100;
//  smallpic1.style.left = parseInt(tblMain.style.left) + 126;

   //position horizontal rule
   hr1.style.left = parseInt(tblMain.style.left);
   hr2.style.left = parseInt(tblMain.style.left);
   hr3.style.left = parseInt(tblMain.style.left);

   //position "together" paragraph
   together.style.left = parseInt(tblMain.style.left) + 300;

    donate.style.left = parseInt(tblMain.style.left) + 605;
    donate.style.top= 5;   

   //position sponsor pics
   sponsor1.style.left = parseInt(tblMain.style.left);
   sponsor2.style.left = parseInt(tblMain.style.left) + 130 + 2;
   sponsor3.style.left = parseInt(tblMain.style.left) + 130 + 97 + 4;
   sponsor4.style.left = parseInt(tblMain.style.left) + 130 + 97 + 77 + 6;
   sponsor5.style.left = parseInt(tblMain.style.left) + 130 + 97 + 77 + 94 + 8;
   sponsor6.style.left = parseInt(tblMain.style.left) + 130 + 97 + 77 + 94 + 150 + 10;
   sponsor7.style.left = parseInt(tblMain.style.left) + 130 + 97 + 77 + 94 + 150 + 56 + 12;
   sponsor8.style.left = parseInt(tblMain.style.left) + 130 + 97 + 77 + 94 + 150 + 56 + 89 + 14;

   //position sponsor background
   sponsorbgrnd.style.left = parseInt(tblMain.style.left);
   website.style.left = parseInt(tblMain.style.left) + 0;
   document.body.style.visibility = "visible";
   together.style.visibility = "visible";
   website.style.visibility = "visible";
   donate.style.visibility = "visible";
}
//----------------------------------------------------------------------------- GET BROWSER WIDTH
function getBrowserWidth() {
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement &&
      ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
  return myWidth;
}
//----------------------------------------------------------------------------- GET BROWSER HEIGHT
function getBrowserHeight() {
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement &&
      ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
  return myHeight;
}
//----------------------------------------------------------------------------- SHOW MENU
function showMenu( item ){

   // menu place holders
   var msg1=".", msg2=".", msg3="_", msg4="_", msg5="_", msg6="_", msg7="_", msg8="_", msg9="_", msg10="_";
   var msg11="_", msg12="_", msg13="_", msg14="_",

   //arrow image placeholder ( contains blank.gif until replaced with arrow.gif in mouseover routine)
   arr_msg1 = "<img src='pictures/blank.gif' id='arr";
   arr_msg2 = "' height=20 border=0>";

   //hide all menus
   hideMenus();
  
   switch( item ){
      case 1: mnu1.filters[0].Apply();mnu1.filters[1].Apply();
              mnu2.filters[0].Apply();mnu2.filters[1].Apply();
              mnu3.filters[0].Apply();mnu3.filters[1].Apply();
              shadow.filters[0].Apply();shadow.filters[1].Apply();
              msg1 = "General Information"; mnu1.style.visibility = "visible"; menu1 = "general_info";
              msg2 = "Activities"; mnu2.style.visibility = "visible"; menu2 = "activities";
              msg3 = "Other O.E.Y. Services"; mnu3.style.visibility = "visible"; menu3 = "services";
              menu_on = true;
              placeShadow(mnu1.style.top, mnu1.style.left, 3); 
              changeSmallPic("earlysmall"); bigpic = "earlybig"; smallpic = "earlysmall";     
              break;
      case 2: menu_on = true;spn2.color="rgb(255,221,255)";            
              changeSmallPic("childcaresmall"); bigpic = "childcarebig"; smallpic = "childcaresmall";
              break;
      case 3: mnu3.filters[0].Apply();mnu3.filters[1].Apply();
              mnu4.filters[0].Apply();mnu4.filters[1].Apply();
              mnu5.filters[0].Apply();mnu5.filters[1].Apply();
              shadow.filters[0].Apply();shadow.filters[1].Apply();
              msg3 = "General Information"; mnu3.style.visibility = "visible"; menu3 = "outreach_info";
              msg4 = "Government Forms"; mnu4.style.visibility = "visible"; menu4 = "government";
              msg5 = "Let Kids Play"; mnu5.style.visibility = "visible"; menu5 = "let_kids_play";
              menu_on = true;
              placeShadow(mnu3.style.top, mnu1.style.left, 3);
              changeSmallPic("outreachsmall"); bigpic = "outreachbig"; smallpic = "outreachsmall";
              break;
      case 4: mnu4.filters[0].Apply();mnu4.filters[1].Apply();
              mnu5.filters[0].Apply();mnu5.filters[1].Apply();
              mnu6.filters[0].Apply();mnu6.filters[1].Apply();
              shadow.filters[0].Apply();shadow.filters[1].Apply();
              msg4 = "Financial Donation"; mnu4.style.visibility = "visible"; menu4 = "donate";
              msg5 = "Volunteer"; mnu5.style.visibility = "visible"; menu5 = "volunteer";
              msg6 = "Other Donations"; mnu6.style.visibility = "visible"; menu6 = "donations";
              menu_on = true;
              placeShadow(mnu4.style.top, mnu1.style.left, 3);
              changeSmallPic("differencesmall"); bigpic = "differencebig"; smallpic = "differencesmall";
              break;     
      case 5: menu_on = true; spn5.color="rgb(255,221,255)"; changeSmallPic("transportationsmall"); break;
      case 6: menu_on = true; spn6.color="rgb(255,221,255)"; changeSmallPic("volunteersmall"); break;
      case 7: mnu7.filters[0].Apply();mnu7.filters[1].Apply();
              mnu8.filters[0].Apply();mnu8.filters[1].Apply();
              shadow.filters[0].Apply();shadow.filters[1].Apply();
              msg7 = "North Wellington"; mnu7.style.visibility = "visible"; menu7 = "north";
              msg8 = "Centre Wellington"; mnu8.style.visibility = "visible"; menu8 = "centre";
              menu_on = true;
              placeShadow(mnu7.style.top, mnu1.style.left, 2);
              changeSmallPic("numberssmall"); bigpic="numbersbig"; smallpic = "numberssmall";
              break; 
      case 8: menu_on = true; spn8.color="rgb(255,221,255)"; changeSmallPic("searchsmall"); break;
   }

   //show drop down menu links


   mnu1.innerHTML = arr_msg1 + "1" + arr_msg2 + msg1; mnu1.filters[0].Play();mnu1.filters[1].Play();
   mnu2.innerHTML = arr_msg1 + "2" + arr_msg2 + msg2; mnu2.filters[0].Play();mnu2.filters[1].Play();
   mnu3.innerHTML = arr_msg1 + "3" + arr_msg2 + msg3; mnu3.filters[0].Play();mnu3.filters[1].Play();
   mnu4.innerHTML = arr_msg1 + "4" + arr_msg2 + msg4; mnu4.filters[0].Play();mnu4.filters[1].Play();
   mnu5.innerHTML = arr_msg1 + "5" + arr_msg2 + msg5; mnu5.filters[0].Play();mnu5.filters[1].Play();
   mnu6.innerHTML = arr_msg1 + "6" + arr_msg2 + msg6; mnu6.filters[0].Play();mnu6.filters[1].Play();
   mnu7.innerHTML = arr_msg1 + "7" + arr_msg2 + msg7; mnu7.filters[0].Play();mnu7.filters[1].Play();
   mnu8.innerHTML = arr_msg1 + "8" + arr_msg2 + msg8; mnu8.filters[0].Play();mnu8.filters[1].Play();
   mnu9.innerHTML = arr_msg1 + "9" + arr_msg2 + msg9; mnu9.filters[0].Play();mnu9.filters[1].Play();
   mnu10.innerHTML = arr_msg1 + "10" + arr_msg2 + msg10; mnu10.filters[0].Play();mnu10.filters[1].Play();
   mnu11.innerHTML = arr_msg1 + "11" + arr_msg2 + msg11; mnu11.filters[0].Play();mnu11.filters[1].Play();
   mnu12.innerHTML = arr_msg1 + "12" + arr_msg2 + msg12; mnu12.filters[0].Play();mnu12.filters[1].Play();
   mnu13.innerHTML = arr_msg1 + "13" + arr_msg2 + msg13; mnu13.filters[0].Play();mnu13.filters[1].Play();
   mnu14.innerHTML = arr_msg1 + "14" + arr_msg2 + msg14; mnu14.filters[0].Play();mnu14.filters[1].Play();

   shadow.filters[0].Play();shadow.filters[1].Play();


   // show the drop down menu
   //tdDropDown.style.visibility = "visible";
   //show blank page in iframe
   //frames['iframe01'].location.href = "blank.htm"
}
//----------------------------------------------------------------------------- PLACE SHADOW
function placeShadow( t, l, h ){
   shadow.style.visibility = "visible";
   //alert(t);
   shadow.style.top = parseInt(t) + 3;
   shadow.style.left = parseInt(l) + 3;
   shadow.style.height = h * 23 + 3;
}
//----------------------------------------------------------------------------- HOME_CLICK
function home_click(){
   changeBigPic("homebig");
   frames['iframe01'].location.href = "links/home.htm";
}
//----------------------------------------------------------------------------- HOME_MOUSEOVER
function home_mouseover( ele ){  
   ele.style.color = "rgb(102,51,152)";
   arrow1.style.visibility = "visible";
   body_override = true;
   changeSmallPic("homesmall");
}
//----------------------------------------------------------------------------- HOME_MOUSEOUT
function home_mouseout( ele ){
   ele.style.color = "rgb(81,0,81)";
   arrow1.style.visibility = "hidden";
   body_override = false;
   hideSmallPic();
}
//----------------------------------------------------------------------------- ABOUT_CLICK
function about_click(){
   changeBigPic("aboutbig");
   frames['iframe01'].location.href = "links/about.htm";
}
//----------------------------------------------------------------------------- ABOUT_MOUSEOVER
function about_mouseover( ele ){
ele.style.color = "rgb(102,51,152)";
   arrow2.style.visibility = "visible"; 
   body_override = true;
   changeSmallPic("aboutsmall");
}
//----------------------------------------------------------------------------- ABOUT_MOUSEOUT
function about_mouseout( ele ){
   ele.style.color = "rgb(81,0,81)";
   arrow2.style.visibility = "hidden";
   body_override = false;
   hideSmallPic();
}
//----------------------------------------------------------------------------- CONTACT_CLICK
function contact_click(){
   changeBigPic("contactbig");
   frames['iframe01'].location.href = "links/contact.htm";
}
//----------------------------------------------------------------------------- CONTACT_MOUSEOVER
function contact_mouseover( ele ){
   ele.style.color = "rgb(102,51,152)";
   arrow3.style.visibility = "visible";
   body_override = true;
   changeSmallPic("contactsmall"); 
}
//----------------------------------------------------------------------------- CONTACT_MOUSEOUT
function contact_mouseout( ele ){
   ele.style.color = "rgb(81,0,81)";
   arrow3.style.visibility = "hidden";
   body_override = false;
   hideSmallPic();
}
//----------------------------------------------------------------------------- CAREERS_CLICK
function careers_click(){
   changeBigPic("careersbig");
   frames['iframe01'].location.href = "links/no_careers.htm";
}
//----------------------------------------------------------------------------- CAREERS_MOUSEOVER
function careers_mouseover( ele ){
   ele.style.color = "rgb(102,51,152)";
   arrow4.style.visibility = "visible"; 
   body_override = true;
   changeSmallPic("careerssmall");
}
//----------------------------------------------------------------------------- CAREES_MOUSEOUT
function careers_mouseout( ele ){
   ele.style.color = "rgb(81,0,81)";
   arrow4.style.visibility = "hidden";
   body_override = false;
   hideSmallPic();
}
//----------------------------------------------------------------------------- CHANGE SMALL PIC
function changeSmallPic( picName ){
    //set small picture
   picSmall.src = "pictures/" + picName + ".jpg";
  //show small picture
   smallpic1.style.visibility = "visible"; 
}
//----------------------------------------------------------------------------- CHANGE BIG PIC
function changeBigPic( picName ){
    //hide small picture - do not hide 
  // smallpic1.style.visibility = "hidden"; 
   //show big picture
   picBig.src = "pictures/" + picName + ".jpg";  
}
//----------------------------------------------------------------------------- HIDE SMALL PIC
function hideSmallPic(){
   smallpic1.style.visibility = "hidden";
}

//----------------------------------------------------------------------------- SPONSORS_MOUSEOVER
function sponsors_mouseOver( ele ){
   resetSponsors();
   ele.style.border = "thin solid rgb(255,221,255)";
   ele.style.zIndex = 12;

}
//----------------------------------------------------------------------------- RESET SPONSORS
function resetSponsors(){
   for( x=1; x<=8; x++ ){
      eval("sponsor" + x ).style.border = "none";
      eval("sponsor" + x ).style.zIndex = 11;
   }
}
//-----------------------------------------------------------------------------
