$(document).ready(function(){

$.getScript("fileadmin/basic/js/s3Slider.js", function(){
 $('#image').s3Slider({
            timeOut: 12000
        });
  });





$('a, input[type=image]').focus(function() { this.blur(); });
$('a.fancybox, .image a[rel*="lightbox"]').fancybox({
					'transitionIn'	: 'elastic',
					'transitionOut'	: 'elastic',
					'titlePosition'	: 'inside',
					'padding'			: 0,
					'overlayColor'	: '#ffffff',
					'overlayOpacity': 0.1,
					'titleShow'		: true
			});




if(!$.support.placeholder) { 
		var active = document.activeElement;
		$(':text').focus(function () {
			if ($(this).attr('placeholder') != '' && $(this).val() == $(this).attr('placeholder')) {
				$(this).val('').removeClass('hasPlaceholder');
			}
		}).blur(function () {
			if ($(this).attr('placeholder') != '' && ($(this).val() == '' || $(this).val() == $(this).attr('placeholder'))) {
				$(this).val($(this).attr('placeholder')).addClass('hasPlaceholder');
			}
		});
		$(':text').blur();
		$(active).focus();
		$('form').submit(function () {
			$(this).find('.hasPlaceholder').each(function() { $(this).val(''); });
		});
	}


});

		
	
	
	

