function ns_newsticker($items_to_fade, $ticker_time)
{
	
	tickerchange = setInterval(ns_start_ticker, $ticker_time);
	var $tickeritem = jQuery($items_to_fade);
	var i = 1;
	
	function ns_start_ticker()
	{
	$tickeritem.filter(":eq("+i+")").trigger('fade');
	i+1 < $tickeritem.length ? i++ : i = 0;	
	}
	
	  $tickeritem.each(function(i)
	  {
		  jQuery(this).bind("fade",function()
		  {	
			  $new_ticker_item = $tickeritem.filter(":eq("+i+")");
			  
			  if( $new_ticker_item.css("display") == "none" )
			  {
				  $tickeritem.filter(":visible").fadeOut(400, function()
				  {	
					  $new_ticker_item.fadeIn(400);
				  });
			  }
			  
		  });
	  });
}

function embedFlashObj(Embpath,Embwidth,Embheight)
{
var flashCode = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+Embwidth+'" height="'+Embheight+'"><param name="movie" value="'+Embpath+'" /><param name="wmode" value="transparent" /><param name="quality" value="high" /><embed src="'+Embpath+'" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+Embwidth+'" height="'+Embheight+'"></embed></object>';
document.write(flashCode) ;
}


