// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults

//Location Changer on Dashboard
$(document).ready(function(){

	//Fallback for Browsers, where JavaScript is disabled
	jQuery('#location-changer').hide();
	
	jQuery('.location-change').click(function(){
		jQuery('#location-changer').slideToggle(200);
	});
	
/********* UNOBTRUSIVE AJAX PAGINATION ************************
  // the element in which we will observe all clicks and capture
  // ones originating from pagination links
  var container = $(document.body)

  if (container) {
    var img = new Image
    img.src = '/images/spinner.gif'

    function createSpinner() {
      new Element('img', { src: img.src, 'class': 'spinner' })
    }

    container.observe('click', function(e) {
      var el = e.element()
      if (el.match('.paginate a')) {
        el.up('.paginate').insert(createSpinner())
        new Ajax.Request(el.href, { method: 'get' })
        e.stop()
      }
    })
  }
*****/
	var flashTimer = null;
	
	flashTimer = window.setTimeout(function(){
		jQuery("#flash_notice, #flash_error").fadeOut();
	}, 2500);
jQuery('.footernav.no-background li:last, .footernav-en.no-background li:last').hide();

});




