function getSocialBookMarkText10(divname) {
var res = "" ;
var uri = encodeURIComponent(location.href) ;
var ptl = encodeURIComponent(document.title) ;
res = "<div class=\"bmarks10\"><p>Merken / Empfehlen:</p><ul class=\"bmarklst10\">" ; 
res += "<li><div><a onclick=\"pageTracker._trackEvent('Bookmark', 'Facebook', document.URL);\" title=\"Seite bei Facebook empfehlen\"" ;
res += " href=\"javascript:bookmarkPage('facebook');\"><img class=\"facebook\" alt=\"\" src=\"http://www.gandke.de/images/bm_sprite.png\"></a></div></li>" ;
res += "<li><div><a onclick=\"pageTracker._trackEvent('Bookmark', 'Twitter', document.URL);\" title=\"Seite via Twitter kommentieren\"";
res += " href=\"javascript:bookmarkPage('twitter');\"><img class=\"twitter\" alt=\"\" src=\"http://www.gandke.de/images/bm_sprite.png\"></a></div></li>" ;
res += "<li><div><a onclick=\"pageTracker._trackEvent('Bookmark', 'Xing', document.URL);\" title=\"Link bei XING teilen\"";
res += " href=\"javascript:bookmarkPage('xing');\"><img class=\"xing\" alt=\"\" src=\"http://www.gandke.de/images/bm_sprite.png\"></a></div></li>" ;
res += "<li><div><a onclick=\"pageTracker._trackEvent('Bookmark', 'E-Mail', document.URL);\" title=\"Link per E-Mail empfehlen\"";
res += " href=\"javascript:bookmarkPage('email');\"><img class=\"email\" alt=\"\" src=\"http://www.gandke.de/images/bm_sprite.png\"></a></div></li>" ;
//res += "<li><div><a onclick=\"pageTracker._trackEvent('Bookmark', 'Google', document.URL);\" title=\"In Google Bookmarks merken (oder STRG+D f&uuml;r Lesezeichen im Browser)\"" ;
//res += " href=\"javascript:bookmarkPage('google');\"><img class=\"google\" alt=\"\" src=\"http://www.gandke.de/images/bm_sprite.png\"></a></div></li>" ;
res += "<li style=\"border:0\"><div class=\"g-plusone\" data-size=\"medium\" data-annotation=\"none\"></div></li>" ;


res += "</ul></div><a id=\"sk_" +divname+ "\"></a>" ;
return res ;
}
function showHide(dv, divname) {
if ((dv.style.display == "none") || (dv.style.display == ""))  {
dv.style.display = "block" ;
} else {
dv.style.display = "none" ;
}
}  
function showBookMarks10(divname) {
var dv = document.getElementById(divname) ;
dv.innerHTML = getSocialBookMarkText10(divname);
document.write('<script type="text/javascript">window.___gcfg = {lang: \'de\'}; (function() { var po = document.createElement(\'script\'); po.type = \'text/javascript\'; po.async = true;  po.src = \'https://apis.google.com/js/plusone.js\'; var s = document.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(po, s); })(); </script>');
showHide(dv, divname) ;
showSearchBox(0,0) ;
return false ;
}
function bookmarkPage(bmService) {
var uri = encodeURIComponent(location.href) ;
var ptl = encodeURIComponent(document.title) ;
switch (bmService) {
case 'explorer'   :window.external.AddFavorite('http://www.gandke.de','Gandke Internet-Marketing und AdWords-Agentur') ; break ;
case 'firefox'	:window.sidebar.addPanel('Gandke Internet-Marketing und AdWords-Agentur','http://www.gandke.de','') ; break ;
case 'google'    	:location.href='http://www.google.com/bookmarks/mark?op=add&hl=de&bkmk='+uri+'&title='+ptl ; break ;
case 'twitter'    :location.href='http://twitter.com/home?status='+uri+' '+ptl ; break ;

case 'xing'       :location.href='https://www.xing.com/app/startpage?op=home;func_share=1;tab=link;url='+uri ; break ;
case 'facebook'   :location.href='http://de.facebook.com/sharer.php?u='+uri+'&t='+ptl ; break ;
case 'studivz'    :location.href='http://www.studivz.net/Suggest/Selection/?u='+uri+'&desc='+ptl+'&prov='+encodeURIComponent(location.hostname) ; break ;
case 'mrwong'		:location.href='http://www.mister-wong.de/index.php?action=addurl&bm_url='+uri+'&bm_description='+ptl ; break ;
case 'linkarena'	:location.href='http://linkarena.com/bookmarks/addlink/?url='+uri+'&title='+ptl+'&desc=&tags=' ; break ;
case 'yahoo'		:location.href='http://myweb2.search.yahoo.com/myresults/bookmarklet?u='+uri+'&t='+ptl ; break ;
case 'delicious'	:location.href='http://del.icio.us/post?url='+uri+'&title='+ptl ; break ;
case 'technorati'	:location.href='http://technorati.com/faves?add='+uri ; break ;
case 'icio'		:location.href='http://www.icio.de/add.php?url='+uri+'&title='+ptl ; break ;
case 'yigg'		:location.href='http://yigg.de/neu?exturl='+uri+'&exttitle='+ptl ; break ;
case 'folkd'		:location.href='http://www.folkd.com/page/submit.html?step2_sent=1&url='+uri+'&check=page&add_title='+ptl+'&add_state=public' ; break ;
case 'furl'		:location.href='http://www.furl.net/storeIt.jsp?u='+uri+'&t='+ptl ; break ;
case 'linkagogo'	:location.href='http://www.linkagogo.com/go/AddNoPopup?url='+uri+'&title='+ptl ; break ;
case 'magnolia' 	:location.href='http://ma.gnolia.com/beta/bookmarklet/add?url='+uri+'&title='+ptl ; break ;
case 'email'    	:location.href="mailto:?subject=Empfehlung%20auf%20gandke.de:%20"+ptl+
"&body=Hallo,%0A%0Aich habe gerade diese Seite gesehen und wollte sie schnell empfehlen:%20"+uri ; break ;
}
}
function showSearchBox(itop, ileft) {
var srHeight = 30;
var srWidth  = 220;
var srTop    = itop;
var srLeft   = ileft;
var mc = document.getElementById('maincnt');
if (!mc) return false ;
if (mc.className.indexOf("nosrbox") != -1) return false ;

if (srLeft=="") srLeft = 562 ;
if (srTop=="") srTop = 25 ;
if (mc.className.indexOf("frontpg") != -1) {
srLeft = 0 ; 
srTop  = 20 ; 
document.getElementById('h2fp').style.marginTop = "40px" ;
} 
var srDiv = document.createElement('div');
mc.appendChild(srDiv);
if (srDiv) {
mc.style.position = 'relative' ;
srDiv.style.position = 'absolute' ;
srDiv.style.height = srHeight.toString()+'px' ;
srDiv.style.width = srWidth.toString()+'px' ;
srDiv.style.top = srTop.toString()+'px' ;
srDiv.style.left = srLeft.toString()+'px' ;
srDiv.className = 'sbox clearfix' ;
srDiv.innerHTML = getSr() ;
}
}
function getSr() {
var res = "" ;
res = "<form action=\"/suche/\" method=\"get\">"+
"<input title=\"Bitte Suchbegriff(e) eingeben\" type=\"search\" placeholder=\"Suchbegriff...\" x-webkit-speech name=\"query\" id=\"query\" value=\"\">"+
"<input title=\"Suche starten\" id=\"stsr\" type=\"image\" value=\"\" src=\"images/search.png\">"+
"<input type=\"hidden\" name=\"sbr\" value=\"1\">"+
"<input type=\"hidden\" name=\"search\" value=\"1\"></form>";  
return res ;
}

