var scriptname='fblike.js';
var scripts=document.getElementsByTagName('script');
var fvalue=null;
var xfbml=false;
try {
for(var k=0; k<scripts.length; k++) {
fvalue=scripts[k];
if(fvalue.getAttribute('src').substr(fvalue.getAttribute('src').length-scriptname.length, fvalue.getAttribute('src').length)==scriptname) {
var bar=document.createElement('div');
if(xfbml==true) {
var div=document.createElement('div');
var scr=document.createElement('script');
var fbl=document.createElement('fb:like');
div.setAttribute('id', 'fb-root');
scr.setAttribute('src', 'http://connect.facebook.net/de_DE/all.js#xfbml=1');
fbl.setAttribute('href', 'http://www.facebook.com/pages/Kalles-Fahrschule/134804989946775');
fbl.setAttribute('send', 'false');
fbl.setAttribute('width', '400');
fbl.setAttribute('show_faces', 'false');
fbl.setAttribute('action', 'like');
fbl.setAttribute('font', 'verdana');
bar.appendChild(div);
bar.appendChild(scr);
bar.appendChild(fbl);
}
else {
var fra=document.createElement('iframe');
bar.setAttribute('style', 'display: inline; padding-left: 5px; padding-right: 5px; border: 0px transparent none;');
fra.setAttribute('src', 'http://www.facebook.com/plugins/like.php?action=like&channel_url=http%3A%2F%2Fstatic.ak.fbcdn.net%2Fconnect%2Fxd_proxy.php%3Fversion%3D3%23cb%3Df39f5ce1b2af202%26origin%3Dhttp%253A%252F%252Fwww.kallesfahrschule.de%252Ff28dbd369949d32%26relation%3Dparent.parent%26transport%3Dpostmessage&font=verdana&href=http%3A%2F%2Fwww.facebook.com%2Fpages%2FKalles-Fahrschule%2F134804989946775&layout=standard&locale=de_DE&node_type=link&sdk=joey&send=false&show_faces=false&width=110&height=30');
fra.setAttribute('scrolling', 'no');
fra.setAttribute('border', '0');
fra.setAttribute('frameBorder', '0');
fra.setAttribute('align', 'aus');
fra.setAttribute('marginheight', '0px');
fra.setAttribute('marginwidth', '0px');
fra.setAttribute('style', 'display: inline-block; border: 0px transparent none; overflow: hidden; width: 110px; height: 30px;');
fra.setAttribute('height', '30px');
fra.setAttribute('width', '110px');
fra.setAttribute('allowTransparency', 'true');
fra.src='http://www.facebook.com/plugins/like.php?action=like&channel_url=http%3A%2F%2Fstatic.ak.fbcdn.net%2Fconnect%2Fxd_proxy.php%3Fversion%3D3%23cb%3Df39f5ce1b2af202%26origin%3Dhttp%253A%252F%252Fwww.kallesfahrschule.de%252Ff28dbd369949d32%26relation%3Dparent.parent%26transport%3Dpostmessage&font=verdana&href=http%3A%2F%2Fwww.facebook.com%2Fpages%2FKalles-Fahrschule%2F134804989946775&layout=standard&locale=de_DE&node_type=link&sdk=joey&send=false&show_faces=false&width=110&height=30';
fra.scrolling='no';
fra.border=0;
fra.frameBorder=0;
fra.marginheight='0px';
fra.marginwidth='0px';
fra.height='30px';
fra.width='110px';
fra.allowTransparency='true';
bar.appendChild(fra);
}
fvalue.parentNode.replaceChild(bar, fvalue);
}
}
}
catch(err) {
//alert(err.toString());
}
