// Javascriptlösung für Flasch im IE 7.0

// Flasfilme auf virtuelle Broschüre
function RunFoo()
{
    document.write('<object type="application/x-shockwave-flash" data="/images/stories/flash/titel2.swf" width="410" height="160" style="-moz-user-focus:ignore" title="Kopf der Site">\n');
    document.write('<param name="movie" value="/images/stories/flash/titel2.swf" />\n');
    document.write('<param name="quality" value="high" /> \n');
    document.write('<param name="bgcolor" value="#fff" /> \n');
    document.write('<div><img src="/images/stories/flash/kopf.jpg" width="410" height="160" alt="titel der seite" /></div>\n');
    document.write('</object>\n');
}



 function RunFoo1()
{
    document.write('<object  type="application/x-shockwave-flash" data="/images/stories/flash/index_news.swf" width="410" height="535" style="-moz-user-focus:ignore" title="Interaktives Spiel">\n');
    document.write('<param name="movie" value="/images/stories/flash/index_news.swf" />\n');
    document.write('<param name="quality" value="high" /> \n');
    document.write('<param name="bgcolor" value="#fff" /> \n');
    document.write('<div><img src="/images/stories/flash/index.jpg" width="410" height="535" alt="Interaktives Spiel" /></div>\n');
    document.write('</object>\n');
}

                  

// virtueller Rundgang durch das APAKT Hamburg Institut



 function RunFoo2()
{
    document.write('<object  type="application/x-shockwave-flash" data="/images/stories/flash/hamburg1.swf" width="600" height="350" style="-moz-user-focus:ignore" title="Virtueller Rundgang durch unser Institut" class="fla">\n');
    document.write('<param name="movie" value="/images/stories/flash/hamburg1.swf" />\n');
    document.write('<param name="quality" value="high" /> \n');
    document.write('<param name="wmode" value="transparent" wmode="transparent" /> \n');
    document.write('<div><img src="/images/stories/flash/anwesen.jpg" width="600" height="350" alt="Virtueller Rundgang durch unser Institut" /></div>\n');
    document.write('</object>\n');
}


// Umgebung des Instututes mit Karte


 function RunFoo3()
{
    document.write('<object  type="application/x-shockwave-flash" data="/images/stories/flash/karte.swf" width="565" height="445" style="-moz-user-focus:ignore" title="Anfahrtsweg und Karte" class="fla">\n');
    document.write('<param name="movie" value="/images/stories/flash/karte.swf" />\n');
    document.write('<param name="quality" value="high" /> \n');
    document.write('<param name="wmode" value="transparent" wmode="transparent" /> \n');
    document.write('<div><img src="/images/stories/flash/karte.jpg" width="565" height="445" alt="Anfahrtsweg und Karte" /></div>\n');
    document.write('</object>\n');
}



// Bildershow auf der Beispielseite - Kunsttherapiebeispiele

  function RunFoo4()
{
    document.write('<object  type="application/x-shockwave-flash" data="/images/stories/flash/bilder.swf" width="350" height="470" style="-moz-user-focus:ignore" title="Bildershow einer Gruppenarbeit">\n');
    document.write('<param name="movie" value="/images/stories/flash/bilder.swf" />\n');
    document.write('<param name="quality" value="high" /> \n');
    document.write('<param name="wmode" value="transparent" wmode="transparent" /> \n');
    document.write('<div><img src="/images/stories/flash/bilder.jpg" width="350" height="470" alt="Bildershow einer Gruppenarbeit" /></div>\n');
    document.write('</object>\n');
}


// laden des Flashfilms


function index (url) {
 fenster=window.open(url, "_blank", "width=540px,height=740px, left=0px,top=0px,status=no,scrollbars=yes,resizable=no");
 fenster.focus();
 return false;
}




  //bilder vorausladen


  function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}




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 swap_content( div ) {
displayType = ( document.getElementById( div ).style.display == 'none' ) ? 'block' : 'none';
document.getElementById( div ).style.display = displayType;
}




function faq_content( ul ) {
displayType = ( document.getElementById( ul ).style.display == 'none' ) ? 'block' : 'none';
document.getElementById( ul ).style.display = displayType;
}







