$(document).ready(function(){
	
	$('.fancybox').fancybox({
			 overlayOpacity : 0.5			
	});
	
	//$(".stripeMe tr").mouseover(function() {$(this).addClass("table_row_over");}).mouseout(function() {$(this).removeClass("table_row_over");});
	$(".stripeMe tr:even").addClass("table_row_alt");

	
	//$("ul.stripeMe li").mouseover(function() {$(this).addClass("table_row_over");}).mouseout(function() {$(this).removeClass("table_row_over");});
	//$("ul.stripeMe li:even").addClass("table_row_alt");	

    $('ul.sf-menu').superfish({ 
        delay:       1000,                             
        animation:   {opacity:'show'},                
        speed:       'fast',                          
        autoArrows:  false,                           
        dropShadows: false
                         
    }); 	
/*
    $('#two-col_left-thin_leftColumn').css('min-height','600')
    
	$('#photos').galleryView({
		panel_width: 764,
		panel_height: 450,
		frame_width: 153,
		frame_height: 100,
		border: 'none',
		background_color: '#222'
	});    
	*/
	//delete confirm
	/*
	$("a.delete").click(function(e){
	    e.preventDefault();
	    var href = $(this).attr('href');
	    custom_confirm('This item will be permanently deleted and cannot be recovered. Are you sure?',
	        function(){
	                location.href = href;
	        }
	    ); 
	});
	
*/		
	        })	;

/*

	jQuery(function($){ 
		
		var e = $("#message"); 
		e.show("slide", {direction: "up" }, 1000); 
		e.queue(function(){ 
		  setTimeout(function(){ 
		    e.dequeue(); 
		  }, 2000 ); 
		}); 
		e.hide("slide", { direction: "up" }, 1000); 
	
	});


});

// Function to add the comment to the page
// Function to add the comment to the page
function addLoader() { 
	
    $("#ajax_response").html('');
    $("#ajax_response").show();
	$("#ajax_loader").html('<img src="/images/ajax_loader.gif" />');
       
} 
function removeLoader() { 
    $("#ajax_response").html("<img src='/images/ajax_response_success.gif' />");
    $("#ajax_response").fadeOut(3000);
    $("#ajax_loader").html('');
      
} 

function custom_confirm(prompt, action, title){
    if (title === undefined) title = "Are you sure?";
    $("#wrapper").append('<div id="dialog" title="' + title + '">' + prompt + '</div>');
    $("#dialog").dialog({width: 300, 
    					 modal: true,
    			
						 resizable: true, 
						 buttons: {'Proceed': function(){ $(this).dialog('close'); action(); }, Cancel: function(){ $(this).dialog('close'); }}, close: function(ev, ui) { $(this).remove();}});
} 
	*/  


