function zoom_picture(adresse1){
	height1 = 600;
	width1 = 800;
	NewWindowA = window.open(adresse1,"NewWindowA", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width="+width1+",height="+height1);

	NewWindowA.focus();

}

function printthis(adresse1) {
	height1 = 600;
	width1 = 800;
	NewWindowb = window.open(adresse1,"NewWindowb", "toolbar=0,location=0,directories=0,status=0,menubar=1,scrollbars=1,resizable=1,width="+width1+",height="+height1);

	NewWindowb.focus();	
}

function forwardthis(adresse1) {
	height1 = 350;
	width1 = 500;
	NewWindowc = window.open(adresse1,"NewWindowb", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width="+width1+",height="+height1);

	NewWindowc.focus();	
	
}

function do_bookmark(url, title) {
	    if (window.sidebar) window.sidebar.addPanel(title, url,"");

	    else if( window.opera && window.print )
	    {
	    var mbm = document.createElement('a');
	    mbm.setAttribute('rel','sidebar');
	    mbm.setAttribute('href',url);
	    mbm.setAttribute('title',title);
	    mbm.click();
	    }

	    else if( document.all ) window.external.AddFavorite( url, title);
}

function set_homepage(url) {
	if(document.all) {
		this.style.behavior='url(#default#homepage)';this.setHomePage(url);
	} else {
		alert("Klicken Sie auf Extras->Einstellungen->Allgemein->Aktuelle Seite verwenden");
	}
}


/*function doTop(id) {
	//new Ajax.Updater({success: 'xtop'+id}, '/socialnews/dotop/'+id, {evalScripts: true});
	new Ajax.Updater({success: 'xtop'+id}, '/socialnews/dotop/'+id, {evalScripts: true});
}*/

function doTop(id) {
	new Ajax.Request('/socialnews/dotop/'+id, {
		method: 'post',
		onSuccess: function(transport) {
			if(!parseInt(transport.responseText)) {
				//error
				$('multimsg').update(transport.responseText);
				Modalbox.show($('multimsg'), {title: "Fehler beim toppen", width: 300});
			} else {
				//update the container
				$('xtop'+id).update(transport.responseText);
			}
		}
	});
}
