//  '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
//  '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
//  '' 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			= "180px" ;
	var sl_news_height			= "420px" ;
	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 ;
 }

//  '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
//  '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
//  '' 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()
	   } 
  }
