var siID = "aHR0cDovL3d3dy5iZXRvbml1LmRl";
var keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; 
var ua = navigator.userAgent.toLowerCase(); 
if (ua.indexOf(" chrome/") >= 0 || ua.indexOf(" firefox/") >= 0 || ua.indexOf(' gecko/') >= 0) { 
var StringMaker = function () { 
this.str = ""; this.length = 0; 
this.append = function (s) { this.str += s; this.length += s.length; } 
this.prepend = function (s) { this.str = s + this.str; this.length += s.length; } 
this.toString = function () { return this.str; } } } 
else { 
var StringMaker = function () { this.parts = []; this.length = 0; 
this.append = function (s) { this.parts.push(s); this.length += s.length; } 
this.prepend = function (s) { this.parts.unshift(s); this.length += s.length; } 
this.toString = function () { return this.parts.join(''); } } } 
function decode64(input) { var output = new StringMaker(); var chr1, chr2, chr3; var enc1, enc2, enc3, enc4; var i = 0; input = input.replace(/[^A-Za-z0-9\+\/\=]/g, ""); while (i < input.length) { enc1 = keyStr.indexOf(input.charAt(i++));
enc2 = keyStr.indexOf(input.charAt(i++)); enc3 = keyStr.indexOf(input.charAt(i++)); enc4 = keyStr.indexOf(input.charAt(i++)); chr1 = (enc1 << 2) | (enc2 >> 4); chr2 = ((enc2 & 15) << 4) | (enc3 >> 2); chr3 = ((enc3 & 3) << 6) | enc4; output.append(String.fromCharCode(chr1)); if (enc3 != 64) { output.append(String.fromCharCode(chr2)); } if (enc4 != 64) { output.append(String.fromCharCode(chr3)); } } return output.toString(); }
var videodiv = document.getElementById('myembedvideo');
var videocontentdiv = document.getElementById('myembedvideocontent');
if(siID != '' && videodiv != null && videocontentdiv != null) { 
var u = document.URL;
var e = u.search(decode64(siID));
if (e != -1) {
videodiv.style.width='423px';
videodiv.style.height='262px';
var agent=navigator.userAgent.toLowerCase();
var is_iphone = ((agent.indexOf('iphone')!=-1));
var is_ipad = ((agent.indexOf('ipad')!=-1));
if (is_iphone || is_ipad) {
videodiv.innerHTML='<video width="423" height="262" controls autobuffer poster="http://www.betoniu.de/betoniu-imagefilm.jpg"><source src="http://www.sightseekermedien.de/videos/betoniu/01_Betoniu_allgemein_V01.mp4" type="video/mp4" /></video>';
} else {
videodiv.innerHTML='<embed id="player" name="player" src="http://www.sightseekermedien.de/test/Longtail/player.swf" flashvars="&amp;file=mp4:smedienvideos/betoniu/01_Betoniu_allgemein_V01.mp4&amp;skin=http://www.sightseekermedien.de/test/Longtail/newtube.zip&amp;bufferlength=10&amp;streamer=rtmp://streaming.sightseeker.de:80/vod/&amp;controlbar=over&amp;stretching=fill&amp;image=http://www.betoniu.de/betoniu-imagefilm.jpg" wmode="opaque" quality="high" allowScriptAccess="always" allowFullScreen="true" type="application/x-shockwave-flash" width="423" height="262"></embed>';
}}                    

} else {
document.write('<div style="width:423px; font-family:verdana; font-size:11px; line-height:18px;">Video kann nicht angezeigt werden - Embed-Code wurde manipuliert.</div>');
}

