$().ready(function() {
		/* Placeholder fallback */
	function hasPlaceholderSupport() {
	  var input = document.createElement('input');
	  return ('placeholder' in input);
	}

	// Initialize lightbox
	$('a[rel*=lightbox], [href*=.jpg], [href*=.png], [href*=.gif]').lightBox({
	imageLoading: 'http://www.spinit.se/CommonResources/Templates/Images/lightbox-btn-loading.gif',
	imageBtnClose: 'http://www.spinit.se/CommonResources/Templates/Images/lightbox-btn-close.gif',
	imageBtnPrev: 'http://www.spinit.se/CommonResources/Templates/Images/lightbox-btn-prev.gif',
	imageBtnNext: 'http://www.spinit.se/CommonResources/Templates/Images/lightbox-btn-next.gif'
	});


	if(!hasPlaceholderSupport()) {
		$('input[type=text]').val(function(){
		if($(this).attr('placeholder')) {
			return $(this).attr('placeholder');
		}
		});

	
		$('input[type=text]').focus(function() {
			if($(this).val($(this).attr('placeholder'))) { $(this).val(''); }
		});
		$('input[type=text]').blur(function() {
			if($(this).attr('placeholder')) {
				if($(this).val('')) { $(this).val($(this).attr('placeholder')); }
			}
		});
	}
});
