window.onload = function()
{
	ddown();
}	
function noError()
{return true;}
window.onerror = noError;
function slideSwitch() 
{
	 

		var $active = jQuery('#bannerbox IMG.active');
		if ( $active.length == 0 ) $active = jQuery('#bannerbox IMG:last');
		var $next =  $active.next().length ? $active.next()
			: jQuery('#bannerbox IMG:first');
		$active.addClass('last-active');
		$next.css({opacity: 0.0})
			.addClass('active')
			.animate({opacity: 1.0}, 1000, function() {
				$active.removeClass('active last-active');
		 });
}
jQuery(function()
{
	setInterval( "slideSwitch()", 5000 );
});		
/*dropdown*/
function ddown(id) {
var xx = document.getElementById(id);
	for (var mnu = 1; mnu<=10; mnu++) 
	{
		if (document.getElementById('smenu'+mnu)) {document.getElementById('smenu'+mnu).style.display='none';}
	}
	if (xx) 
	{		
		xx.style.display='block';		
	}
}
