';
}
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='';
if (mytext.indexOf("http://www.youtube.com/watch?v=")!=-1){
var vidid = mytext.substring(mytext.indexOf("http://www.youtube.com/watch?v=") + 31,mytext.indexOf('endofvid')); }else {var vidid =''};
thumburl='http://i2.ytimg.com/vi/' + vidid + '/default.jpg';
if(vidid==''){
thumburl='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_OFMUpoiGTBMnL_yJipSiXtbA7YA2_Fw7NQ7YsKzmjWxlfqMlSeNI4-WF1pn1UP5fI3e5Kegbu4zsoDTQ6aOdMxGs-kdIefGd9Wmoa6KU2fcaWPNxZ6dniWKHQj6_fRzujAU95ngZveIP/s1600/novideo.png';
return "";
}
return thumburl;
}
function testPlayNext() {
nextAutoPlay='false';
if((document.getElementById('playnext')).checked){
nextAutoPlay='true';
}
}
var nextAutoPlay=GET('playnext');
var playVideoIndex=0;
function goToNext() {
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=='true'){
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 ='';
};
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("/")+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 '';
}
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]"));
tempString2= "http://astore.amazon.de/"+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("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 ='';
}
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 = '