window.defaultStatus = "www.ClickPix.de - Bilder zum Wegklicken!";
var favoriteURL = "http://www.clickpix.de/";
var favoriteTitel = "ClickPix - Bilder zum Wegklicken";
var blnsend = false;

// Frames entfernen
if (self != top) top.location = self.location;

function checkMouseButton(e) {
   var breite = screen.width - 100;
   var hoehe = screen.height - 100;
   var links = 50;
   var oben = 50;
   var url = "picsend.php?dasBild=thilo-sarrazin.jpg&bildTitel=";

   if (document.all) {
      if (event.button == 2 || event.button == 3) {
	 if (blnsend) {
	    var sendform = window.open(url, "sendform", "width="+breite+", height="+hoehe+", left="+links+", screenX="+links+", top="+oben+", screenY="+oben+", scrollbars=yes");
	    sendform.focus();
	 }
	 else {window.external.AddFavorite(favoriteURL, favoriteTitel)}
	 }
	 return false;
      }

   else if (typeof e != "undefined") {
      if (e.which == 3 || e.which == 2) {
	 if (blnsend) {
	    var sendform = window.open(url, "sender", "scrollbars=yes, width=600, height=500, screenX=100, screenY=50, resizable=yes");
	    sendform.focus();
	 }
	 return false;
      }
   }

   return true;
}

// Bild zurück
function backImg(E)
{
	var taste, arr;
	if (document.layers)
		{taste = E.which;}
	else if (document.all)
		{taste = window.event.keyCode;}

	if (taste == 32) {       // Leertaste
		location.href="<?php echo($next); ?>";	
	}
}

if (document.layers) {
	window.captureEvents(Event.MOUSEDOWN);
}


document.onmousedown=checkMouseButton;
window.onmousedown=checkMouseButton;
// document.onkeydown=backImg;


// Mail-Funktion
var add_a="@", add_1="webm", add_2="aster", add_top="de", add_prov="clickpix";
var com_2="lto", com_1="mai";
function send(sub) {
 var loc = location;
 var com = com_1+com_2+":"+add_1+add_2+add_a+add_prov+"."+add_top+"?subject="+sub;
 loc.href = com;
}

self.focus();