function BoxHover(o,bHover,bKeepBG)
{
  function out(id)
  {
    var o = document.getElementById(id+"_top");
    if (o) o.className = o.className.substr(0,o.className.indexOf(" "));
    o = document.getElementById(id+"_img0");
    if (o) o.style.display="";
    o = document.getElementById(id+"_img1");
    if (o) o.style.display="none";
    o = document.getElementById(id+"");
    if (o) o.style.backgroundPosition="0px 0px";
  }
  if (!window.out) window.out = out;
  if (bHover) {
    if (o.bHover == 2) return;
    o.bHover = bHover;
    if (o.timer) clearTimeout(o.timer);
    var id =o.id;
    o = document.getElementById(id+"_top");
    if(o) o.className += " hover";
    o = document.getElementById(id+"_img0");
    if (o) o.style.display="none";
    o = document.getElementById(id+"_img1");
    if (o) o.style.display="";
    o = document.getElementById(id+"");
    if (o && !bKeepBG) o.style.backgroundPosition="185px 0px";
  } else if (o.bHover != 2) o.timer = setTimeout("out('"+o.id+"')",10);
}


//  '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
//  '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
//  '' Name        : set_preferences()  
//	'' Inputs      : N/A
//  '' Description : sets the default values of sliding news
//	'' Owner       : SEYKAY(seyit_rock@hotmail.com)
//	'' DATE        : 10.10.2001 
//	'' Modified By : 
//	'' Important   : This function must be called from body onload
//  '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
//  '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
    function set_preferences(){
//  ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''		
//   you can change the propertes given below
      var sl_news_dir          = "up" ;
      var sl_news_width        = "115px" ;
      var sl_news_height       = "150px" ;
      var sl_news_brd_color    = "green" ;
      var sl_news_brd_style    = "none" ;
      var sl_news_scrll_amount = 1 ; //Specifies the number of pixels the text scrolls between each subsequent drawing of the sliding news
      var sl_news_scrll_delay  = 100 ;//Specifies the speed of the sliding news scroll, in milliseconds 	
      var sl_news_scrll_beh    = "slide" ;											
      var ptImage              = "" ; //path of image directory if needed
     // var sl_news_up_down      = "url(" + ptImage + "up.gif)" ;
     // var sl_news_on_off       = "url(" + ptImage + "online.gif)" ;			

//Do not exceed the following line
//  ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''		
      var  objMar = document.getElementById("marx") ;
      objMar.direction      = sl_news_dir ;
      objMar.style.width    = sl_news_width  ;
      objMar.style.height   = sl_news_height ;
      objMar.style.BEHAVIOR = sl_news_scrll_beh ;
      objMar.scrollDelay    = sl_news_scrll_delay ;	
      objMar.scrollAmount   = sl_news_scrll_amount ;								
			objMar.style.borderColor = sl_news_brd_color ;
      objMar.style.borderStyle = sl_news_brd_style ;
      //document.all('up_down').style.backgroundImage = sl_news_up_down;
      //document.all('btnstat').style.backgroundImage =	sl_news_on_off;
		}
//  '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
//  '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
//  '' Name        : up_down(objMar)  
//	'' Inputs      : objMar; marquee object
//  '' Description : change the sliding news direction (up or down)
//	'' Owner       : SEYKAY(seyit_rock@hotmail.com)
//	'' DATE        : 10.10.2001 
//	'' Modified By : 
//  '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
//  '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
		 
	 function up_down(objMar){
  	 if ((document.all('up_down').style.backgroundImage) == "url(up.gif)") {
	      document.all('up_down').style.backgroundImage = "url(down.gif)"
	 			objMar.direction = "down";
     }else{
        document.all('up_down').style.backgroundImage = "url(up.gif)"
	 			objMar.direction = "up";
     } 
   }
//  '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
//  '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
//  '' Name        : chgstat
//	'' Inputs      : N/A
//  '' Description : changes the status of the sliding news (on or off)
//	'' Owner       : SEYKAY (seyit_rock@hotmail.com)
//	'' DATE        : 10.10.2001 
//	'' Modified By : 
//  '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
//  '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
   function chgStat(){
     if ((document.all('btnstat').style.backgroundImage)== "url(offline.gif)") {
	      document.all('btnstat').style.backgroundImage = "url(online.gif)"
	      document.all('marx').start()
     }else{
        document.all('btnstat').style.backgroundImage = "url(offline.gif)"
	      document.all('marx').stop()
	   } 
  }
