// CSW Verlag jQuery;


// Functions

// Value Change
$.fn.valueChange = function() {
	return this.focus(function() {
		if (this.value == this.defaultValue) {
			this.value = '';
			$(this).css({color: '#333'});
		}
	}).blur(function() {
		if (!this.value.length) {
			this.value = this.defaultValue;
			$(this).css({color: '#aaa'});
		}
	});
};


// Twitter

// document ready startup

$(document).ready(function() {

	$('#fSearch label').hide();
	
	$('input.jq-valueChange').valueChange();
	
	// Fancybox
	/*$('a.fancy').fancybox({
		'hideOnContentClick': true,
		'zoomSpeedIn': 200,
		'zoomSpeedOut': 200,
		'overlayShow': true 
	});*/
	
	$("#twitter").getTwitter({
		userName: "cswverlag",
		numTweets: 1,
		loaderText: "Lade Tweets …",
		slideIn: false,
		slideDuration: 750,
		showHeading: true,
		headingText: "",
		showProfileLink: true,
		showTimestamp: true
	});
	
	$('#language-switch a.act').click(function(e) {
		e.preventDefault();
	})
	
	// deal with agb and widerruf in final order process step
	/*
	$('a#modal_agb').
	
	$('a#modal_widerruf').
	*/
});


