function ShowObj(cID) {
	var oObj=document.getElementById(cID);
	if(oObj){oObj.style.display='block';}
}

function HideObj(cID) {
	var oObj=document.getElementById(cID);
	if(oObj){oObj.style.display='none';}
}

function Reload_Login() {	
	new Effect.toggle('popup', 'appear', {
		afterFinish: function() {
			Open_Login();
			//document.loginform.log.focus();	
		}
	});
}

function Open_Login() {	
	new Effect.toggle('login_area_mc', 'slide', {
		/*afterFinish: function() {
			document.loginform.log.focus();	
		}*/
	});
}

function close_popup() {
	Effect.toggle('popup','appear');
}

function go_to_comment() {		
	new Effect.ScrollTo('commentform', {
			afterFinish: function() {
				document.commentform.comment.focus();	
			}
		}
	)
}

var bookmarkurl = document.URL;
var bookmarktitle = document.title;

/* Modified to support Opera */
/*function add_bookmark(bookmarktitle,bookmarkurl){
if (window.sidebar) // firefox
	window.sidebar.addPanel(bookmarktitle, bookmarkurl, "");
else if(window.opera && window.print){ // opera

} 
else if(document.all)// ie
	window.external.AddFavorite(bookmarkurl, bookmarktitle);
}*/

function addNet(url,titel) {
	if((typeof window.sidebar=="object") && (typeof window.sidebar.addPanel=="function")) {
		window.sidebar.addPanel(titel,url,"");
	} else {
		alert("Sie Nutzen eine veralterte Netscape Version!\nLesezeichen hinzufügen ist nicht möglich!");
	}
}

function add_bookmark(){
	var url=window.location.href,
	t=document.title,
	ap=navigator.appName;
	if(ap=="Microsoft Internet Explorer") {
		window.external.AddFavorite(url,t);
	} else {
		if(ap=="Netscape") {
			addNet(url,t);
		} else {
			alert("Mit ihren Browser ist kein Lesezeichen über Javascript möglich.\nBitte legen sie das Lesezeichnen manuel an.\nURL:"+url);
		};
	}
};
