function initMenu(){
	var nodes = document.getElementById("nav").getElementsByTagName("li");
	for (var i=0; i<nodes.length; i++)
	{
		nodes[i].onmouseover = function()
		{
			this.className += " hover";
		}
		nodes[i].onmouseout = function()
		{
			this.className = this.className.replace(" hover", "");
		}
	}
}
if (document.all && !window.opera) attachEvent("onload", initMenu);

var timer;
var speed=5000;

$(document).ready(function(){
		
				image1();
				
				$('#sales_button').click(function() {
											
					  $('#general_form').css('display','none');
					  $('#sales_form').css('display','inherit');
					  $('#general_button').css('font-weight','normal');	
					  $('#sales_button').css('font-weight','bold');	
					});
				
				$('#general_button').click(function() {
											
					  $('#sales_form').css('display','none');
					  $('#general_form').css('display','inherit');
				$('#general_button').css('font-weight','bold');	
					  $('#sales_button').css('font-weight','normal');	
					});
		});

function image1(){

$('#banner_5').fadeOut('normal')
$('#banner_1').fadeIn('normal');

clearTimeout(timer);
timer = setTimeout(eval("image2"),speed);
}
function image2(){
	$('#banner_2').fadeIn('normal');
	$('#banner_1').fadeOut('normal');

clearTimeout(timer);
timer = setTimeout(eval("image3"),speed);
}
function image3(){
	$('#banner_3').fadeIn('normal');
	$('#banner_2').fadeOut('normal');

clearTimeout(timer);
timer = setTimeout(eval("image4"),speed);
}
function image4(){
	$('#banner_4').fadeIn('normal');
	$('#banner_3').fadeOut('normal');

clearTimeout(timer);
timer = setTimeout(eval("image5"),speed);
}
function image5(){
	$('#banner_5').fadeIn('normal');
	$('#banner_4').fadeOut('normal');

clearTimeout(timer);
timer = setTimeout(eval("image1"),speed);
}
function show_confirm()
{
	$('#conf_message').fadeIn(1000);
}
