﻿// JavaScript Document

$(function() {
		   
	// *** START - load external scripts ***
	
	// Load RssDisplayer
	//loadExternalJS('http://www.google.com/jsapi?key='+gmapsApiKey); 
	//loadExternalJS('/comun/js/melia_ms/ms.widget.rssdisplayer.js');
	
	//****************************************** 
	// Swich to Flickr galleries
/*	switch(wichGallery){
		case 0:
		msFlickr = 'http://api.flickr.com/services/feeds/groups_pool.gne?id='+msFlickrHotel+'&lang=en-us&format=json';
		break;
		case 1:
		msFlickr = 'http://api.flickr.com/services/feeds/groups_pool.gne?id='+msFlickrTravelers+'&lang=en-us&format=json';
		break;
		default:
	}*/
	
	/*loadExternalJS(msFlickr);*/
	//******************************************
/*	
	$('#bannerRotator').cycle({
		fx:    'fade',
		speed:  3000
	 });
	*/
/*	$('#videoDiv').flash (
				{ src: 'http://www.youtube.com/v/'+msYouTube,
				width: 336,
				height: 200,
				play:'true',
				loop:'true',
				rel: 0,
				quality:'high',
				wmode:'transparent',
				allowScriptAccess:'sameDomain'},
				{ version: 8 }
	);*/
	
	startNewCalendar();
	
	addDatosHab10('load',1,0);

/*	loadExternalJS(geoNamesWeatherHeadUrl);*/

});

			//This hides the inline content if JavaScript is supported, but allows it to remain visible if not.
			//<![CDATA[
			document.write("<style type='text/css'>.hidden{display:none;}<\/style>");
			//]]>
			
			$(document).ready(function(){
				//Examples of Global Changes
				$.fn.colorbox.settings.bgOpacity = "0.8";

				//Examples of how to assign the ColorBox event to elements.
				$("a[rel='jack']").colorbox({transition:"fade"});
				$(".group").colorbox({transition:"elastic", contentCurrent:"{current} / {total}"});
				$(".group2").colorbox({transition:"none", fixedWidth:"75%",fixedHeight:"75%", initialWidth:"75%", initialHeight:"75%"});
				$("a.single").colorbox({}, function(){
					alert('Howdy, this is an example callback.');
				});
				$("a[title='Homer Defined']").colorbox();
				$("#flash").colorbox({href:"../content/flash.html"});
				$("a[href='http://google.com']").colorbox({fixedWidth:"80%", fixedHeight:550, iframe:true});
				$("a.events").colorbox({fixedWidth:"90%", fixedHeight:"90%", iframe:true});
				$("a.fancy").colorbox({transition:"elastic", contentCurrent:"{current} / {total}"});
				$("a.iframe").colorbox({fixedWidth:"70%", fixedHeight:"90%", iframe:true});
				$("#inline").colorbox({fixedWidth:"50%", inline:true, href:"#inline_example"});

				//Example of preserving a JavaScript event for inline calls.
				$("#click").click(function(){ 
					$('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
				});
			});
