﻿// Using jQuery with Other Libraries [http://docs.jquery.com/Using_jQuery_with_Other_Libraries]
  var $j = jQuery.noConflict();


// JavaScript Document
  $j(document).ready(function(){
	// Create printlink 						 
    $j("ul.siteservice li#gotostart").after('<li id="print"><a href=javascript:window.print()>Seite drucken<\/a><\/li>'); 

    
    $j('.scrollingtext').bind('marquee', function() {
		var ob = $j(this);
		var tw = ob.width();
		var ww = ob.parent().width();
		ob.css({ left: -300 });
		ob.animate({ left: ww }, 10000, 'linear', function() {
			ob.trigger('marquee');
		});
	}).trigger('marquee');

// Create the tooltips 

   $j('.note1 a[href].note1').qtip({
     
      content: '<img src="fileadmin/templates/pages/img/klicknote1.gif" alt="Klick!" />',
	    position: 
		{
      		adjust: {
         		x: -200,
         		y: -5
      				}	
  		 },
		 show: { delay: 50 },
		 hide: { delay: 500 }
		

   });
   
      $j('.note2 a[href].note2').qtip({
   
      content: '<img src="fileadmin/templates/pages/img/klicknote2.gif" alt="Klick!" />',
	    position: 
		{
      		adjust: {
         		x: 0,
         		y: -60
				
      				}	
  		 },
		  show: { delay: 50 },
		 hide: { delay: 500 }
		 

   });
	  
	$j('.note3 a[href].note3').qtip({
   
      content: '<img src="fileadmin/templates/pages/img/klicknote3.gif" alt="Klick!" />',
	    position: 
		{
      		adjust: {
         		x: -340,
         		y: -110
				
      				}	
  		 },
		 show: { delay: 50 },
		 hide: { delay: 500 }

   });
	
	$j('.note4 a[href].note4').qtip({
   
      content: '<img src="fileadmin/templates/pages/img/klicknote4.gif" alt="Klick!" />',
	    position: 
		{
      		adjust: {
         		x: -280,
         		y: -97
				
      				}	
  		 },
		  show: { delay: 50 },
		 hide: { delay: 500 }

   });
	
	$j('.note5 a[href].note5').qtip({
   
      content: '<img src="fileadmin/templates/pages/img/klicknote5.gif" alt="Klick!" />',
	    position: 
		{
      		adjust: {
         		x: -180,
         		y: -160
				
      				}	
  		 },
		  show: { delay: 50 },
		 hide: { delay: 500 }

   });
	
	$j('.note6 a[href].note6').qtip({
   
      content: '<img src="fileadmin/templates/pages/img/klicknote6.gif" alt="Klick!" />',
	    position: 
		{
      		adjust: {
         		x: -230,
         		y: -170
				
      				}	
  		 },
		  show: { delay: 50 },
		 hide: { delay: 500 }

   });
   
   
});


  

