
var surl;var stitle;var stags;var xpos=-16;var ypos=-16;function replace1(sr,pattern,replace){while((ir=sr.indexOf(pattern))!=-1){sr=sr.substr(0,ir)+replace+sr.substr(ir+pattern.length,sr.length);}
return(sr);}
function addLink(url,title){url=replace1(url,"$url",encodeURIComponent(surl));url=replace1(url,"$title",encodeURIComponent(stitle));url=replace1(url,"$tags",encodeURIComponent(stags));stagsc=replace1(stags," ",",");url=replace1(url,"$tagsc",encodeURIComponent(stagsc));document.write("<a href=\""+url+"\" title=\""+title+"\" target=\"_blank\"><div style=\"float:left; height:16px; width:16px; padding:0px; margin:0px 5px 0px 0px; background: url(icons.png) no-repeat top left; background-position:"+xpos+"px "+ypos+"px;\" onmouseover=\"javascript:this.style.backgroundPosition='"+xpos+"px "+(ypos-31)+"px';\" onmouseout=\"javascript:this.style.backgroundPosition='"+xpos+"px "+ypos+"px';\"></div></a> ");xpos-=32;}
function addBookmark(title,url){if(window.sidebar){window.sidebar.addPanel(title,url,"");}else if(document.all){window.external.AddFavorite(url,title);}else if(window.opera&&window.print){return true;}}
function addSocial(url,title,tags){surl=url;stitle=title;stags=tags;document.write("<div  style=\"float:left;\">Social Bookmarks:&nbsp;&nbsp;</div>");zeig="Zeige diese Seite deinen Freunden bei ";addLink("javascript:addbookmark('$title','$url');","Lesezeichen hinzufügen");addLink("http://thomaspfeifer.net/atom.xml","RSS-Newsfeed abonnieren");document.write("<div  style=\"float:left;\">&nbsp;&nbsp;</div>");addLink("http://twitter.com/home?status=$url","Twitter");addLink("http://de.facebook.com/sharer.php?u=$url&t=$title",zeig+"Facebook");addLink("http://www.studivz.net/Suggest/Selection/?u=$url&desc=$tags&prov=thomaspfeifer.net",zeig+"StudiVZ/MeinVZ/SchülerVZ");addLink("http://www.myspace.com/index.cfm?fuseaction=postto&u=$url&t=$title",zeig+"MySpace");addLink("http://del.icio.us/post?url=$url&title=$title","del.icio.us");addLink("http://www.mister-wong.de/index.php?action=addurl&amp;bm_url=$url&amp;bm_notice=&amp;bm_description=$title&amp;bm_tags=$tags","Mr Wong");addLink("http://www.google.com/bookmarks/mark?op=add&hl=de&bkmk=$url=&labels=$tagsc&title=$title","Google Bookmarks");addLink("http://bookmarks.yahoo.com/toolbar/savebm?u=$url&t=$title","Yahoo! Bookmarks");addLink("https://favorites.live.com/quickadd.aspx?marklet=1&url=$url&title=$title&top=1","Live Bookmarks");document.write("</div>");}
function addbookmark(title,url)
{if(window.sidebar){window.sidebar.addPanel(title,url,"");}else if(window.external){window.external.AddFavorite(url,title);}
else if(window.opera&&window.print){return true;}}
var popbackground="white"
var windowtitle="Image Window"
function detectexist(obj){return(typeof obj!="undefined")}
function jkpopimage(imgpath,popwidth,popheight,textdescription){function getpos(){leftpos=(detectexist(window.screenLeft))?screenLeft+document.body.clientWidth/2-popwidth/2:detectexist(window.screenX)?screenX+innerWidth/2-popwidth/2:0
toppos=(detectexist(window.screenTop))?screenTop+document.body.clientHeight/2-popheight/2:detectexist(window.screenY)?screenY+innerHeight/2-popheight/2:0
if(window.opera){leftpos-=screenLeft
toppos-=screenTop}}
getpos()
var winattributes='width='+(popwidth+18)+',height='+(popheight+40)+',resizable=yes,left='+leftpos+',top='+toppos
var bodyattribute=(popbackground.indexOf(".")!=-1)?'background="'+popbackground+'"':'bgcolor="'+popbackground+'"'
if(typeof jkpopwin=="undefined"||jkpopwin.closed)
jkpopwin=window.open("","",winattributes)
else{}
jkpopwin.moveTo(leftpos,toppos)
jkpopwin.resizeTo(popwidth+30,popheight+90)
jkpopwin.document.open()
jkpopwin.document.write('<html><title>'+textdescription+'</title><body '+bodyattribute+'><img src="'+imgpath+'" style="margin-bottom: 0px"><br><center>'+textdescription+'</center></body></html>')
jkpopwin.document.close()
jkpopwin.focus()}