var test="";
var browserV="";
var PP=null;

var pfad=""; //"http://www.reginaschulteamhuelse.de/" //Pfad zu den Bild-, Video- und Musikdateien

var hg=190 //Bildhöhe in der Bildseite groß
var hk=165 //Bildhöhe in der Bildseite klein

var avz=0 //ausgewähltes Video
var asz=0 //aktuelle Hauptseite
var amp=0 //aktuelle Musikseite
var zmp=9 //Anzahl Musikseiten
var amz=0 //ausgewählter Song
var agbild=""

var pp="MP"  //benutze Windows media player für songs

var qutype    = ' type="application/x-ms-wmp"';
var mpclassid = ' classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6"';
var classtype = mpclassid;
var wmp=false;

var vol=50;
var volqu=50;
var Lst=0;
var startpos=0;
var usestartpos=false;

//**********************************************************************************
var starts = new Array(11) //1.Song der Musikseite
var stops  = new Array(11) //letzter Song+1 der Musikseite
var mbilder= new Array(11) //Bild zur Musikseite(Dateiname)
var album  = new Array(11) //Titel zur Musikseite
var hoehe  = new Array(11) //Bildhoehen

starts[ 3]=130; stops[ 3]=133; mbilder[ 3]="IndraClub"        ;hoehe[ 3] = 224; album[ 3]="Kalbim"; 
starts[ 0]=110; stops[ 0]=120; mbilder[ 0]="LiebesLeben2"      ;hoehe[ 0] = 300; album[ 0]="Liebes Leben";
starts[ 1]=  0; stops[ 1]= 16; mbilder[ 1]="GinaWild"         ;hoehe[ 1] = 300; album[ 1]="Königin"
starts[ 2]= 20; stops[ 2]= 38; mbilder[ 2]="Knust1"           ;hoehe[ 2] = 300; album[ 2]="Kitchen Music" 
starts[ 4]= 40; stops[ 4]= 52; mbilder[ 4]="ReginaLA"         ;hoehe[ 4] = 300; album[ 4]="Tagebuch"
starts[ 5]= 55; stops[ 5]= 65; mbilder[ 5]="GinaBrav"         ;hoehe[ 5] = 300; album[ 5]="10 Gedanken an Unbekannte"
starts[ 6]= 65; stops[ 6]= 69; mbilder[ 6]="Undine"           ;hoehe[ 6] = 300; album[ 6]="Undine"
starts[ 7]= 75; stops[ 7]= 80; mbilder[ 7]="ReginaLA1"        ;hoehe[ 7] = 300; album[ 7]="Geena And The Magic Bum Bum"
starts[ 8]= 85; stops[ 8]= 88; mbilder[ 8]="GinaWacker"       ;hoehe[ 8] = 300; album[ 8]="Summertime"
starts[ 9]= 90; stops[ 9]= 92; mbilder[ 9]="RuehmkorfRegina"  ;hoehe[ 9] = 300; album[ 9]="Peter Rühmkorf"
starts[10]= 95; stops[10]=102; mbilder[10]="CommunicationTrio";hoehe[10] = 300; album[10]="Communication"

start=starts[amp]  
stop=stops[amp]
amz=start

//*********************************************************************
var vname = new Array(5) //Namen der Videodateien

vname[0]="Gina1.1.1.FS.mov";
vname[1]="Gina2.2.2.FS.mov";
vname[2]="Gina3.3.3.FS.mov";
vname[3]="Gina4.4.4.FS.mov";
vname[4]="Gina5.5.5.FS.mov";
avz=4

//*********************************************************************
  function browser(){

   top.test=top.test+navigator.userAgent;
   pp="HY";

   if(-1 != navigator.userAgent.indexOf("MSIE")){
        browserV="IE";
        if ((navigator.userAgent.indexOf("IEMobile")  > -1) ||
            (navigator.userAgent.indexOf("Phone") > -1)){
            pp="HY";}           
        else{
            pp="MP"; 
            classtype=mpclassid;}}
   else 
   if(-1 != navigator.userAgent.indexOf("Firefox")){
        browserV="FF"
        if (-1 !=  navigator.userAgent.indexOf("Windows")){
            pp="MP";
            classtype=qutype;}
        else{
            pp="PP";}}
   else
   if(-1 != navigator.userAgent.indexOf("Chrome")){
        browserV="Chrome";
        pp="PP";
        classtype=mpclassid;}
   else
   if(-1 != navigator.userAgent.indexOf("Safari")){
        browserV="Safari"
        pp="";
        classtype=qutype;}

  top.test=top.test+browserV+' Player: '+pp;

} 

//********************************************************************
  function setwmp(){

   pp="MP";

   if (browserV == "IE"){
       classtype=mpclassid;}

   if (browserV == "FF"){
       classtype=qutype;}

   iframe.location.href="musik2.html"
}

//---------------------------------------------------------------------
  function setqu(){
   pp="";

   iframe.location.href="musik2.html";
}

//---------------------------------------------------------------------
  function sethy(){
   pp="HY";

   iframe.location.href="musik2.html";
}

//---------------------------------------------------------------------
  function setpp(){
   pp="PP";

   iframe.location.href="musik2.html";
}

//*********************************************************************
  function mover(sz){
   if (asz != sz){
       id='aseite'+sz;
       document.getElementById(id).style.color="#ff4444"}
}

