/* Author: Johan Post | Kees-TM

*/

/* cufon */
Cufon.replace('#nav a', {
		 	 fontFamily: 'trajan',
			  hover: {
			 	color:'#b78e4c'
			 }	 	 
		 });
Cufon.replace('h1, h2, h3, h4', { fontFamily: 'trajan'  });

/* display homepage */
$(function() {
    $('#display').cycle({
        fx:     'fade',
        speed:  1500,
        timeout: 6000,
        pager:  '#slidernav',
		slideExpr: 'img'
    });
	

$('#city-list').masonry({columnWidth: 330, itemSelector: '.country' });

	
});

/*= FUNCTION TO CHANGE IMAGES FROM WORLD MAP =*/
function changeImages()
{
    if (document.images) {
        for (var i=0; i<changeImages.arguments.length; i+=2)
        {
            document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
        }
    }
}


/* ========== SCROLL TO ========== */
		

$(".top").click(function() {
	$.scrollTo('#header', {duration: 1000});
	return false;
});

/* ========== END ========== */

// end google maps hotels















// usage: log('inside coolFunc', this, arguments);
// paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/
function log(){
  log.history = log.history || [];   // store logs to an array for reference
  log.history.push(arguments);
  arguments.callee = arguments.callee.caller;  
  if(this.console) console.log( Array.prototype.slice.call(arguments) );
};
// make it safe to use console.log always
(function(b){function c(){}for(var d="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,time,timeEnd,trace,warn".split(","),a;a=d.pop();)b[a]=b[a]||c})(window.console=window.console||{});


