    $(document).ready(function() {
        $('ul.udm').superfish({
            delay:       1000,                            // one second delay on mouseout
            animation:   {opacity:'show',height:'show'},  // fade-in and slide-down animation
            speed:       'normal',                          // faster animation speed
            autoArrows:  true,                           // disable generation of arrow mark-up
            dropShadows: true                            // disable drop shadows
        });
        
        $('ul.leftudm').superfish({
            delay:       1000,                            // one second delay on mouseout
            animation:   {opacity:'show',height:'show'},  // fade-in and slide-down animation
            speed:       'normal',                          // faster animation speed
            autoArrows:  false,                           // disable generation of arrow mark-up
            dropShadows: false                            // disable drop shadows
        });
        
        $(".btn-slide").click(function(){
			$("#panel").slideToggle("slow");
			$(this).toggleClass("active"); return false;
		});
   
		$(".btn-slide1").click(function(){
			$("#panel1").slideToggle("slow");
			$(this).toggleClass("active1"); return false;
		});
	
		$(".btn-slide2").click(function(){
			$("#panel2").slideToggle("slow");
			$(this).toggleClass("active2"); return false;
		});
	
		$(".btn-slide3").click(function(){
			$("#panel3").slideToggle("slow");
			$(this).toggleClass("active3"); return false;
		});
	
		$(".btn-slide4").click(function(){
			$("#panel4").slideToggle("slow");
			$(this).toggleClass("active4"); return false;
		});
	
   		$(".btn-slide5").click(function(){
			$("#panel5").slideToggle("slow");
			$(this).toggleClass("active5"); return false;
		});
   
		$(".btn-slide6").click(function(){
			$("#panel6").slideToggle("slow");
			$(this).toggleClass("active6"); return false;
		});
	
		$(".btn-slide7").click(function(){
			$("#panel7").slideToggle("slow");
			$(this).toggleClass("active7"); return false;
		});
	
		$(".btn-slide8").click(function(){
			$("#panel8").slideToggle("slow");
			$(this).toggleClass("active8"); return false;
		});
    
		$(".btn-slide9").click(function(){
			$("#panel9").slideToggle("slow");
			$(this).toggleClass("active9"); return false;
		});
	
		$(".btn-slide10").click(function(){
			$("#panel10").slideToggle("slow");
			$(this).toggleClass("active10"); return false;
		});
	
		$(".btn-slide11").click(function(){
			$("#panel11").slideToggle("slow");
			$(this).toggleClass("active11"); return false;
		});
	
		$(".btn-slide12").click(function(){
			$("#panel12").slideToggle("slow");
			$(this).toggleClass("active12"); return false;
		});
	
		$(".btn-slide13").click(function(){
			$("#panel13").slideToggle("slow");
			$(this).toggleClass("active13"); return false;
		});
	
		$(".btn-slide14").click(function(){
			$("#panel14").slideToggle("slow");
			$(this).toggleClass("active14"); return false;
		});
		
		
		$('#slideshow').after('<div id="nav"></div>').cycle({
			fx: 'fade',
			speed: 500,
			timeout: 10000, 
			pager:  '#nav',
			cleartype: true,
			cleartypeNoBg: true, 
   			pagerEvent: 'mouseover'
		});
		
		$('#testimonial-holder').cycle({
			fx: 'fade',
			speed: 500,
			timeout: 10000, 
			cleartype: true,
			cleartypeNoBg: true,
			pause: true
		});
		
		$('#nav').wrapInner('<ul id="navoptions"></ul>');
		
		$("#nav a:nth-child(1)").wrap('<li class="navbtn1"></li>').addClass("sb1").html("&nbsp;");
		$("#nav a:nth-child(2)").wrap('<li class="navbtn2"></li>').addClass("sb2").html("&nbsp;");
		$("#nav a:nth-child(3)").wrap('<li class="navbtn3"></li>').addClass("sb3").html("&nbsp;");
		$("#nav a:nth-child(4)").wrap('<li class="navbtn4"></li>').addClass("sb4").html("&nbsp;");
		$("#nav a:nth-child(5)").wrap('<li class="navbtn5"></li>').addClass("sb5").html("&nbsp;");
		$("#nav a:nth-child(6)").wrap('<li class="navbtn6"></li>').addClass("sb6").html("&nbsp;");
	
		$("#nav a").wrapInner('<span class="hide"></span>');
		
		$('#modalClose').append('<a href="#" class="closeme">Close</a>');
		
		$('.closeme').click(function () {
			$.closeDOMWindow();
		});

		$('#formshow').css({"display" : "none"});
	
		$('.formopen').openDOMWindow({ 
			eventType:'click', 
			loader:1, 
			loaderHeight:16, 
			loaderWidth:17,
			width: 264,
			height: 380
		});
		
		
    });
    
 
