// funciones para el sitio
  $(document).ready(function() {

// agranda fuentes
  // Reset Font Size
$('#fontsizer').jfontsizer({
					applyTo: '.texto',
					changesmall: '2',
					changelarge: '4',
					expire: 30
				});


// accordion  
 
    $("#accordion").accordion({ header: '.titular', autoHeight: false, collapsible: true, active : false });
	
// fancybox	
		$(".lanzador").fancybox({
		'width'				: 410,
		'height'			: 215,
		'autoScale'     	: false,
		'scrolling'			: 'no',
        'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'type'				: 'iframe'
	});
	
$(".lanzador_grande").fancybox({
	'width'				: 550,
	'height'			: 460,
	'autoScale'     	: false,
	'scrolling'			: 'no',
       	'transitionIn'		: 'none',
	'transitionOut'		: 'none',
	'type'				: 'iframe'
});


$(".lanzador_grande2").fancybox({
		'width'		: 550,
		'height'	: 510,
		'autoScale'     : false,
		'scrolling'	: 'no',
        	'transitionIn'	: 'none',
		'transitionOut'	: 'none',
		'type'		: 'iframe'
});

// dropdown para login interior
		
	$(".signin").click(function(e) {
	e.preventDefault();
	$("fieldset#signin_menu").toggle();
	$(".signin").toggleClass("menu-open");
});

$("fieldset#signin_menu").mouseup(function() {
	return false
});
$(document).mouseup(function(e) {
	if($(e.target).parent("a.signin").length==0) {
		$(".signin").removeClass("menu-open");
		$("fieldset#signin_menu").hide();
	}
});    
	
	
  });
  
  function openFullscreen(page) {
var yes = 1;
var no = 0;

var menubar = no;      // The File, Edit, View Menus
var scrollbars = no;   // Horizontal and vertical scrollbars
var locationbar = no;  // The location box with the site URL
var directories = no;  // the "What's New", "What Cool" links
var resizable = no;    // Can the window be resized?
var statusbar = no;    // Status bar (with "Document: Done")
var toolbar = no;      // Back, Forward, Home, Stop toolbar

windowprops = "width=" + (screen.width-10) + ",height=" + (screen.height-50) + ",top=0,left=0";

windowprops += (menubar ? ",menubars" : "") +
(scrollbars ? ",scrollbars" : "") +
(locationbar ? ",location" : "") +
(directories ? ",directories" : "") +
(resizable ? ",resizable" : "") +
(statusbar ? ",status" : "") +
(toolbar ? ",toolbar" : "");

window.open(page, 'fullPopup', windowprops);
}

