/***********************
*  Site Specific JS   *
************************/

 $(document).ready(function(){
    $("a[rel=gallery_group]").fancybox({
        'transitionIn'    : 'none',
        'transitionOut'	  : 'none',
        'titlePosition'   : 'over',
        'titleFormat'	  : function(title, currentArray, currentIndex, currentOpts) {
            return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
        },
        'padding'         : 20,
        'titleShow'       : true,
        'overlayOpacity'  : '0.5',
        'overlayColor'    : '#fff',
        'onComplete'    :	function() {
    		$("#fancybox-wrap").hover(function() {
    			$("#fancybox-title").show();
    		}, function() {
    			$("#fancybox-title").hide();
    		});
    	}
    });
    
    $("a#lightbox_img").fancybox();
    
    
    $('#footer #template_footer_menu ul').append('<div id="footer_contact"><strong>A:</strong> X Gregory Tce, Alice Springs, NT 08XX <br/><strong>P:</strong> 0845555xxx</div>');

    $('#email_display').append('<div id="res_display"><a href="#">reservations@_demo_.com.au</a></div>');
    $('#email_display').append('<div id="events_display"><a href="#">events@_demo_.com.au</a></div>');
    $('#email_display').append('<div id="jobs_display"><a href="#">jobs@_demo_.com.au</a></div>');
    
    $('#phone_display').append('<div id="main_display">08 7008 4XXX</div>');

    $('#jobs_display').append("<div id='disclaimer'>*Although we can’t respond to every applicant, a FIG TREE representative will contact you in the event your skills and interests match our particular needs. If you are responding to a specific Job Posting, please include the position's number (listed on FIG TREE’s job posting) in the subject line of your email. FIG TREE is an equal opportunity employer</div>");

    if ($('body#contact').is('*')) {
      $('form ul.zend_form input[type="submit"').attr('disabled', true);
    }

 });