// Add your background styles to this list. 
var setOfRandomClassNames = new Array("patient-1", "patient-2", "patient-3");
var randomCSS = "body, #container"; 



// Document Ready
$(document).ready(function() { 
       
		// Top Navigation and Drop Downs using SuperFish
    	$("#top-nav")
        .superfish({
            animation : { opacity:"show"}
    });	
		
		//Before & after Gallery    
		$('#gallery a').lightBox();

		//PNG fix for IE 
		$(document).pngFix( );

	


		// Open a link in a new window
		$("a[href$='.pdf'], ._blank").click(function(){
			var newwindow = window.open(this.href, '_blank');
			newwindow.focus();
			return false;
		});
});

// Document Ready
$(document).ready(function(){
//		jQuery('#siteMap').accordion({
//			header: 'div.titleSM',						 
//			animated: 'easeslide',
//			alwaysOpen: false,
//			navigation: true,
//			active: false
//		});
    $('.jcarousel-skin-tango').jcarousel();

		$('#navigation').accordion({
			active: false,
			header: '.head',
			navigation: true,
			event: 'mouseover',
			fillSpace: false,
			animated: 'easeslide'
		});


		//
		// bind to change event of select to control first and seconds accordion
		// similar to tab's plugin triggerTab(), without an extra method
		var accordions = jQuery('#navigation');
		
		$('#switch select').change(function() {
			accordions.accordion("activate", this.selectedIndex-1 );
		});
		$('#close').click(function() {
			accordions.accordion("activate", -1);
		});
		$('#switch2').change(function() {
			accordions.accordion("activate", this.value);
		});
		$('#enable').click(function() {
			accordions.accordion("enable");
		});
		$('#disable').click(function() {
			accordions.accordion("disable");
		});
		$('#remove').click(function() {
			accordions.accordion("destroy");
			wizardButtons.unbind("click");
		});
		});