var gmsGAOptState = 'undefined';
var expdate = new Date();
var _showDebug = true;
expdate.setDate(expdate.getDate()+365);
//Dummy, um per Klick getrackte Events, Transaktionen und virtl. Pageviews abzufangen
function gmsDummyTracker() {
this._trackPageview = function(s) { } 
this._trackEvent = function(a,b,c,d) { } 
this._addTrans = function(a,b,c,d,e,f,g,h) { } 
this._addItem = function(a,b,c,d,e,f) { } 
this._trackTrans = function() { } 
this._link = function(a, b) { }
this._linkByPost = function(a, b) { }
this._setAllowHash = function(a) { }
this._setAllowLinker = function(a) { }
this._setCookiePath = function(a) { }
this._setDomainName = function(a) { }
this._cookiePathCopy = function(a) { }
this._getLinkerUrl = function(a, b) { }
this._deleteCustomVar = function(a) { }
this._getAccount = function() { }
this._getVersion = function() { }
this._getVisitorCustomVar = function(a) { }
this._initData = function() { }
this._addVar = function(a) { }
this._setCookiePersistence = function(a) { }
this._setCustomVar = function(a, b, c, d) { }
this._setSampleRate = function(a) { }
this._setSessionTimeout = function(a) { }  
this._setAllowAnchor = function(a) { }
this._setCampContentKey = function(a) { }
this._setCampMediumKey = function(a) { }
this._setCampNameKey = function(a) { }
this._setCampNOKey = function(a) { }
this._setCampSourceKey = function(a) { }
this._setCampTermKey = function(a) { }
this._setCampaignTrack = function(a) { }
this._setCookieTimeout = function(a) { }
this._setReferrerOverride = function(a) { }
this._addIgnoredOrganic = function(a) { }
this._addIgnoredRef = function(a) { }
this._addOrganic = function(a, b, c) { }
this._clearIgnoredOrganic = function() { }
this._clearIgnoredRef = function() { }
this._clearOrganic = function() { }
this._getClientInfo = function() { }
this._getDetectFlash = function() { }
this._getDetectTitle = function() { }
this._setClientInfo = function() { }
this._setDetectFlash = function() { }
this._setDetectTitle = function() { }
this._getLocalGifPath = function() { }
this._getServiceMode = function() { }
this._setLocalGifPath = function(a) { }
this._setLocalRemoteServerMode = function() { }
this._setLocalServerMode = function() { }
this._setRemoteServerMode = function() { }
}
//Komplett aus dem Beispiel bei http://www.web-analytics-nutzen.de/ uebernommen:
function getCookie(value) {
var dc = document.cookie;
var prefix = value + "=";
var begin = dc.indexOf("; " + prefix);
if (begin == -1) {
begin = dc.indexOf(prefix);
if (begin != 0) return null;
} else {
begin += 2;
}
var end = document.cookie.indexOf(";", begin);
if (end == -1) {
end = dc.length;
}
return dc.substring(begin + prefix.length, end);
}
//Benutzerauswahl im Cookie f. 1 Jahr speichern:
function gmsSwitchGAActive(s, domain) {
if (s == true)
document.cookie = 'gmsGAOptOut=false;expires='+expdate.toGMTString()+';path=/'+( ( domain ) ? ";domain=" + domain : "" );
else {  
document.cookie = 'gmsGAOptOut=true;expires='+expdate.toGMTString()+';path=/'+( ( domain ) ? ";domain=" + domain : "" );
try {
//Hier ggf. Variablennamen des Trackers anpassen oder das Eventtracking bei 
//Bedarf komplett weglassen...
pageTracker._trackEvent('SwitchTracking', 'Off', document.URL);
} catch(err) {}
} 
return true;
}
//Abruf des akt. Zustands des Trackings aus Cookie oder als gespeichertes Ergebnis
function gmsGATrackingActive()
{
if (gmsGAOptState == "undefined") {
var gmsGAOptOut = getCookie("gmsGAOptOut");
if ((gmsGAOptOut != null) && (gmsGAOptOut == 'true')) { 
gmsGAOptState =  'disabled'
} else {
gmsGAOptState =  'active';
} 
}
return (gmsGAOptState != 'disabled') ;  
}
//Zuweisung des Klickevents und Setzen der Checkbox je nach Benutzerauswahl
function gmsInitGASwitch(s, domain)
{
var cbox = null;
if (s != "") cbox = document.getElementById(s);
if (cbox != null) {
cbox.checked = gmsGATrackingActive();
cbox.onclick = function (){ gmsSwitchGAActive(this.checked, domain);};  
return true;
}
}     

