// media.js
// Campact Media funktions
// (c) 2008 by Klaus Kappel



// uses an Image as a a placeholder for embedded movies
// and loads the movie in background to reduce traffic
// (c) Dominik Buse 2008


function loadPlayer(vid) {
	var mydiv = document.getElementById("moviebox");
if (vid) {
	sc1 = '<embed src="http://blip.tv/play/';
	sc2 = '" type="application/x-shockwave-flash" width="425" height="286" allowscriptaccess="always" allowfullscreen="true"></embed>';
	mydiv.innerHTML = sc1 + vid + sc2;
}
else
{
	mydiv.innerHTML = '<embed src="http://blip.tv/play/gccM0qAUj4dU" type="application/x-shockwave-flash" width="425" height="286" allowscriptaccess="always" allowfullscreen="true"></embed>'
}
}

// Erweiterte Version für youtube ih 08/2009

function loadPlayeryoutube(vid) {
	var mydiv = document.getElementById("movieboxyoutube");
if (vid) {
	sc1 = '<embed src="http://www.youtube.com/v/';
	sc2 = '=de&fs=1&autoplay=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="286"></embed>';
	mydiv.innerHTML = sc1 + vid + sc2;
}
else
{
	mydiv.innerHTML = '<embed src="http://blip.tv/play/gccM0qAUj4dU" type="application/x-shockwave-flash" width="425" height="286" allowscriptaccess="always" allowfullscreen="true"></embed>'
}
}

function bookmark(social_url) {
    var our_url = location.href
    var title = document.title
    var submit_url = social_url + our_url + "&title=" +     title;
    window.open (submit_url,"");
}


