//******************* EDWIN ************************//
//*      Funktionsdatei für Jquery Fancybox         *//
//**************************************************//
//   copyright, 03.2009, office@q2e.at   //

// document ready - start
jQuery(document).ready(function() {
  // remove fancybox group attribute - this avoids wrong content in fancybox
  // a link without a source specified shouldn't be displayes by fancybox
  jQuery("span.fancybox a[href='']").removeAttr('rel');
  /*
  jQuery("span.fancybox a").fancybox();
  */
  // create fancybox for share / recommend function
  /*
  jQuery("span.mail_fancybox a").fancybox({
            'titleShow'     : true,
            'titlePosition' : 'over',
            'overlayShow'   : true,
            'overlayOpacity': 0.9,
            'overlayColor'  : '#333',
            'transitionIn'  : 'elastic',
            'centerOnScroll' : true,
            'showCloseButton' : false,
            'autoscale' : true,             
            'width' :300,
            'height' :450,
            'titleFormat' : function(title, currentArray, currentIndex, currentOpts) {
        return '<div id="tip7-title"><span><a href="javascript:;" onclick="$.fancybox.close();"><img src="{main_surl}prog/tps/jquery.fb-1.3.1/closelabel.gif" /></a></span>' + (title && title.length ? '<b>' + title + '</b>' : '' ) + '</div>';
      },
      'hideOnOverlayClick' :false

});
*/
//Image zoom    
$("a[rel=lightbox-group]").fancybox({
            'overlayShow'   : true,
            'overlayOpacity': 0.8,
            'overlayColor'  : '#faecc3',
            //'transitionIn'  : 'elastic',
            //'transitionOut' : 'elastic',
			'titleShow'     : false,
});


//******************* EDWIN Table************************//
//*      Funktionsdatei für Tabellen*//
//**************************************************//
//   copyright, 4.2010, office@q2e.at   //
$(" table.ct_table2 tr:even td").addClass("odd");



//if index logo change text
if (c_contenttype == 0){
    //Logo text
    jQuery('.logo a').attr('href','#');
    jQuery('.logo img').attr({
            title: logo_link_label_si,
            alt: logo_link_label_si
    });

  jQuery("body").find("a[href='']").each(function(){
    var temp = jQuery(this).html();
    jQuery(this).parent().html(temp);
  });


//find Max Height for SI boxes
var maxheight_sitext_h=0;
$('.si_area_box_head').each(function() {      
  var maxheight_sitext_h_temp= $(this).height();
  if (maxheight_sitext_h_temp > maxheight_sitext_h){maxheight_sitext_h = maxheight_sitext_h+maxheight_sitext_h_temp;}
});
$('.si_area_box_head').css({'height': maxheight_sitext_h});

var maxheight_sitext=0;
$('.si_area_box_container_text').each(function() {      
  var maxheight_sitext_temp= $(this).height();
  if (maxheight_sitext_temp > maxheight_sitext){maxheight_sitext = maxheight_sitext_temp;}
});
$('.si_area_box_container_text').css({'height': maxheight_sitext});

$('.si_area_container3 .si_area_box1 .si_area_box_head').hide();
var maxheight_sitext_3 = (maxheight_sitext_h + maxheight_sitext)-48;
$('.si_area_container3 .si_area_box1 .si_area_box_container_text').height(maxheight_sitext_3);

}










//document ready - end
});
