$(document).ready(function(){
$('a[href$="send-to-a-friend.php"]').click(function() {
	window.open($(this).attr('href'), 's2f', 'width=451,height=550,location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no');; 
	return false;
});

	$("#banner a").addClass("cursorPointer");
if($('div.contentListItem')) {
	$('div.contentListItem:odd').addClass('contentListItemOdd');
}

if($('div.contentListItem')) {
	$('div.contentListItem:even').addClass('contentListItemEven');
}

if($('div.contentListItem2')) {
	$('div.contentListItem2:odd').addClass('contentListItem2Odd');
}

if($('div.contentListItem2')) {
	$('div.contentListItem2:even').addClass('contentListItem2Even');
}

if($('div.presseMainContentItem')) {
	$('div.presseMainContentItem:odd').addClass('presseMainContentItemOdd');
}
/*
if($('a[href$="send-to-a-friend.php"]')) {
	var onclickEvent = "window.open('" + $('a[href$="send-to-a-friend.php"]').attr('href') + "', 's2f', 'width=451,height=550,location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no'); return false;"; 
	var onclickEvent = "window.open('/de/send-to-a-friend.php', 's2f', 'width=451,height=550,location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no'); return false;"; 
	$('a[href$="send-to-a-friend.php"]').attr('onclick','alert(\'test\');')
	$('a[href$="send-to-a-friend.php"]').attr('href','#')
}
*/
	var inputElement = document.createElement('input');

	if(!('placeholder' in inputElement)) {	// detect if browser understands the "placeholder" attribute
		$('input[placeholder]').each(function(n,element){
			var placeholderValue = $(this).attr('placeholder');
			$(this).val(placeholderValue);
			$(this).addClass('placeholderValue');
		});
		
		$('input[placeholder]').focus(function() {
			if($(this).val() == $(this).attr('placeholder')) {
				$(this).val('');
				$(this).removeClass('placeholderValue');
			}
		});
		$('input[placeholder]').blur(function() {
			if($(this).val().length == 0) {
				$(this).val($(this).attr('placeholder'));
				$(this).addClass('placeholderValue');
			}
		});
	}

});