//---------------------------------------------------------------------
  function moverv(sz){
   if (avz != sz){
       id='avideo'+sz;
       document.getElementById(id).style.color='#dd4444'}
}

//---------------------------------------------------------------------
  function moverm(sz){
   ii=top.amz-top.start;

   if (ii != sz){
       id='ymusik'+sz;
       document.getElementById(id).style.color="#dd4444"}
}

//---------------------------------------------------------------------
   function movermd(sz){
   if (top.amp != sz){
       id='amd'+sz;
       document.getElementById(id).style.color='#ff4444'}
} 

//**********************************************************************
  function mout(sz){ 
   if (asz != sz){
       id='aseite'+sz;
       document.getElementById(id).style.color='#ffffff'}
}

//----------------------------------------------------------------------
  function moutv(sz){ 
   if (avz != sz){
       id='avideo'+sz;
       document.getElementById(id).style.color='#ffffff'}
}

//----------------------------------------------------------------------
  function moutm(sz){ 
   ii=top.amz-top.start

   if (ii != sz){
       id='ymusik'+sz;
       document.getElementById(id).style.color='#ffffff'}
}

//----------------------------------------------------------------------
  function moutmd(sz){ 
   if (top.amp != sz){
       id='amd'+sz;
       document.getElementById(id).style.color='#ffffff'}
}

//**********************************************************************
  function klickv(vz){
   avz=vz
}

//**********************************************************************
  function klickm2(mz){

   top.test=top.test+' klick'+' pp:'+top.pp+'/';

   amz=mz
   top.startpos=0;
   top.usestartpos=false;

   if (top.pp == "PP"){
       klickm2PP(mz);0}       
   else{ 
       top.iframe.m2frame.location.href="musik2h"+top.pp+".html";}
}
//**********************************************************************
  function klickm2PP(mz){

   top.refrm(top.amz-top.start);
   var xmname=top.mname[top.amz];

   if (PP == null){
       PP=window.open("",'PP',"width=350,height=200,top=500,left=500,status=no,menubar=0,location=0,toolbar=0,titlebar=0");}   
   if (PP.closed == true){
       PP=window.open("",'PP',"width=350,height=200,top=500,left=500,status=no,menubar=0,location=0,toolbar=0,titlebar=0");}
   
   PP.focus();

   PP.document.write('<html><head><title> </title></head><body bgcolor=#aaaaaa text=#994444>');
   PP.document.write(top.sname[top.amz]);
   
   PP.document.write(''+
                     '<embed src="'+top.pfad+xmname+'.mp3"'+             
                     'width="300" height="100"'+
                     'bgcolor="#aaaaaa"'+  
                     'autoplay="true"'+                
                     'name="QUT">'+
                     '</embed>');

   PP.document.write('</body></html>');
   PP.document.close();
}
//----------------------------------------------------------------------
  function startmusik(){

   //top.test=top.test+' start:'+top.volqu+' pp:'+top.pp;

   if (top.pp == "HY"){
       top.iframe.m2frame.location.href="musik2hHY.html"
       return;}

   if (top.pp == "PP"){
       klickm2PP(0);}
   else{ 
       top.iframe.m2frame.location.href="musik2h"+top.pp+".html"}
}
 
//----------------------------------------------------------------------
  function musikdirekt(mz){
   top.test=top.test+' direkt';

   top.amp=mz
   top.startpos=0;
   top.usestartpos=false;
   top.start=top.starts[mz]
   top.stop =top.stops [mz]
   top.amz  =top.start;

   location.href="musik2.html"
}

//**********************************************************************
  function refr(sz){
   for (i=0; i<6; i++){
        id='aseite'+i;
        document.getElementById(id).style.color='#ffffff'
        id='seite'+i; 
        document.getElementById(id).style.backgroundColor='#777777'}

  id='aseite'+sz;
  document.getElementById(id).style.color='#994444'
  id='seite'+sz; 
  document.getElementById(id).style.backgroundColor='#aaaaaa'

  asz=sz;
}

//*********************************************************************
  function refrv(vz){
   for (i=0; i<5; i++){
        id='avideo'+i;
        document.getElementById(id).style.color='#ffffff'}

   id='avideo'+vz;
   document.getElementById(id).style.color='#994444'
}  

//*********************************************************************
  function refrm(mz){

   ii=top.stop-top.start 
   top.test=top.test+'refrm:'+top.pp+'/'

   for (i=0; i<ii; i++){
        id='tdmusik'+i; 
        top.iframe.document.getElementById(id).style.backgroundColor='#aaaaaa'
        id='ymusik'+i;
        top.iframe.document.getElementById(id).style.color='#ffffff'}

   ii=top.amz-top.start;
   id='ymusik'+ii;
   top.iframe.document.getElementById(id).style.color='#994444';
   id='amd'+top.amp;
   top.iframe.document.getElementById(id).style.color='#994444';
   id='tmd'+top.amp;
   top.iframe.document.getElementById(id).style.backgroundColor='#aaaaaa';
} 

//********************************************************************
  function grossesbild(bild, zurueck){
  agbildzur=zurueck
  agbild=bild
}

//********************************************************************
function filmmakers(){
 top.location.href="http://www.filmmakers.de/filmmakers2/actor.php5?rid=cd98935855f39c313d1fdf41f2df4a48"
}

//********************************************************************
function Playerwahl(){
pp="MP";
top.iframe.m2frame.location.href="musik2h"+top.pp+".html"
}
