function reservation(sprache,user,aktion,logid)
{
   var sprache, user, aktion, logid, scrheight;
   if (aktion == null) aktion = '';
   if (logid == null) logid = '';
   if (screen.availHeight > 600) {scrheight = screen.availHeight - 220;} else {scrheight = 460;}
   window.open("http://www.bookingsystem.ch/sih/booking.cgi?user="+user+"&lang="+sprache+"&action="+aktion+"&login="+logid,"booking","menubar=1,location=0,directories=0,toolbar=1,status=1,scrollbars=1,resizable=1,width=680,height="+scrheight);
}

function MM_findObj(n, d) { //v4.01
  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=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

var activeRegionSDH = '';
function changeRegionSDH( newRegionSDH )
{
  if( newRegionSDH != '' ){ MM_showHideLayers(newRegionSDH,'','show'); }
  if( activeRegionSDH != ''){ MM_showHideLayers(activeRegionSDH,'','hide')}
  activeRegionSDH = newRegionSDH;
}
var activeRegion = '';
function changeRegion( newRegion )
{
  if( newRegion != '' ){ MM_showHideLayers(newRegion,'','show'); }
  if( activeRegion != ''){ MM_showHideLayers(activeRegion,'','hide')}
  activeRegion = newRegion;
}

function DisplayAnimation( anim, width, height )
{
	document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="'+width+'" height="'+height+'">');
	document.write('<PARAM name=movie value="'+anim+'"><PARAM name=quality value=high><param name="wmode" value="transparent">');
	document.write('<EMBED src="'+anim+'" wmode="transparent" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'"></EMBED>');
	document.write('</OBJECT>');
}

function AfficherVoeux()
{
	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="574" height="526">');
	document.write('<PARAM name="movie" value="carte-voeux-2009.swf">');
	document.write('<PARAM name="quality" value="high">');
	document.write('<PARAM NAME="wmode" VALUE="transparent">');
	document.write('<EMBED src="carte-voeux-2009.swf" width="574" height="526" WMODE="transparent" QUALITY="high" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" TYPE="application/x-shockwave-flash"></EMBED>');
	document.write('</OBJECT>');
}



var arVersion = navigator.appVersion.split("MSIE")
var version = parseFloat(arVersion[1])

function fixPNG(myImage) 
{
    if ((version >= 5.5) && (version < 7) && (document.body.filters)) 
    {
       var imgID = (myImage.id) ? "id='" + myImage.id + "' " : ""
	   var imgClass = (myImage.className) ? "class='" + myImage.className + "' " : ""
	   var imgTitle = (myImage.title) ? 
		             "title='" + myImage.title  + "' " : "title='" + myImage.alt + "' "
	   var imgStyle = "display:inline-block;" + myImage.style.cssText
	   var strNewHTML = "<span " + imgID + imgClass + imgTitle
                  + " style=\"" + "width:" + myImage.width 
                  + "px; height:" + myImage.height 
                  + "px;" + imgStyle + ";"
                  + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
//                  + "(src=\'" + myImage.src + "\', sizingMethod='scale');\"></span>"
                  + "(src=\'" + myImage.src + "\', sizingMethod='image');\"></span>"
//                  + "(src=\'" + myImage.src + "\');\"></span>"
	   myImage.outerHTML = strNewHTML	  
    }
}


