



	function clearValue(thefield){
		if (thefield.defaultValue==thefield.value)
		thefield.value = "";
	}

	function addValue(thefield) {
		if (thefield.value == "")
		thefield.value = thefield.defaultValue;
	}

var $j = jQuery.noConflict();

$j(document).ready(function() {

	$j(function() {
		$j('a.zoom').attr('title', document.title + '').attr('rel', 'gallery');
	});

	$j("a.zoom").fancybox({
		'titlePosition' : 'inside',
		'overlayColor' : '#000',
		'overlayOpacity' : 0.7
	});
	$j("#wb").fancybox({
		'autoScale' : true,
		'transitionIn' : 'none',
		'transitionOut' : 'none',
		'type' : 'iframe'
	}); 

	// guestbook
	$j("#guestbook").validate({
		rules: {
			el_bodytext: {
				required: true,
				maxlength: 1000
			}
		}
	});

	if($j('#facebook').length > 0){
		$j('#facebook').socialSharePrivacy({
			services : {
				facebook : {
				'status' : 'on',
				'perma_option': 'off',
				'dummy_img': 'http://www.frosthelm.de/common/js/privacy/dummy_facebook.png',
				'referrer_track': 'website'
				}, 
				twitter : {
				'status' : 'off',
				'perma_option': 'off',
				'dummy_img': 'http://www.frosthelm.de/common/js/privacy/dummy_twitter.png'
				},
				gplus : {
				'status' : 'off',
				'perma_option': 'off',
				'dummy_img': 'http://www.frosthelm.de/common/js/privacy/dummy_gplus.png'
				}
			},
			'cookie_domain' : 'frosthelm.de',
			'css_path': 'http://www.frosthelm.de/common/js/privacy/socialshareprivacy.css'
		}); 
	}
});




