

/* -------------------------------------------------------------- 
   
   JavaScripts fuer Qarante
  
-------------------------------------------------------------- */ 


function MM_changeProp(objId,x,theProp,theValue) { //v9.0
  var obj = null; with (document){ if (getElementById)
  obj = getElementById(objId); }
  if (obj){
    if (theValue == true || theValue == false)
      eval("obj.style."+theProp+"="+theValue);
    else eval("obj.style."+theProp+"='"+theValue+"'");
  }
}

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_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

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_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function clearName() {
	document.newClient.ProjektName.value = "";
}

function clearBeschreibung() {
	document.newClient.ProjektBeschreibung.value = "";
}





/* -------------------------------------------------------------- 
   
   jQuery Effekte von Armin
  
-------------------------------------------------------------- */ 



// Nach dem Laden ---------------------------------

 
// Nach dem Laden Logo auf 30% setzen
// jQuery(document).ready(function() {
//    jQuery('#logo').fadeTo(300, 0.3, function() {
//       // Animation complete.
//     });
//  });
 
// Nach dem Laden Logo der Startseite auf 30% setzen
// jQuery(document).ready(function() {
//    jQuery('#logostart').fadeTo(1000, 0.3, function() {
//       // Animation complete.
//     });
//  });
 
// Nach dem Laden Headlines auf 60% setzen
// Wollen wir nicht, wir haben jetzt FLIR
// jQuery(document).ready(function() {
//    jQuery('h1').fadeTo(300, 0.6, function() {
//       // Animation complete.
//     });
//  });

// Nach dem Laden Preview-Text auf 60% setzen
 jQuery(document).ready(function() {
    jQuery('.preview p').fadeTo(300, 0.6, function() {
       // Animation complete.
     });
  });
 
// Nach dem Laden Thumb-Text auf 60% setzen
 jQuery(document).ready(function() {
    jQuery('.thumb p').fadeTo(300, 0.6, function() {
       // Animation complete.
     });
  });
 
 // Nach dem Laden CMS-Blog-Filename auf 60% setzen
 jQuery(document).ready(function() {
    jQuery('.cmsBlog p').fadeTo(300, 0.6, function() {
       // Animation complete.
     });
  });
 
 // Nach dem Laden CMS-Team-Filename auf 60% setzen
 jQuery(document).ready(function() {
    jQuery('.cmsTeam p').fadeTo(300, 0.6, function() {
       // Animation complete.
     });
  });
 
// Nach dem Laden Slogan der Startseite auf 60% setzen
// Wollen wir nicht, wir haben jetzt FLIR
// jQuery(document).ready(function() {
//    jQuery('.slogan').fadeTo(1000, 0.6, function() {
//       // Animation complete.
//     });
//  });

// Nach dem Laden Auftraggeber-Logos der Startseite auf 40% setzen
 jQuery(document).ready(function() {
    jQuery('.client img').fadeTo(300, 0.4, function() {
       // Animation complete.
     });
  });

// Nach dem Laden Alphabet auf Kundenliste auf 40% setzen
 jQuery(document).ready(function() {
    jQuery('.clientLetter').fadeTo(300, 0.4, function() {
       // Animation complete.
     });
  });




// Mouseover ---------------------------------



// Bei Mouseover Logo auf 100% setzen
// jQuery(document).ready(function(){
//   jQuery('#logo').mouseover(function(){
//     jQuery(this).fadeTo(300, 1, function() {
//      // Animation complete.
//	});
//   });
// });
 
// Bei Mouseout Logo auf 30% setzen
// jQuery(document).ready(function(){
//   jQuery('#logo').mouseout(function(){
//     jQuery(this).fadeTo(300, 0.3, function() {
//      // Animation complete.
//	});
//   });
// });

 
// Bei Mouseover Auftraggeber-Logo auf 100% setzen
 jQuery(document).ready(function(){
   jQuery('.client img').mouseover(function(){
     jQuery(this).fadeTo(200, 1, function() {
      // Animation complete.
	});
   });
 });
 
// Bei Mouseout Auftraggeber-Logo auf 40% setzen
   jQuery(document).ready(function(){
     jQuery('.client img').mouseout(function(){
      jQuery(this).fadeTo(200, 0.4, function() {
       // Animation complete.
 	   });
    });
  });
 
 
 
// Blend -------------------------------
 
// Bei Mouseover Logo aufleuchten
   jQuery(document).ready(function(){
      jQuery("#logo").blend({speed:300});
    });

// Bei Mouseover Menü Hintergrund auf Zinnoberrot blenden
   jQuery(document).ready(function(){
      jQuery(".link").blend({speed:250});
    });

