// url with x: opens in new window
function jumping(url) {
	if(url == "nothing") { document.forms[0].reset(); document.forms[0].elements[0].blur(); return; }
	if(url == "bookmark") { bookmark_this_page(); return; }
	if(url == "email") { location.href = 'mailto:?subject=' + text_5 + '&amp;body=' + window.location.href;  return; }
	if(url == "greatpic") { Bild_gross_in_neuem_Fenster(); return; }
	if(url == "bewerten") { dieses_bild_bewerten(); return; }
	if(url == "fototransfer") { fototransfer(); return; }
	if(url == "opedo") { opedo(); return; }
	if(url.slice(0,10) == "tieren.php") { dieses_bild_kommentieren('bild-kommen'+url); return; }
	if((url.slice(0,18) == "foto_hochladen.php")||(url.slice(0,18) == "Urlaubfotos/foto_h")) { smallWindow = window.open(url,"smallWindow","status=no,toolbar=no,menubar=no,resizable=yes,scrollbars=yes,width=618,height=824,left=9,top=6"); return; }
	if(url.slice(0,15) == "bild_melden.php") { smallWindow = window.open(url,"smallWindow","status=no,toolbar=no,menubar=no,resizable=yes,scrollbars=yes,width=480,height=442,left=9,top=6"); return; }
	if(url.slice(0,12) == "exifinfo.php") { smallWindow = window.open(url,"smallWindow","status=no,toolbar=no,menubar=no,resizable=yes,scrollbars=yes,width=360,height=300,left=9,top=6"); return; }
	var xyz = url.slice(0,4);
	if (xyz == "xhtt") { var url2 = url.replace("xhttp","http"); window.open(url2,"_blank");  return; }
	if (parent.pictures) { parent.pictures.location.href = url ; }
	if (xyz == "http") { top.location.href = url ;  return; } else { location.href = url ; } 
}

function bookmark_this_page() { 
	if (document.all) {  window.external.AddFavorite(location.href, document.title); }
	else { alert('Netscape users, Please use CTRL + D   /   Bitte benutzen Sie die Tasten Strg + D wenn Sie mit Netscape unterwegs sind !'); }
}

