// funciones de carga multidominio

function init_tinyMCE(){
	$('textarea.tinymce').tinymce({
		// Location of TinyMCE script
		script_url : fixPathStatic+'js/jQuery/plugins/tiny_mce/tiny_mce.js',

		// General options
		theme : "advanced",
		plugins : "safari,style,table,save,advhr,advimage,advlink,media,contextmenu,paste,",

		// Theme options
		theme_advanced_buttons1 : "save,newdocument,|,cut,copy,paste,|,undo,redo,|,image,|,removeformat",
		theme_advanced_buttons2 : "bold,italic,underline,strikethrough,|,forecolor,backcolor,|,justifyleft,justifycenter,justifyright,justifyfull,|,hr",
		theme_advanced_buttons3 : "fontselect,fontsizeselect",
		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
		theme_advanced_statusbar_location : "bottom",
		theme_advanced_resizing : false

		// Example content CSS (should be your site CSS)
		//content_css : "css/content.css",

		// Drop lists for link/image/media/template dialogs
		// template_external_list_url : "lists/template_list.js",
		// external_link_list_url : "lists/link_list.js",
		// external_image_list_url : "lists/image_list.js",
		// media_external_list_url : "lists/media_list.js",

		// Replace values for the template plugin
		/*template_replace_values : {
			username : "Some User",
			staffid : "991234"
		}*/
	});
}

/* 
 * frame_width y frame_height hay que setearlos igual que en el style de la imagen en miniatura
 * aqui representa el tamaño del borde del div contenedor
 * 
 */
function init_galleryview(){
	$("#galeriaTabsPanel").tabs();
	
	var bg = "#808080";
	
	if (namespace == "spa"){
		bg = "#5C9CCC";
	}else if (namespace == "hotel"){
		bg = "#CCCCCC";
	}else if (namespace == "eventos"){
		bg = "#F7F2EE";
	}
	
	$("#photos").galleryView({
		panel_width:696,
		panel_height: 360,
		frame_width:80,
		frame_height:60,
		overlay_color: '#222',
		overlay_text_color: 'white',
		caption_text_color: '#222',
		background_color: bg,
		border: 'none',
		nav_theme: 'light',
		easing: 'easeInOutQuad',
		pause_on_hover: true
	});
}