$(document).ready(function(){
	// apply ifixpng
    $('img[@src$=.png], #top02, #search-box').ifixpng();

	
	$("span.spoiler").hide();

	// $('<a class="reveal" href="javascript:void(0);">More &gt;&gt;</a> ').insertBefore('.spoiler');
	$("a.reveal").click(function(){
		$(this).parents("li").children("span.spoiler").fadeIn(2500);
		$(this).parents("li").children("a.reveal").fadeOut(600);
	});

	$("a.reveal").click(function(){
		$(this).parents("p").children("span.spoiler").fadeIn(2500);
		$(this).parents("p").children("a.reveal").fadeOut(600);
	});

	$("div.spoiler").hide();
		$("a.reveal").click(function(){
		$(this).parents("div").children("div.spoiler").fadeIn(2500);
		$(this).parents("div").children("a.reveal").fadeOut(600);
	});


        // used to hide/show option for sharing international vacancies
        $('#location_id').change(function() {
            
            var tmp= $('#location_id :selected').text();
            //alert(tmp);
			$('#location_text').val(tmp);
            if (tmp.toLowerCase()=='international')
            {
                $('li#international_note').show();
                $('li#international').show();
            }else{
                $('li#international_note').hide();
                $('li#international').hide();
            }
           

        });	
	
});

$(function () {
        //$.sifr({path:'/assets/fonts'});
        //$('#content h1').sifr({font:'eras'});
    });

$(function() {
		$("#datepicker").datepicker({ 
			dateFormat: 'dd-mm-yy',
			showButtonPanel: true,
			minDate: new Date(),
			maxDate: '+1m'
		});

	});