function mail(pref){
	document.location = 'mailto:'+pref+'@'+'grafix-house.com?subject=Anfrage:%20Bodega-Bar%99';
}
function chkformular(){
	var NS4 = document.layers;
	var NS5 = document.getElementById;
	var IE  = document.all;
	var formular = document.getElementById('formular');
	if(formular.Name.value == ""){
			alert("Bitte geben Sie Ihren Namen ein.");
			formular.Name.focus();
			return false;
	}
	if(formular.eMail.value == ""){
			alert("Bitte geben Sie Ihre eMail-Adresse ein.");
			formular.eMail.focus();
			return false;
	}
	if (NS4||NS5||IE){
	var str=formular.eMail.value;
	var filter  =/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,6})+$/;
	if (!filter.test(str)){
				alert("Ihre eMail-Adresse scheint ungültig zu sein.")
				formular.eMail.focus();
				return false;
		}
	}else{
	return true;
	}
}
/* MM Scrips */
function fobj(n, d) { /* findObj */
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=fobj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function cp(objName,x,theProp,theValue) { /* changeProp */
  var obj = fobj(objName);
  if (obj && (theProp.indexOf("style.")==-1 || obj.style)){
    if (theValue == true || theValue == false)
      eval("obj."+theProp+"="+theValue);
    else eval("obj."+theProp+"='"+theValue+"'");
  }
}
/*
function pi() { // preloadImage
  var d=document; if(d.images){ if(!d.p) d.p=new Array();
    var i,j=d.p.length,a=pi.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.p[j]=new Image; d.p[j++].src=a[i];}}
}
pi('m03.jpg',
   'm02active.jpg',
   'm03active.jpg',
   'm04.jpg',
   'm02.jpg',
   'm05active.jpg',
   'm05.jpg',
   'm01active.jpg',
   'm04active.jpg',
   'm06active.jpg',
   'm06.jpg',
   'm01.jpg',
   'lheader.gif',
   'lfooter.gif',
   'm03.gif',
   'm06.gif',
   'm04.gif',
   'm05.gif',
   'm01.gif',
   'm02.gif',
   'm06head.gif',
   'm04head.gif',
   'm03head.gif',
   'm05head.gif',
   'm01head.gif',
   'm02head.gif',
   'lright.gif',
   'lleft.gif',
   'mle.gif',
   'mright.gif',
   'msep.gif',
   'mline.gif'
   );
*/

function chkSWF()
{
	/* Browser erfassen */
	var agt = navigator.userAgent.toLowerCase(); 
	var is_major = parseInt(navigator.appVersion); 
	var is_minor = parseFloat(navigator.appVersion); 
	var is_ns  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1) && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1) && (agt.indexOf('webtv')==-1)); 
	var is_opera   = (agt.indexOf('opera')!=-1); 
	var is_ie   = ((agt.indexOf("msie") != -1) && (agt.indexOf('opera')==-1)); 
	/* Mac und Windows erfassen */ 
	var is_win   = ( (agt.indexOf("win")!=-1) || (agt.indexOf("16bit")!=-1) ); var is_win95 = ((agt.indexOf("win95")!=-1) || (agt.indexOf("windows 95")!=-1)); 
	var is_win16 = ((agt.indexOf("win16")!=-1) || (agt.indexOf("16bit")!=-1) || (agt.indexOf("windows 3.1")!=-1) || (agt.indexOf("windows 16-bit")!=-1) ); 
	var is_win31 = ((agt.indexOf("windows 3.1")!=-1) || (agt.indexOf("win16")!=-1) || (agt.indexOf("windows 16-bit")!=-1)); 
	var is_win98 = ((agt.indexOf("win98")!=-1) || (agt.indexOf("windows 98")!=-1)); 
	var is_winnt = ((agt.indexOf("winnt")!=-1) || (agt.indexOf("windows nt")!=-1)); 
	var is_win32 = (is_win95 || is_winnt || is_win98 || ((is_major >= 4) && (navigator.platform == "Win32")) || (agt.indexOf("win32")!=-1) || (agt.indexOf("32bit")!=-1)); 
	var is_mac= (agt.indexOf("mac")!=-1); 
	/* netscape und MAC IE für Flash 6 erfassen */ 
	if (is_ns || is_opera || is_mac)
		{ 
		if (navigator.plugins["Shockwave Flash"])
		{ 
		var plugin_version = 0; 
		var plugin_description = navigator.plugins["Shockwave Flash"].description.split(" "); 
		for (var i = 0; i < plugin_description.length; ++i){
			if (isNaN(parseInt(plugin_description[i])))
			continue;
			plugin_version = plugin_description[i];
		}
		}
		if (plugin_version >= 4)
		{ 
		document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="672" height="94"><param name="movie" value="/gfx/lheader.swf"><param name="quality" value="high"><param name="wmode" value="transparent"><param name="menu" value="false"><embed src="/gfx/lheader.swf" quality="high" wmode="transparent" menu="false" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="672" height="94"></embed></object>'); 
		}else{ 
		document.write('<img src="/gfx/lheader.gif" width="672" height="94" border="0">');
		}
	} 
	if (is_ie && is_win32){ 
		document.write('<SCRIPT LANGUAGE=VBScript>\n'); 
		document.write('Private i, x, FlashControlVersion\n'); 
		document.write('On Error Resume Next\n\n'); 
		document.write('x = null\n'); 
		document.write('FlashControlVersion = 0\n'); 
		document.write('var Flashmode\n'); 
		document.write('FlashMode = False\n'); 
		document.write('For i = 4 To 1 Step -1\n'); 
		document.write('Set x = CreateObject("ShockwaveFlash.ShockwaveFlash." & i)\n'); 
		document.write('FlashControlInstalled = IsObject(x)\n'); 
		document.write('If FlashControlInstalled Then\n'); 
		document.write('FlashControlVersion = CStr(i)\n'); 
		document.write('Exit For\n'); 
		document.write('End If\n'); 
		document.write('Next\n'); 
		document.write('FlashMode = (FlashControlVersion >= 4)\n'); 
		document.write('If FlashMode = True Then\n'); 
		document.write('document.write "<object classid=""clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"" codebase=""http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"" width=""672"" height=""94""><param name=""movie"" value=""/gfx/lheader.swf""><param name=""quality"" value=""high""><param name=""wmode"" value=""transparent""><param name=""menu"" value=""false""><embed src=""/gfx/lheader.swf"" quality=""high"" wmode=""transparent"" menu=""false"" pluginspage=""http://www.macromedia.com/go/getflashplayer"" type=""application/x-shockwave-flash"" width=""672"" height=""94""></embed></object>"\n'); 
		document.write('Else\n'); 
		document.write('document.write "<img src=""/gfx/lheader.gif"" width=""672"" height=""94"" border=""0"">" \n');
		document.write('End If\n'); 
		document.write('</script'+'>\n');
	}
}