';
}
if(strGET.indexOf("facebook:")!=-1){
HTTP_GET_VARS['facebook']=unescape(strGET.substr(strGET.indexOf("facebook:")+9,strGET.length));
myLeftBlock =myLeftBlock+'
';
}
function GET(v)
{
if(!HTTP_GET_VARS[v]){return 'undefined';}
return HTTP_GET_VARS[v];
}
function parseQueryFromUrl () {
var queryParamName = "q";
var search = window.location.search.substr(1);
var parts = search.split('&');
for (var i = 0; i < parts.length; i++) {
var keyvaluepair = parts[i].split('=');
if (decodeURIComponent(keyvaluepair[0]) == queryParamName) {
return decodeURIComponent(keyvaluepair[1].replace(/\+/g, ' '));
}
}
return '';
}
if(GET('q')!='undefined'){
google.load('search', '1', {language : 'de', style : google.loader.themes.ESPRESSO});
google.setOnLoadCallback(function() {
var customSearchControl = new google.search.CustomSearchControl('008950917224823281237:u1tttxlruok');
customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
var options = new google.search.DrawOptions();
options.enableSearchResultsOnly();
customSearchControl.draw('cse', options);
var queryFromUrl = parseQueryFromUrl();
if (queryFromUrl) {
customSearchControl.execute(queryFromUrl);
}
}, true);
}
function getImg(mytext){
var thumburl='';
var vidid ="";
if (mytext.indexOf("http://www.youtube.com/watch?v=")!=-1){
vidid = mytext.substring(mytext.indexOf("http://www.youtube.com/watch?v=") + 31,mytext.indexOf('endofvid')); }else {var vidid =''};
if (mytext.indexOf('src="http://www.yo'+'utube.com/embed/')!=-1){
vidid = mytext.substring(mytext.indexOf('src="http://www.yout'+'ube.com/embed/') + 34,mytext.indexOf('?'));
}
thumburl='http://i2.ytimg.com/vi/' + vidid + '/default.jpg';
if(vidid==''){
thumburl='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjK_bw1tsYXzOdJWQ6Y4YL5N-cwNPUkzM5XM6FOb3ZL5c8A9EgPat5rA-4l_yrQ1AHY1pKL7BD_AGSUJbtYYtHr1-lV_zyYrRNKlhzFdGvKQLFFcChKHezoOeUZDasxRKz28xto9K7NsPq-/s1600/novideo.png';
//return "";
}
if (mytext.indexOf("img=")!=-1){
thumburl= mytext.substring(mytext.indexOf("img=") + 4,mytext.indexOf('endofvid'));
}
return thumburl;
}
function testPlayNext() {
nextAutoPlay='true';
if((document.getElementById('playnext')).checked){
nextAutoPlay='false';
}
}
var nextAutoPlay=GET('playnext');
if(nextAutoPlay=='undefined') nextAutoPlay='true';
var playVideoIndex=0;
function goToNext() {
if(myPlaylist==''){
//document.getElementById(elmId).innerHTML = value;
if(myNextPage!=''&&nextAutoPlay=='true'){
window.location.href = myNextPage;
}else{
}
}
if(playVideoIndexytplayer.getCurrentTime()) {
stopVideo=0;
}
if(ytplayer.getDuration()-ytplayer.getCurrentTime()<2&&stopVideo==0){ window.setTimeout("goToNext();", 2000);
stopVideo=1;
}
document.getElementById("videoCurrentTime").innerHTML = Math.round(ytplayer.getDuration()-ytplayer.getCurrentTime());
//updateHTML("bytesTotal", ytplayer.getVideoBytesTotal());
//updateHTML("startBytes", ytplayer.getVideoStartBytes());
//updateHTML("bytesLoaded", ytplayer.getVideoBytesLoaded());
//updateHTML("volume", ytplayer.getVolume());
}
}
function onYouTubePlayerReady(playerId) {
document.getElementById("videoCurrentTime").innerHTML = "play";
ytplayer = document.getElementById("ytPlayer");
ytplayer.addEventListener("onStateChange", "onPlayerStateChange");
ytplayer.addEventListener("onError", "onPlayerError");
if(nextAutoPlay=='false'){
document.getElementById('playnext').checked=true;
}
//videoOut();
//window.setTimeout("videoOut();", 2000);
//Load an initial video into the player
//ytplayer.cueVideoById("ylLzyHk54Z0");
}
function createVideoThumb(pID){
var div = document.getElementById(pID);
var summ = summary_noimg;
if (div.innerHTML.indexOf("http://www.youtube.com/watch?v=")!=-1){
var vidid = div.innerHTML.substring(div.innerHTML.indexOf("http://www.youtube.com/watch?v=")+31,div.innerHTML.indexOf("endofvid"));
}else {var vidid =""};
var postlink = div.innerHTML.substring(div.innerHTML.indexOf("[postlink]")+10,div.innerHTML.indexOf("[/postlink]"));
if (vidid ==""){var imgvid ='';
}else{
var imgvid ='';
};
imgvid ='';
var summary = imgvid ;
div.innerHTML = summary;
}
function getVideoCode(myVideoLink){
if (myVideoLink.indexOf("www.clipfish.de/video/")!=-1){
tempStringVideo=myVideoLink.substring(myVideoLink.indexOf("www.clipfish.de/video/")+22,myVideoLink.length);
tempStringVideo=tempStringVideo.substring(0, myVideoLink.indexOf("/")+2);
return "";
}
if (myVideoLink.indexOf("sevenload.com")!=-1){
tempStringVideo=myVideoLink.substring(myVideoLink.indexOf("folgen/")+7,myVideoLink.length);
tempStringVideo=tempStringVideo.substring(0, tempStringVideo.indexOf("-"));
return '';
}
if (myVideoLink.indexOf("www.myvideo.de/watch/")!=-1){
tempStringVideo=myVideoLink.substring(myVideoLink.indexOf("www.myvideo.de/watch/")+21,myVideoLink.length);
tempStringVideo=tempStringVideo.substring(0, tempStringVideo.indexOf("/")+1);
return "";
}
if (myVideoLink.indexOf("www.dailymotion.com/video/")!=-1){
tempStringVideo=myVideoLink.substring(myVideoLink.indexOf("www.dailymotion.com/video/")+26,myVideoLink.length);
tempStringVideo=tempStringVideo.substring(0, tempStringVideo.indexOf("_"));
return '';
}
if (myVideoLink.indexOf("vimeo.com/")!=-1){
tempStringVideo=myVideoLink.substring(myVideoLink.indexOf("vimeo.com/")+10,myVideoLink.length);
// tempStringVideo=tempStringVideo.substring(0, tempStringVideo.indexOf("_"));
return '';
}
if (myVideoLink.indexOf("[code]")!=-1){
tempStringVideo=myVideoLink.substring(myVideoLink.indexOf("[code]")+6,myVideoLink.length);
tempStringVideo=tempStringVideo.substring(0, tempStringVideo.indexOf("[/code]"));
return tempStringVideo;
}
return "Kein Video Gefunden:";
}
function createVideoThumb2(pID){
var div = document.getElementById(pID);
var imgtag = "";
var summ = summary_noimg;
var tempString2="";
var videoLink ="";
if (div.innerHTML.indexOf("[shop]")!=-1){
tempString2=div.innerHTML.substring(div.innerHTML.indexOf("[shop]")+6,div.innerHTML.indexOf("[/shop]"));
if(GET('id')!='undefined'){
tempString2= GET('id');
}
tempString2= "http://astore.amazon.com/"+tempString2;
if(GET('page')!='undefined'){
tempString2= tempString2+"/"+GET('page');
}
div.innerHTML = '';
return ;
}
if (div.innerHTML.indexOf("[wiki]")!=-1){
tempString2=div.innerHTML.substring(div.innerHTML.indexOf("[wiki]")+6,div.innerHTML.indexOf("[/wiki]"));
tempString2= "http://"+tempString2;
if(GET('page')!='undefined'){
tempString2= tempString2+"/"+GET('page');
}
if(GET('tag')!='undefined'){
tempString2= tempString2+"/"+GET('tag');
}
div.innerHTML = '';
return ;
}
if (div.innerHTML.indexOf("http://www.youtube.com/watch?v=")!=-1){
var vidid = div.innerHTML.substring(div.innerHTML.indexOf("http://www.youtube.com/watch?v=")+31,div.innerHTML.indexOf("endofvid"));
}else {var vidid =""};
if (div.innerHTML.indexOf('src="http://www.yout'+'ube.com/embed/')!=-1){
var vidid = div.innerHTML.substring(div.innerHTML.indexOf('src="http://www.you'+'tube.com/embed/') + 34,div.innerHTML.indexOf('?'));
}
if (div.innerHTML.indexOf("http://")!=-1&&div.innerHTML.indexOf("http://")';
}
myasin = div.innerHTML.substring(div.innerHTML.indexOf("[asin]")+6,div.innerHTML.indexOf("[/asin]"));
if (myasin !=""&&myasin!="[post") {
myLeftBlock =myLeftBlock+'';
}
*/
myNextLink = div.innerHTML.substring(div.innerHTML.indexOf("[nextlink]")+10,div.innerHTML.indexOf("[/nextlink]"));
if (myNextLink=="[postlink") {
myNextLink ='';
}
if($('#nextlink').length){
if($("#nextlink").attr("href")!=''){
myNextLink = $("#nextlink").attr("href")+" "+$("#nextlink").html();
}
}
myPlaylist = div.innerHTML.substring(div.innerHTML.indexOf("[playlist]")+10,div.innerHTML.indexOf("[/playlist]"));
if (myPlaylist=="[postlink") {
myPlaylist='';
}
myPlaylistArray= myPlaylist.split(" ");
if(myPlaylistArray[0]!=''){
myPlaylistArray.unshift(vidid);
}
var embedvid = "";
if (vidid!="") {
embedvid = '';
embedvid = '