function getClientWidth() {
var res = 0 ;
if (window.innerWidth) {
res = window.innerWidth;
} else if (document.body && document.body.offsetWidth) {
res = document.body.offsetWidth;
} 
return res ;
}
function resizeFdbk () {
if (gmsClientWidth != getClientWidth())
location.href = location.href;
}
function initIe4fdbk() {
if (!window.gmsClientWidth && document.body && document.body.offsetWidth) {
window.onresize = resizeFdbk;
gmsClientWidth = getClientWidth();
}
}
if (!window.gmsClientWidth && window.innerWidth) {
window.onresize = resizeFdbk;
gmsClientWidth = getClientWidth();
}
function showFeedback() {
var fdbkHeight = 107;
var fdbkWidth  = 30;
var fdbkTop    = 260;
var fdbkPgWdth = 870 ;
var fdbkURL    = 'http://www.gandke.de/feedback.html' ;
var fdbkDiv = document.createElement('div');
document.body.appendChild(fdbkDiv);
if (fdbkDiv) {
initIe4fdbk();
if (gmsClientWidth <= (fdbkPgWdth + 2*fdbkWidth)) {
fdbkDiv.style.display = 'none' ;
} else {
fdbkDiv.style.position = 'absolute' ;
fdbkDiv.style.height = fdbkHeight.toString()+'px' ;
fdbkDiv.style.width = fdbkWidth.toString()+'px' ;
fdbkDiv.style.top = fdbkTop.toString()+'px' ;
fdbkDiv.style.left = '0px' ;
fdbkDiv.style.display = 'block' ;
fdbkDiv.className = 'transp' ;
fdbkDiv.innerHTML = "<a onclick=\"pageTracker._trackEvent('Feedback', 'Click2Form', document.URL);\" title=\"Anmerkungen, Kritik, Probleme mit der Website?\" class=\"fdbk\" href=\""+fdbkURL+"\">&nbsp;</a>" ;
var tmpImg = new Image();
tmpImg.onload = function(){ return true; }
tmpImg.src = "images/feedback_a.png" ;
} 
}
}
