

$(document).ready(function(){


                  // -------------------------------------------------- PNG-Fix
                  $(document).pngFix();


                   // Fixed Position Plugin
                   $("#logo").scrollFollow();

                   $("#formID").validationEngine() ;

                   var options2 = {
                    caption:    false,
                    navigation: 'permanent',
                    direction:  'left'
                   }
                   var options3 = {
                    caption:    false,
                    opacity:    1
                   }

                   $('#ppy1').popeye();
                   $('#ppy2').popeye(options2);
                   $('.ppy3').popeye(options3);

                   //Full Caption Sliding (Hidden to Visible)
		  $('.boxgrid.captionfull').hover(function(){
                   $(".cover200", this).stop().animate({top:'120px'},{queue:false,duration:0});
                   $(".cover300", this).stop().animate({top:'247px'},{queue:false,duration:0});
                   $("img.a", this).stop().animate({"opacity": "0"}, "0");
		  }, function() {
                   $(".cover200", this).stop().animate({top:'400px'},{queue:false,duration:0});
                   $(".cover300", this).stop().animate({top:'400px'},{queue:false,duration:0});
                   $("img.a",this).stop().animate({"opacity": "1"}, "0");
		  });



                   $('#linkNews, #linkStrategie, #linkFragen, #linkReferenzen, #linkTeam, #linkJobs, #linkKompakt, #linkKurbad').click(function(){
                   $("#1stCol img.a").stop().animate({"opacity": "1"}, "0");
                   $("#2ndCol img.a").stop().animate({"opacity": "1"}, "0");
                   $("#3rdCol img.a").stop().animate({"opacity": "1"}, "0");

                   $("#1stCol .cover300").stop().animate({top:'400px'},{queue:false,duration:0});
                   $("#2ndCol .cover300").stop().animate({top:'400px'},{queue:false,duration:0});
                   $("#3rdCol .cover300").stop().animate({top:'400px'},{queue:false,duration:0});
                   });










                   $('#linkMarken').click(function(){
                   $("#1stCol img.a").stop().animate({"opacity": "0"}, "0");
                   $("#2ndCol img.a").stop().animate({"opacity": "1"}, "0");
                   $("#3rdCol img.a").stop().animate({"opacity": "1"}, "0");

                   $("#1stCol .cover300").stop().animate({top:'247px'},{queue:false,duration:0});
                   $("#2ndCol .cover300").stop().animate({top:'400px'},{queue:false,duration:0});
                   $("#3rdCol .cover300").stop().animate({top:'400px'},{queue:false,duration:0});
		  });

                   $('#linkProdukte').click(function(){
                   $("#1stCol img.a").stop().animate({"opacity": "1"}, "0");
                   $("#2ndCol img.a").stop().animate({"opacity": "0"}, "0");
                   $("#3rdCol img.a").stop().animate({"opacity": "1"}, "0");

                   $("#1stCol .cover300").stop().animate({top:'400px'},{queue:false,duration:0});
                   $("#2ndCol .cover300").stop().animate({top:'247px'},{queue:false,duration:0});
                   $("#3rdCol .cover300").stop().animate({top:'400px'},{queue:false,duration:0});
		  });

                   $('#linkEvents').click(function(){
                   $("#1stCol img.a").stop().animate({"opacity": "1"}, "0");
                   $("#2ndCol img.a").stop().animate({"opacity": "1"}, "0");
                   $("#3rdCol img.a").stop().animate({"opacity": "0"}, "0");

                   $("#1stCol .cover300").stop().animate({top:'400px'},{queue:false,duration:0});
                   $("#2ndCol .cover300").stop().animate({top:'400px'},{queue:false,duration:0});
                   $("#3rdCol .cover300").stop().animate({top:'247px'},{queue:false,duration:0});
		  });




                   $('#rotate, #rotate2, #rotate3, #rotate4').tabs({ fx: { opacity: 'toggle' }, collapsible: true, deselectable: true });


                      // --------------------------------------------------------

                      /*
	               $('h1').flash(
	                 {
	                     src: 'js/conduitlight.swf',
	                     flashvars: {
	                         css: [
	                             '* { color: #672622;}',
	                             'a { color: #fff; text-decoration: none; }',
	                             'a:hover { color: #00C0FF; text-decoration: none; }'
	                         ].join(' ')
	                     }
	                 },
	                 { version: 7 },
	                 function(htmlOptions) {
	                     htmlOptions.flashvars.txt = this.innerHTML;
	                     this.innerHTML = '<div>'+this.innerHTML+'</div>';
	                     var $alt = $(this.firstChild);
	                     htmlOptions.height = $alt.height();
	                     htmlOptions.width = $alt.width();
	                     $alt.addClass('alt');
	                     $(this)
	                         .addClass('flash-replaced')
	                         .prepend($.fn.flash.transform(htmlOptions));
	                 }
	             );

                      $('.blue').flash(
	                 {
	                     src: 'js/conduitlight.swf',
	                     flashvars: {
	                         css: [
	                             '* { color: #FF0000;}',
	                             'a { color: #fff; text-decoration: none; }',
	                             'a:hover { color: #00C0FF; text-decoration: none; }'
	                         ].join(' ')
	                     }
	                 },
	                 { version: 7 },
	                 function(htmlOptions) {
	                     htmlOptions.flashvars.txt = this.innerHTML;
	                     this.innerHTML = '<div>'+this.innerHTML+'</div>';
	                     var $alt = $(this.firstChild);
	                     htmlOptions.height = $alt.height();
	                     htmlOptions.width = $alt.width();
	                     $alt.addClass('alt');
	                     $(this)
	                         .addClass('flash-replaced')
	                         .prepend($.fn.flash.transform(htmlOptions));
	                 }
	             );

	               $('h2').flash(
	                 {
	                     src: 'js/quadraat.swf',
	                     flashvars: {
	                         css: [
	                             '* { color: #6F6F6F; }',
	                             'a { color: #999999; text-decoration: none; }',
	                             'a:hover { color: #00C0FF; text-decoration: none; }'
	                         ].join(' ')
	                     }
	                 },
	                 { version: 7 },
	                 function(htmlOptions) {
	                     htmlOptions.flashvars.txt = this.innerHTML;
	                     this.innerHTML = '<div>'+this.innerHTML+'</div>';
	                     var $alt = $(this.firstChild);
	                     htmlOptions.height = $alt.height();
	                     htmlOptions.width = $alt.width();
	                     $alt.addClass('alt');
	                     $(this)
	                         .addClass('flash-replaced')
	                         .prepend($.fn.flash.transform(htmlOptions));
	                 }
	             );


	               $('#main h3').flash(
	                 {
	                     src: 'js/conduitlight.swf',
	                     flashvars: {
	                         css: [
	                             '* { color: #FFFFFF; leading: 1px; }',
	                             'h3 { width: 200px; }',
	                             'a { color: #00AFFF; text-decoration: none; }',
	                             'a:hover { color: #00AFFF; text-decoration: none; }'
	                         ].join(' ')
	                     }
	                 },
	                 { version: 7 },
	                 function(htmlOptions) {
	                     htmlOptions.flashvars.txt = this.innerHTML;
	                     this.innerHTML = '<div>'+this.innerHTML+'</div>';
	                     var $alt = $(this.firstChild);
	                     htmlOptions.height = $alt.height();
	                     htmlOptions.width = $alt.width();
	                     $alt.addClass('alt');
	                     $(this)
	                         .addClass('flash-replaced')
	                         .prepend($.fn.flash.transform(htmlOptions));
	                 }
	             );

                      $('span.footerLink').flash(
	                 {
	                     src: 'js/conduitlight.swf',
	                     flashvars: {
	                         css: [
	                             '* { color: #00C0FF; }',
	                             'span.footerLink { width: 300px; }',
	                             'a { color: #efefef; text-decoration: none; }',
	                             'a:hover { color: #00C0FF; text-decoration: none; }'
	                         ].join(' ')
	                     }
	                 },
	                 { version: 7 },
	                 function(htmlOptions) {
	                     htmlOptions.flashvars.txt = this.innerHTML;
	                     this.innerHTML = '<div>'+this.innerHTML+'</div>';
	                     var $alt = $(this.firstChild);
	                     htmlOptions.height = $alt.height();
	                     htmlOptions.width = $alt.width();
	                     $alt.addClass('alt');
	                     $(this)
	                         .addClass('flash-replaced')
	                         .prepend($.fn.flash.transform(htmlOptions));
	                 }
	             );
                      $('span.footerCopy').flash(
	                 {
	                     src: 'js/conduitlight.swf',
	                     flashvars: {
	                         css: [
	                             '* { color: #CFCFCF; }',
	                             'span.footerCopy { width: 300px; }',
	                             'a { color: #999; text-decoration: none; }',
	                             'a:hover { color: #00C0FF; text-decoration: none; }'
	                         ].join(' ')
	                     }
	                 },
	                 { version: 7 },
	                 function(htmlOptions) {
	                     htmlOptions.flashvars.txt = this.innerHTML;
	                     this.innerHTML = '<div>'+this.innerHTML+'</div>';
	                     var $alt = $(this.firstChild);
	                     htmlOptions.height = $alt.height();
	                     htmlOptions.width = $alt.width();
	                     $alt.addClass('alt');
	                     $(this)
	                         .addClass('flash-replaced')
	                         .prepend($.fn.flash.transform(htmlOptions));
	                 }
	             );

                      */
});
