function _$(id)
{
	return document.getElementById(id);
}

function openBlog ( domain )
{
	location.href="http://" + domain + ".germanblogs.de/";
}

function share ( path, title )
{
	window.open('http://www.facebook.com/share.php?u='+encodeURIComponent( path )+'&amp;bm_description='+encodeURIComponent( title ),'facebook','width=600,height=480,scrollbars=yes');
}

function getRss( domain )
{
	domain = (domain) || 'www';
	
	document.write(
		'<a href="http://add.my.yahoo.com/content?.intl=us&amp;url=http%3A//'+domain+'.germanblogs.de/feed" target="_blank" rel="nofollow"><img src="http://eur.i1.yimg.com/eur.yimg.com/i/de/my/meiny2.gif" alt="germanblogs zu Mein Yahoo hinzufuegen" border="0"></a>'+
		'<div class="rss_images"></div>'+
		'<a href="http://www.bloglines.com/sub/http://'+domain+'.germanblogs.de/feed" target="_blank" rel="nofollow"><img src="http://www.bloglines.com/images/sub_modern10.gif" alt="Mit Bloglines abonnieren" border="0"></a> <br>'+
		'<div class="rss_images"></div>'+
		'<a href="http://www.klipfolio.com/" target="_blank" rel="nofollow"><img src="http://www.germanblogs.de./images/klipfolio.gif" alt="klipfolio" border="0"></a> <br>'+
		'<div class="rss_images"></div>'+
		'<a href="http://www.newsgator.com/" target="_blank" rel="nofollow"><img src="http://www.newsgator.com/images/ngsub1.gif" alt="Subscribe in NewsGator Online" border="0"></a>'
	);
}

function openCat ( domain, cat )
{
	location.href="http://" + domain + ".germanblogs.de/thema/"+cat;
}

function getPostMeta ( url )
{
	document.write (
		'<div id = "kommentieren">'+
			'<a href = "'+url+'#respond" rel="nofollow"><img src="http://www.germanblogs.de/images/comment.gif" alt="Beitrag kommentieren" title="Beitrag kommentieren" />kommentieren</a>'+
		'</div>'+
		'<div>&nbsp;|&nbsp;</div>'+
		'<div id = "versenden">'+
			'<a href = "'+url+'/email/" rel="nofollow"><img src="http://www.germanblogs.de/images/comment.gif" alt="Beitrag kommentieren" title="Beitrag kommentieren" />versenden</a>'+
		'</div>'+
		'<div>&nbsp;|&nbsp;</div>'+
		'<div id="drucken">'+
			'<a href = "'+url+'/print/" rel="nofollow"><img src="http://www.germanblogs.de/images/comment.gif" alt="Beitrag kommentieren" title="Beitrag kommentieren" />drucken</a>'+
		'</div>'
	);
}

function get_gtext(cl,sl,wi,he)
{
	document.write(
	'<script type="text/javascript">\n'+
	'<!--\n'+
	'google_ad_client = "pub-'+cl+'";\n'+
	'/* '+wi+'x'+he+' */\n'+
	'google_ad_slot = "'+sl+'";\n'+
	'google_ad_width = '+wi+';\n'+
	'google_ad_height = '+he+';\n'+
	'//-->\n'+
	'</script>\n'+
	'<script type="text/javascript"\n'+
	'src="http://pagead2.googlesyndication.com/pagead/show_ads.js">\n'+
	'</script>');
}
var ADTAG = new Object();

ADTAG['val'] = function(obj, obj_parent)
{
    if(document.getElementById(obj).innerHTML.match(/href="http:/))
    {
        document.getElementById(obj_parent).style.display = 'block';
    }
}

/*ADTAG['sky'] = function(obj, obj_parent)
{
    if(document.getElementById(obj).innerHTML.match(/href="http:/))
    {
        document.getElementById(global_page).style.width = '1199px';
    }
}*/

ADTAG['set'] = function(obj,obj_parent)
{
    window.setTimeout(function()
    { 
        ADTAG['val'](obj,obj_parent); 
    }, 1000);
};