function Bild_ganz_gross_in_neuem_Fenster(bild,w,h,coloritis,window_multi) {
	var wF = w - (-0); // Die Klammern bitte drin lassen, damit js das ganze als zahl statt text interpretiert !!!
	var hF = h - (-12);
	if (window_multi == "no") {var code = ' onblur="window.close();"' ;} else { var code = "";}
	if ((screen.width < (wF + 10))||(screen.height < (hF + 10))) {
		wF = Math.min((screen.availWidth-16),(w+16)) ;
		hF = Math.min((screen.availHeight-46),(h+46)) ;
		var wG = wF;
		var hG = hF;
		if ((w/wF)>(h/(hF-12))) {
			var bild_w = wF-21;
			var bild_h = Math.round(bild_w/w*h);
			hF = bild_h + 18;
		} else {
			var bild_h = hF-18;
			var bild_w = Math.round(bild_h/h*w);
			wF = bild_w + 21;
		}
		wG = wG - wF;
		hG = hG - hF;
		if (window_multi == "no") {var code = ' onMouseout="window.close();"' ;}
		BildOrginal = window.open("about:blank","_blank","width="+wF+",height="+hF+",left=3,top=3,location=0,status=0,toolbar=0,menubar=0,resizable=1,scrollbars=1");
		BildOrginal.document.open();
		BildOrginal.document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><title>'+bild+'</title><script language="JavaScript" type="text/JavaScript">function ganz_gross() {window.resizeBy('+wG+','+hG+'); window.moveTo(3,3); window.document.write(\'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><title>'+bild+'</title></head></HEAD><body marginwidth="0" marginheight="0" topmargin="0" leftmargin="0" bgcolor="#'+coloritis+'"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"><tr><td align="center" valign="top"><a href="javascript:history.go(-1);"><img src="'+bild+'" border="1" alt=" \\nBitte benutzen Sie zum scrollen die Pfeiltasten. \\n \\nPlease use the curser keys to scroll the picture.\\n "></a><br><font size="1" face="Verdana, Arial"><a href="javascript:window.close()" title="Bitte hier klicken, um dieses Fenster zu schließen">Fenster schlie&szlig;en</a></font></td></tr></table></body></html>\');}</script></HEAD>');
		BildOrginal.document.write('<body marginwidth="0" marginheight="0" topmargin="0" leftmargin="0" bgcolor="#'+coloritis+'"'+code+'><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"><tr><td align="center" valign="top"><a href="javascript:ganz_gross();"><img src="'+bild+'" width="'+bild_w+'" height="'+bild_h+'" border="1"></a><br><font size="1" face="Verdana, Arial"><a href="javascript:window.close()" title="Bitte hier klicken, um dieses Fenster zu schließen">Fenster schlie&szlig;en</a></font></td></tr></table></body></html>');
		BildOrginal.document.close();
		BildOrginal.focus();
	}
	else { 
		BildOrginal = window.open("about:blank","_blank","width="+wF+",height="+hF+",left=3,top=3,location=0,status=0,toolbar=0,menubar=0,resizable=1,scrollbars=0");
		BildOrginal.document.open();
		BildOrginal.document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><title>'+bild+'</title></head></HEAD><body marginwidth="0" marginheight="0" topmargin="0" leftmargin="0" bgcolor="#'+coloritis+'"'+code+'><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"><tr><td align="center" valign="top"><img src="'+bild+'"><br><font size="1" face="Verdana, Arial"><a href="javascript:window.close()" title="Bitte hier klicken, um dieses Fenster zu schließen">Fenster schlie&szlig;en</a></font></td></tr></table></body></html>');
		BildOrginal.document.close();
		BildOrginal.focus();
	}
}

function dieses_bild_bewerten2(url,w,h) {
	var l = 80 ;
	var t = screen.height - 180 - h ;
	window.open(url,"_blank","status=no,toolbar=no,menubar=no,resizable=yes,scrollbars=yes,width="+w+",height="+h+",left="+l+",top="+t);
}

function dieses_bild_kommentieren(url) {
	window.open(url,"_blank","status=no,toolbar=no,menubar=no,resizable=yes,scrollbars=yes,width=780,height=420,left=9,top=6");
}

function changeImage( imgName, imgFile ) {
    if( document.images ) document.images[imgName].src = imgFile ;
}

function schreibe_verlinkungslink() {
	if(navigator.appName == 'Microsoft Internet Explorer') {
	with(document) {
		open("text/html");
		write("<A HREF=\"javascript:window.external.AddFavorite(location.href, document.title)\" title=\"Bitte klicken Sie hier, um speziell diese Unterseite Ihren Lesezeichen hinzuzuf&uuml;gen.\" class=\"schriftrechts\">Lesezeichen auf diese Seite setzen</A>");
		write(" &nbsp; &nbsp; ");
		close();
		} 
	}
	Verlinkungs_Datei = "http://www.leichte.info/verlinken.php" ;
	Aktuelle_Url = window.location.href ;
	Aktuelle_Url = Aktuelle_Url.substr(0,127);
	Aktuelle_Url = Aktuelle_Url.replace(/&/g,":und:") ;
	Aktuelle_Url = Aktuelle_Url.replace(/\?/g,":frage:") ;
	Aktuelle_Url = Aktuelle_Url.replace(/ /g,"%20") ;
	Aktuelle_Url = Aktuelle_Url.replace(/=/g,":ist:") ;
	Aktuelle_Url = Aktuelle_Url.replace(/#/g,":raute:") ;
	Titel = document.title ;
	Titel = Titel.substr(0,127);
	Titel = Titel.replace(/'/g," ") ;
	Titel = Titel.replace(/"/g," ") ;
	Titel_x = Titel.replace(/&/g,":und:") ;
	Titel_x = Titel_x.replace(/\?/g,":frage:") ;
	Titel_x = Titel_x.replace(/ /g,"%20") ;
	Titel_x = Titel_x.replace(/=/g,":ist:") ;
	test_Url = Aktuelle_Url.substr(0,Verlinkungs_Datei.length);
	Aktuelle_Url = Verlinkungs_Datei + "?Url=" + Aktuelle_Url + "&Titel=" + Titel_x ;
	if (Aktuelle_Url.match(/["']/g)) { Aktuelle_Url = Verlinkungs_Datei ; }
	//	alert(Aktuelle_Url+" \n"+test_Url);
	if (test_Url!=Verlinkungs_Datei) {
		with(document) {
			open("text/html");
			write("<A HREF=\"" + Aktuelle_Url + "\"  title=\"Bitte klicken Sie hier um diese Seite zu verlinken. (" + Titel + ")\" class=\"schriftrechts\">verlinken</A>");
			close();
		}
	}
}
