/*******************************************************************************

  CSS on Sails Framework
  Title: PASubway
  Author: XHTMLized (http://www.xhtmlized.com/)
  Date: November 2010

*******************************************************************************/

$('.location-list h2').click(function() {
  $(this).siblings('.location').toggle('slow');
});

$(document).ready(function() {

	//
	$('input[type="text"]').each(function() {
		var defaultValue = this.value;
		$(this).focus(function() {
			if(this.value == defaultValue) {
				this.value = '';
			}
		});
		$(this).blur(function() {
			if(this.value == '') {
				this.value = defaultValue;
			}
		});
	});

	//
	$('#content ol li').wrapInner('<span />')

	//
	if (($.browser.mozilla)){

		//
		$('html').addClass('firefox');

	}

	//
	if (($.browser.opera)){

		//
		$('html').addClass('opera');

	}

	//
	if (($.browser.msie) && ($.browser.version == "9.0")){

		//
		$('html').addClass('ie9');

	}

	//
	if (($.browser.msie) && ($.browser.version == "8.0")){

		//
		$('html').addClass('ie8');

	}

	//
	if (($.browser.msie) && ($.browser.version == "7.0")){

		//
		$('html').addClass('ie7');

	}

});

$(function() {
  $('.header-wrapper').each(function() {
    PIE.attach(this);
  });
});

