


function resizeLeftMenu(height)
{
//alert(height);
  $("#left").attr('style','height: '+(height+2)+'px');
  $("#left_flash").attr('height',(height+2));
}


$(document).ready(function(){
//---------- START DOCUMENT READY -------------//   
	
	
    
 /*
FLIR.init( { path: liveSite+'/facelift/' } );

FLIR.replace( 'h2' , new FLIRStyle({ cFont:'swis721' , mode:'wrap' }) );
FLIR.replace( 'h3' , new FLIRStyle({ cFont:'swis721' , mode:'wrap', cColor:'adadad' }) );
FLIR.replace( 'h4' , new FLIRStyle({ cFont:'swis721' , mode:'wrap' }) );

FLIR.replace('div#menu a',  new FLIRStyle( {cFont:'helvetica2' , mode:'wrap', cColor:'9c9c9c' }, new FLIRStyle( { cFont:'helvetica2',cColor:'a8003b' } ) ) );
FLIR.replace('div#left strong',  new FLIRStyle( {cFont:'swis721' , mode:'wrap', cColor:'a8003b' } ) );
FLIR.replace('div#menu strong',  new FLIRStyle( {cFont:'helvetica2' , mode:'wrap', cColor:'a8003b' } ) );
FLIR.replace('div#left a',  new FLIRStyle( {cFont:'swis721' , mode:'wrap', cColor:'9c9c9c' }, new FLIRStyle( { cFont:'swis721',cColor:'a8003b' } ) ) );
*/
	 
	 
//---------- STOP DOCUMENT READY -------------//  	 
 });
 
 
 
 $(document).ready(function(){
//---------- START DOCUMENT READY -------------//   
	 	 
	 
	 $('.big_box, .small_box').click(function()
	 {
	  if ( $(this).find('a').attr('href') != undefined )
	 	 window.location =	$(this).find('a').attr('href');

	 });
	   $('h2').css('visibility','visible');	 
	 
//---------- STOP DOCUMENT READY -------------//  	 
 });

Shadowbox.init({
  skipSetup: true, 
    language:   "de-DE",
    players:  ['img', 'html', 'iframe', 'qt', 'wmp', 'swf', 'flv']
});


/* Shadowbox img for IMG_SHADOWBOX class */
	$(document).ready(function()
	{	
		$('.img_shadowbox').click(function()
		{	
		  	Shadowbox.open({
		        content:    $(this).attr('src'),
		        player:     "img"
		    });
		 });  	
  	});
 /* Shadowbox img */


$(document).ready(function(){
  $('.gallery_popup').click(function()
  {
      var slides = '';
      $.post(liveSite+"/ajax_shadowbox.php", { id: $(this).attr('href') },
      function(data){
	
	      var slides = new Array();
	
	      for ( var dn in data )
	      {
		      slides[dn] = new Object;  			
		      if ( data[dn]['player'] )
				slides[dn].player = data[dn]['player'];
		      if ( data[dn]['content'] )
			      slides[dn].content = data[dn]['content'];
		      if ( data[dn]['width'] )
			      slides[dn].width = data[dn]['width'];
		      if ( data[dn]['height'] )
			      slides[dn].height = data[dn]['height'];
		      if ( data[dn]['title'] )
			      slides[dn].title = data[dn]['title'];
		      
	      }
	
	Shadowbox.open(slides);
	}, "json");
    

    return false;
  });



});
