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 load_swf(swfname,x,y)
{
	document.writeln('<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="'+x+'" height="'+y+'">');
	document.writeln('<param name="movie" value="'+swfname+'">');
	document.writeln('<param name="wmode" value="transparent">');
	document.writeln('<param name="quality" value="high">');
	document.writeln('<embed src="'+swfname+'" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+x+'" height="'+y+'"></embed>');
	document.writeln('</object>');
}

function load_swf_vanoce(swfname,x,y,url,num)
{
	document.writeln('<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="'+x+'" height="'+y+'">');
	document.writeln('<param name="movie" value="'+swfname+'">');
	document.writeln('<param name="wmode" value="transparent">');
	document.writeln('<param name="flashVars" value="clickthru=' + escape(url) + '&num=' + num + '">');
	document.writeln('<param name="quality" value="high">');
	document.writeln('<embed src="'+swfname+'" flashvars="clickthru=' + escape(url) + '&num=' + num + '" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+x+'" height="'+y+'"></embed>');
	document.writeln('</object>');
}


    function showmap(cx,cy,title)
    {
      if (GBrowserIsCompatible())
      {
	document.getElementById("mapboxtitle").innerHTML=title;
	var map = new GMap2(document.getElementById("rpmap"), {size: new GSize(600,400)});
	map.addControl(new GLargeMapControl());
	map.addControl(new GMapTypeControl());
	var point = new GLatLng(cx,cy);
	var marker = new GMarker(point);
	map.addOverlay(marker);
	map.setCenter(new GLatLng(cx,cy),15);
	$('#mapbox').jOverlay();
      }
    }


