window.onload = init;

function init()
 {
    try
         	{ 
 	if (typeof ifr1 == 'object') { document.getElementsByName('ifr1')[0].style.height = ifr1.document.getElementById('tl1').offsetHeight + 'px'; }
 	if (typeof ifr2 == 'object') { document.getElementsByName('ifr2')[0].style.height = ifr2.document.getElementById('tl2').offsetHeight + 'px'; }
 	if (typeof ifr3 == 'object') { document.getElementsByName('ifr3')[0].style.height = ifr3.document.getElementById('tl3').offsetHeight + 'px'; }
	}
    catch (e)
   {
   }
 }

function bmdo(dobmat)
{
   bmtitle=encodeURIComponent(document.title);
   bmurl=encodeURIComponent(location.href);	
   switch(dobmat)
 {
 case 'bmtwitter': window.open('http://twitter.com/home?status='+bmurl);	
 break;
 case 'bmfacebook': window.open('http://www.facebook.com/share.php?u='+bmurl+'&amp;t='+bmtitle);	
 break;		
 case 'bmgoogle': window.open('http://www.google.com/bookmarks/mark?op=add&amp;hl=de&amp;bkmk='+bmurl+'&amp;title='+bmtitle);	
 break;
 case 'bmwong': window.open('http://www.mister-wong.de/index.php?action=addurl&amp;bm_url='+bmurl+'&amp;bm_description='+bmtitle);
 break;
 case 'bmyahoo': window.open('http://myweb2.search.yahoo.com/myresults/bookmarklet?u='+bmurl+'&amp;t='+bmtitle);
 break;
 case 'bmlive': window.open('https://favorites.live.com/quickadd.aspx?marklet=1&mkt=en-us&url='+bmurl+'&amp;title='+bmtitle);
 break;
 case 'bmyigg': window.open('http://yigg.de/neu?exturl='+bmurl+'&amp;exttitle='+bmtitle);
 break;
 case 'bmblinklist': window.open('http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Description=&amp;Url='+bmurl+'&amp;Title='+bmtitle);
 break;
 case 'bmwebnews': window.open('http://www.webnews.de/einstellen?url='+bmurl+'&amp;title='+bmtitle);
 break;
 case 'bmlinkarena': window.open('http://linkarena.com/bookmarks/addlink/?url='+bmurl+'&amp;title='+bmtitle+'&amp;desc=&amp;tags=');
 break;
 case 'bmfolkd': window.open('http://www.folkd.com/submit/page/'+bmurl);
 break;
 case 'bmoneview': window.open('http://beta.oneview.de:80/quickadd/neu/addBookmark.jsf?URL='+bmurl+'&amp;title='+bmtitle);
 break;
 case 'bmfurl': window.open('http://www.furl.net/storeIt.jsp?u='+bmurl+'&amp;t='+bmtitle);
 break;
 case 'bmdelicious': window.open('http://del.icio.us/post?url='+bmurl+'&amp;title='+bmtitle);
 break;		
 case 'bmstern': window.open('http://tausendreporter.stern.de/submit.php?url='+bmurl);
 break;
 }
} 
