browserName = navigator.appName;   // detect browser
  browserVer = parseInt(navigator.appVersion);
  platform = navigator.platform;   // detect bs
  var nsVersion;
  var mouseX, mouseY;

  if (browserName == "Netscape" && browserVer < 5) {
      ns=1; ie=0;mz=0;
  }
  if ((browserName != "Microsoft Internet Explorer") && (browserVer >= 5)){
      ns=0; ie=0; mz=1;
  }
  if (browserName == "Microsoft Internet Explorer") {
      ns=0; ie=1; mz=0;
  }
  

function rollin(name,p) {
    if (ns) {   // netscape 
      document[name].src = p;
    }
    else {  // mozilla
      document.getElementsByName(name)[0].src = p;
    }
  }
  
function rollout(name) {
    if (ns) {   // netscape 
      document[name].src = 'design/px.gif';
    }
    else {  // mozilla
      document.getElementsByName(name)[0].src = 'design/px.gif';
    }
  }


function preload()
{
	var sources = 
	new Array(
	'design/m_1_c.jpg',
	'design/m_2_c.jpg',
	'design/m_3_c.jpg',
	'design/m_4_c.jpg',
	'design/m_5_c.jpg',
	'design/m_6_c.jpg'
	);

	Pictures = new Array();

	for (var i=0; i<sources.length; i++){
	Pictures[i] = new Image();
	Pictures[i].src = sources[i];
	}

}	

preload();

function show_rez(x,y){

	var aa = "sites/print_r.php?rid="+x+"&action=print";
	var bb = "Rezept"+y;
	
	//window.open(aa,bb,'width=550,height=600,resizable=yes,scrollbars=yes');
	window.open(aa,"Rezept",'width=550,height=600,resizable=yes,scrollbars=yes');
}



function rs(x,y){

	window.resizeTo(x+8,y+37);
	//window.print(x,y);
	
}

function popmich(bild) {


		w=800;
		h=600;
        var iMyWidth;
        var iMyHeight;
        iMyWidth = 50; //half the screen width minus half the new window width (plus 5 pixel borders).
        iMyHeight = 50; //half the screen height minus half the new window height (plus title and status bars).
        var win2 = this.window.open("sites/gallerie_show.php?bild=" +bild,"Window2","height=" + h + ",width=" + w + ",resizable=no,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",scrollbars=no,status=no");
        win2.focus();
}


function popup(bild,dir) {


		w=800;
		h=600;
        var iMyWidth;
        var iMyHeight;
        iMyWidth = 50; //half the screen width minus half the new window width (plus 5 pixel borders).
        iMyHeight = 50; //half the screen height minus half the new window height (plus title and status bars).
        var win2 = this.window.open("galerie_show.php?bild=" +bild+ "&dir="+dir,"Window2","height=" + h + ",width=" + w + ",resizable=no,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",scrollbars=no,status=no");
        win2.focus();
}

















