$(document).ready(function(){
	
	
	$("#slider").easySlider({
		auto: true, 
		continuous: true,
		pause: 7000
	});
	
	$("#slider2").easySlider({
		auto: true, 
		continuous: true,
		nextId: "slider2next",
		prevId: "slider2prev",
		pause: 5000
	});
	
	$("#slider3").easySlider({
		auto: true, 
		continuous: true,
		nextId: "slider3next",
		prevId: "slider3prev",
		pause: 4000
	});
	
	
	//dropdown submenu fix for chrome/safari
	if ($.browser.webkit == true) {
	$(".m1").css({'margin-top': -34+'px'});
	//alert("hello");
}


	
});


stepcarousel.setup({
	galleryid: 'mygallery1', //id of carousel DIV
	beltclass: 'belt', //class of inner "belt" DIV containing all the panel DIVs
	panelclass: 'panel', //class of panel DIVs each holding content
	autostep: {enable:true, moveby:1, pause:6000},
	panelbehavior: {speed:100, wraparound:true, persist:false},
	defaultbuttons: {enable: false, moveby: 1, leftnav: ['../images/arrow_right.gif', -5, 80], rightnav: ['../images/arrow_left.gif', -20, 80]},
	statusvars: ['statusA', 'statusB', 'statusC'], //register 3 variables that contain current panel (start), current panel (last), and total panels
	contenttype: ['inline'] //content setting ['inline'] or ['ajax', 'path_to_external_file']
})


stepcarousel.setup({
	galleryid: 'mygallery2', //id of carousel DIV
	beltclass: 'belt', //class of inner "belt" DIV containing all the panel DIVs
	panelclass: 'panel', //class of panel DIVs each holding content
	autostep: {enable:true, moveby:1, pause:7000},
	panelbehavior: {speed:100, wraparound:true, persist:false},
	defaultbuttons: {enable: false, moveby: 1, leftnav: ['../images/arrow_right.gif', -5, 80], rightnav: ['../images/arrow_left.gif', -20, 80]},
	statusvars: ['statusA', 'statusB', 'statusC'], //register 3 variables that contain current panel (start), current panel (last), and total panels
	contenttype: ['inline'] //content setting ['inline'] or ['ajax', 'path_to_external_file']
})


$(".ddsubmenustyle li:last-child").addClass("last_li");



$(".mainMenu td:last-child").css({'display':'none','padding':0});
$(".mainMenu tr.first td:last-child").css({'display':'none','padding':0});



