// Document Ready
var setOfRandomClassNames = new Array("");
var randomCSS = ""; 

jQuery(document).ready(function() { 
								$("#featureCarousel").featureCarousel({
	        // include options like this:
	        // (use quotes only for string values, and no trailing comma after last option)
	        // option: value,
	        // option: value
	    });
				 
				 $.Lightbox.construct({
				"show_linkback":	true,
				"baseurl": "http://www.drangelchik.com",
				"text": {
					// For translating
					"image":		"Image",
					"of":			"of",
					"close":		"Close X",
					"closeInfo":	"You can also click anywhere outside the image to close.",
					"download":		"Download.",
					"help": {
						"close":	"Click to close",
						"interact":	""
					},
					"about": {
						"text": 	"Phoenix Cosmetic Surgery Gallery",
						"title":	"Click here to return to the main gallery.",
						"link":		"http://www.doctorangelchik.com/plastic-surgery-results.html"
					}
				}
			});
				$('a.gallery:has(img)').lightbox();				
        // superfish menus
		jQuery('ul.sf-menu').superfish({ 
            delay:       1000, // one second delay on mouseout 
            animation:   {opacity:'show',height:'show'},  // fade-in and slide-down animation 
            speed:       'fast',  // faster animation speed 
            autoArrows:  false, // disable generation of arrow mark-up 
            dropShadows: false  // disable drop shadows 
        }); 
		// open a link in a new window
		jQuery("a[href$='.pdf'], ._blank").click(function(){
			var newwindow = window.open(this.href, '_blank');
			newwindow.focus();
			return false;
		});	
		
		
		$('.rollOverImageLink:enabled').hover(function()
        {
            $(this).find('.overImage').fadeIn('slow');
        },
        function()
        {
            $(this).find('.overImage').fadeOut('slow');
        }
    );
    
    $('.rollOverImageLink:disabled').find('.baseImage').hide();
    $('.rollOverImageLink:disabled').find('.disabledImage').show();
	
	});

jQuery.extend(jQuery.expr[":"], {
        enabled : function(a){ return !jQuery.attr(a, 'disabled'); },
        disabled : function(a){ return jQuery.attr(a, "disabled"); }
});


jQuery.fn.extend({
    disable : function() {
        return this.each(function(){ jQuery(this).attr("disabled", true); });
    },
    enable : function() {
        return this.each(function(){ jQuery(this).removeAttr("disabled"); });
    },
    toggleDisabled : function() {
        return this.each(function(){
            $(this)[$(this).is(":enabled") ? "disable" : "enable"]();
        });
    }

		
		
		
		
		

});



