

$(document).ready(function(){ 
						 
		  $("#language").click(function(){
			if($("#topslide2").css('height') == '0px'){
			  $("#topslide2").animate({height: '100px'} , 300);
			  $('#language').animate({marginTop: '213px'} , 300);
			  $('#language').css('background-image','url(custom/templates/resources.v42009V2/images/languageup.png)');
			  $("#topslide2").corner("bl 15px");
			}
			else{
			  $("#topslide2").animate({height: '0px'}, 300);
			  $('#language').animate({marginTop: '114px'} , 300);
			  $('#language').css('background-image','url(custom/templates/resources.v42009V2/images/language.png)');
			}		 
		  });
						 
		  $("#customer").click(function(){
			if($("#topslide1").css('height') == '0px'){
			  $("#topslide1").animate({height: '190px'} , 300);
			  $('#customer').animate({marginTop: '303px'} , 300);
			  $('#customer').css('background-image','url(custom/templates/resources.v42009V2/images/customerup.png)');
			  $("#topslide1").corner("br 15px");
			}
			else{
			  $("#topslide1").animate({height: '0px'}, 300);
			  $('#customer').animate({marginTop: '114px'} , 300);
			  $('#customer').css('background-image','url(custom/templates/resources.v42009V2/images/customer.png)');
			}		 
		  });
});

if (stepcarousel)
{
	stepcarousel.setup({
                    galleryid: 'mygallery', //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:5000},
                    panelbehavior: {speed:500, wraparound:true, persist:true},
                    defaultbuttons: {enable: false, moveby: 1, leftnav: ['images/blank.gif', -60, 0], rightnav: ['images/blank.gif', 4, 0]},
                    statusvars: ['statusA', 'statusB', 'statusC'], //register 3 variables that contain current panel (start), current panel (last), and total panels
                    contenttype: ['inline'] //content setting ['inline'] or ['external', 'path_to_external_file']
                });
}			
		