// JavaScript Document
// jQuery kompatibilität!!

// BOXGRID
		$(document).ready(function(){
				//To switch directions up/down and left/right just place a "-" in front of the top/left attribute
				//Vertical Sliding
				$('.boxgrid.slidedown').hover(function(){
					$(".cover", this).stop().animate({top:'260px'},{queue:false,duration:300});
				}, function() {
					$(".cover", this).stop().animate({top:'0px'},{queue:false,duration:300});
				});
				//Horizontal Sliding
				$('.boxgrid.slideright').hover(function(){
					$(".cover", this).stop().animate({left:'225px'},{queue:false,duration:300});
				}, function() {
					$(".cover", this).stop().animate({left:'0px'},{queue:false,duration:300});
				});
				//Horizontal Sliding
				$('.boxgrid.slideleft').hover(function(){
					$(".cover", this).stop().animate({left:'-225px'},{queue:false,duration:300});
				}, function() {
					$(".cover", this).stop().animate({left:'0px'},{queue:false,duration:300});
				});
				//Diagnal Sliding
				$('.boxgrid.thecombo').hover(function(){
					$(".cover", this).stop().animate({top:'260px', left:'325px'},{queue:false,duration:300});
				}, function() {
					$(".cover", this).stop().animate({top:'0px', left:'0px'},{queue:false,duration:300});
				});
			
			});
	

// Kontainer verkleinern wenn Klasse = "verkleinern" gesetz wird
$(document).ready(function(){
    $("div.resize").click(function(){
      if( $(this).children("div.resize_content").hasClass("komplett") ) {
         $(this).children("div.resize_content").removeClass("komplett");
        $(this).children("div.resize_content").addClass("resize");
		 $(this).children("div.komplett_footer").removeClass("display");
	   $(this).children("div.resize_footer").addClass("display");
      }
      else {
       $(this).children("div.resize_content").addClass("komplett");
	   $(this).children("div.resize_footer").removeClass("display");
	   $(this).children("div.komplett_footer").addClass("display");
      }
    });

});

		
        
// Hypphenator initiieren        
Hyphenator.config({
        		displaytogglebox : true,
        		minwordlength : 4
        	});
        	Hyphenator.run();
			
			
/*
// GRID-SYSTEM 960
  window.gOverride = {
  urlBase: 'http://gridder.andreehansson.se/releases/latest/',
  gColor: '#338833',
  gColumns: 16,
  gOpacity: 0.25,
  gWidth: 10,
  pColor: '#333388',
  pHeight: 16,
  pOffset: 0,
  pOpacity: 0.35,
  center: true,
  gEnabled: false,
  pEnabled: false,
  setupEnabled: true,
  fixFlash: true,
  size: 960
  }
  createGridder = function() {
    document.body.appendChild(
      document.createElement('script'))
        .src='http://gridder.andreehansson.se/releases/latest/960.gridder.js';
  };

*/


