// JQuery 
  //<![CDATA[   
    // When the page is ready
    $(document).ready(function(){
	  // Zebra Tables
	  $('tbody tr:nth-child(even)').addClass('even');
	  // Apply link to div container
	  $('#featured .column').click(function(){
        window.location=$(this).find('a').attr('href');
		return false;
	  });
	  // PDF, content-galleries and rel="external" in new window
	  $("a[href$='.pdf'], a[rel='external'], #media-gal a[href^='http://'], #participantes-gal a[href^='http://'], .speaker a[href^='http://'], .expolink a, body.ficha a").click(function() {
        window.open($(this).attr('href') );
        return false;
	  });
	  //prepend span tag
	  $(".pictframe").prepend("<span></span>");
	  // Show Hide Fields
	  $('.ponencia .more').hide();
	  $('.ponencia').append('<p class="verdetalles"><a href="" title="Ver los detalles">Detalles</a></p>');
	  $('.ponencia p.verdetalles a').click(function(){
	    $(this).parents('p').prev('.more').slideToggle('slow');
	    // Stop the link click from doing its normal thing
	    return false;
	  });
	  $('.expandall').click(function(){
	    $('.more').toggle();
		return false;
	  });
	  // gallery slideshow
	  $('#featured-listgallery').cycle({
		fx:      'fade', 
		speed:    1000, 
		timeout:  6000,
		pause:   1,
		random:  1
	  });
	  $('#participantes-gal').cycle({
		fx:      'scrollDown', 
		speed:    2500, 
		timeout:  3500,
		pause:   1,
		random:  1
	  });
	  $('#media-gal').cycle({
		fx:      'scrollDown', 
		speed:    2000, 
		timeout:  3000,
		pause:   1,
		random:  1
	  });
	  // gallery slideshow
	  var omeDate = new Date(2010, 1, 24, 10, 15);
	  $('#countdown').countdown({until: omeDate, format: 'dhms', layout: 'Para OMExpo 2010 solo quedan %D<em>%n</em> %l,%D %H<em>%nn</em> %l,%H %M<em>%nn</em> %l y%M %S<em>%nn</em> %l%S'});	  
	  // Tab Selection
	  $('.tabs').tabs();
	  // Fancy Box Options
	  $('.empresadetalles a, a.co-worker, .speaker small a, a.fancy').fancybox({
	  	'hideOnContentClick': true,
		'overlayShow': true,
		'overlayOpacity': 0.2,
		'frameWidth': 643
	  });
    });
  //]]>