//(function ($) {
//        $.fn.cross = function (options) {
//            return this.each(function (i) { 
//                var $$ = $(this);
//                var target = $$.css('backgroundImage').replace(/^url|[\(\)'"]/g, '');
//                $$.wrap('<span style="position: relative;"></span>')
//                    .parent()
//                    .prepend('<img>')
//                    .find(':first-child')
//                    .attr('src', target);
//                if ($.browser.mozilla) {
//                    $$.css({
//                        'position' : 'absolute', 
//                        'left' : 0,
//                        'background' : '',
//                        'top' : this.offsetTop
//                    });
//                }else if ($.browser.msie){
//					if ($.browser.version < 8){
//						
//					
//                	$$.css({
//                        'position' : 'absolute', 
//                        'left' : 0,
//                        'background' : '',
//                        'top' : "0"
//                    });
//
//					}else{
//					
//						$$.css({
//                        'position' : 'absolute', 
//                        'left' : 0,
//                        'background' : ''
//                    });
//						
//					}
//				}else if ($.browser.opera && $.browser.version < 9.5) {       
//                    $$.css({
//                        'position' : 'absolute', 
//                        'left' : 0,
//                        'background' : '',
//                        'top' : "0"
//                    });
//                } else { // Safari
//                    $$.css({
//                        'position' : 'absolute', 
//                        'left' : 0,
//                        'background' : ''
//                    });
//                }
//                $$.hover(function () {
//                    $$.stop().animate({
//                        opacity: 0
//                    }, 250);
//                }, function () {
//                    $$.stop().animate({
//                        opacity: 1
//                    }, 250);
//                });
//            });
//        };
//        
//    })(jQuery);
//    $(window).bind('load', function () {
//        $('img.fade').cross();
//    });
//    
//    //OTROS SCRIPT
//    
//    $(document).ready(function(){
//	continuar = function(){
//		$('#autoLanzador').trigger('click');
//		
//	}
//	$("a[rel^='prettyPhoto']").prettyPhoto({
//		show_title: false, 
//		theme:'facebook'
//	});
//	$("a[rel^='prettyPhoto2']").prettyPhoto({
//		show_title: false, 
//		allow_resize: false, /* Resize the photos bigger than viewport. true/false */
//		theme:'facebook'
//	});
//	//$('#autoLanzador').trigger('click');
//	setTimeout("continuar();", 2000)
//	$.prettySociable();
//	$.prettySociable.settings.urlshortener.bitly.active = true;
//	//REDONDEAMOS CAPAS
//	$('.page .contenido').corner();
//	$('.page .noticia').corner();
//	$('.paginas .contenedorGris').corner();
//	$('.paginas .contenedorGrisb').corner();
//	/*
//	$('.paginas img[alt]').qtip({show: { delay: 0 }, style: { name: 'cream', tip: true, border: 5} })
//	$('.paginas href[title]').qtip({show: { delay: 0 }, style: { name: 'cream', tip: true, border: 5} })
//	$('.socialIcons img[alt]').qtip({show: { delay: 0 }, style: { name: 'cream', tip: true, border: 5} })
//	*/
//	$(".enlaceajax").click(function(evento){
//				$(".enlaceajax").fadeIn('slow');
//				$(this).fadeOut('slow');
//				$(".contenido").fadeOut('slow');
//				evento.preventDefault();
//				var parent = $(this).parent();
//				
//				var targetOffset = parent.offset().top-50;
//				$('html,body').animate({scrollTop: targetOffset}, 300);
//				
//				var target = $('div.contenido', parent);
//				var categoria = $(target).attr('id');
//				<?php
//				$idiom = '';
//				$tmp =  __("spa","maraton");
//				if ($tmp != 'spa'){
//					$idiom='ingles';
//				}
//				?>
//				target.load("<?php echo get_bloginfo('template_url'); ?>/generaHTML.php", {paramTipo: 1, paramOpcion: categoria, idioma:'<?= $idiom; ?>'}, function(){
//     			$(this).hide().fadeIn('slow')
//     			});  
// 	});
