/*
 * General Javascript
 */
jQuery(document).ready(function() {
	jQuery("#start-video").bind("click", function() {
		jQuery("#videoplayer").show();
	});
});

/* 
 * Redirects the page to the specific page, defined through the button that is pressed
 */
function socialCall(button) {
	switch(button) {
	case 'mail': window.location.href = url  + 'tellafriend'; break;
	case 'facebook': window.open('http://www.facebook.com/sharer.php?u=http://www.bibelbrot.com','Facebook','toolbar=yes, location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,copyhistory=yes,resizable=yes'); break;
	case 'digg': window.open('http://digg.com/submit?url=http://www.bibelbrot.at&title=Bibelbrot&media=videos&topic=lifestyle','Digg','toolbar=yes, location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,copyhistory=yes,resizable=yes'); break;
	case 'delicious': window.open('http://delicious.com/save?url=http://www.bibelbrot.com','Delicious','toolbar=yes, location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,copyhistory=yes,resizable=yes'); break;
	case 'twitter': window.open('http://www.twitter.com/home?status=Brot+wie+in+der+Bibel+beschrieben+http://www.bibelbrot.com','Twitter','toolbar=yes, location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,copyhistory=yes,resizable=yes'); break;
	}
}

/*
 * Closes the video window
 */
function closeWindow() { 
	jQuery("#videoplayer").fadeOut("slow");
} 

function highlight(id) { 
	jQuery(id).css("border","1px solid #E29B39");
}

function clear(id) {
	jQuery(id).css("border","1px solid #ECE6D8");
}