// Bei Mouseover Menü Hintergrund auf Zinnoberrot blenden
   jQuery(document).ready(function(){
      jQuery(".nav").blend({speed:250});
    });
   
// Bei Mouseover aktives Menü Hintergrund auf Zinnoberrot blenden
//   jQuery(document).ready(function(){
//      jQuery(".active").blend({speed:150});
//    });
   
// Bei Mouseover Preview Hintergrund auf Zinnoberrot blenden
   jQuery(document).ready(function(){
      jQuery(".preview").blend({speed:250});
    });
   
// Bei Mouseover Thumb Hintergrund auf Zinnoberrot blenden
   jQuery(document).ready(function(){
      jQuery(".thumb").blend({speed:250});
    });
    
// Bei Mouseover Logo Hintergrund auf Zinnoberrot blenden
   jQuery(document).ready(function(){
      jQuery(".client li").blend({speed:250});
    });
   
// Bei Mouseover Personen Bilderränder auf Zinnoberrot blenden
   jQuery(document).ready(function(){
      jQuery(".personImage").blend({speed:250});
    });
   
// Bei Mouseover Personen im Blog Bilderränder auf Zinnoberrot blenden
   jQuery(document).ready(function(){
      jQuery(".blogPersonImage").blend({speed:250});
    });
   
// Bei Mouseover CMS Thumb Hintergrund auf Zinnoberrot blenden
   jQuery(document).ready(function(){
      jQuery(".cmsThumb").blend({speed:250});
    });

// Bei Mouseover CMS Project Hintergrund auf Zinnoberrot blenden
   jQuery(document).ready(function(){
      jQuery(".cmsProject").blend({speed:250});
    });
   
// Bei Mouseover CMS Project Hintergrund auf Zinnoberrot blenden
   jQuery(document).ready(function(){
      jQuery(".cmsTeam").blend({speed:250});
    });
   
// Bei Mouseover CMS Blog Hintergrund auf Zinnoberrot blenden
   jQuery(document).ready(function(){
      jQuery(".cmsBlog").blend({speed:250});
    });
   
// Bei Mouseover CMS Button Hintergrund auf Zinnoberrot blenden
   jQuery(document).ready(function(){
      jQuery(".button").blend({speed:250});
    });
   
// Bei Mouseover Page Thumb Hintergrund auf Weiß blenden
   jQuery(document).ready(function(){
      jQuery(".pagina").blend({speed:250});
    });
   
   
   
// ------------------------------------------- Slider


// Termin
 jQuery(document).ready(function(){
   jQuery("#termin").click(function(){   
	   jQuery("#contentTermin").toggle("blind", function() {
       // Animation complete.
 	   });		   
	 // Alternative:    jQuery("#slide").slideToggle("fast");
   });
 });

// Termin am Anfang unsichtbar
 jQuery(document).ready(function(){
    jQuery("#contentTermin").hide(); 
 });

// Newsletter
 jQuery(document).ready(function(){
   jQuery("#subscribe").click(function(){   
	   jQuery("#contentSubscribe").toggle("blind", function() {
       // Animation complete.
 	   });		   
	 // Alternative:    jQuery("#slide").slideToggle("fast");
   });
 });

// Newsletter am Anfang unsichtbar
 jQuery(document).ready(function(){
    jQuery("#contentSubscribe").hide(); 
 });
 
 // Nachricht an Person
 jQuery(document).ready(function(){
   jQuery("#message").click(function(){   
	   jQuery("#contentMessage").toggle("blind", function() {
       // Animation complete.
 	   });		   
	 // Alternative:    jQuery("#slide").slideToggle("fast");
   });
 });

// Nachricht an Person am Anfang unsichtbar
 jQuery(document).ready(function(){
    jQuery("#contentMessage").hide(); 
 });
 


// Datepicker auf Kontaktseite

 jQuery(function() {
		jQuery("#datepicker").datepicker({
			dateFormat: 'dd.mm.yy',
			showOn: 'button',
			buttonImage: '../style/img/icon_calendar.png',
			buttonImageOnly: true
		});
 });



// CMS Effekte

// Thumb Editorial
 jQuery(document).ready(function(){
   jQuery("#xyz").click(function(){   
	   jQuery("#thumbEditorial").toggle("blind", function() {
       // Animation complete.
 	   });		   
	 // Alternative:    jQuery("#slide").slideToggle("fast");
   });
 });

// Thumb Editorial am Anfang unsichtbar
 jQuery(document).ready(function(){
    jQuery("#thumbEditorial").hide(); 
 });
