



/**
 * Helper function for printing out debug messages.
 * Not needed for jCarousel.
 */
/*var row = 1;
function display(s) {
    // Log to Firebug (getfirebug.com) if available
    //if (window.console != undefined && typeof window.console.log == 'function')
      //  console.log(s);

    if (row >= 1000)
        var r = row;
    else if (row >= 100)
        var r = '&nbsp;' + row;
    else if (row >= 10)
        var r = '&nbsp;&nbsp;' + row;
    else
        var r = '&nbsp;&nbsp;&nbsp;' + row;

    jQuery('#display').html(jQuery('#display').html() + r + ': ' + s + '<br />').get(0).scrollTop += 10000;

    row++;
};
*/






$(document).ready(function() {


	//$('#header img').attr('src','/wordpress/wp-content/themes/clickgnosis.com/tpl/bg-logo.jpg');
	
	// External links
	$('a.blank').attr('target', '_blank');
	
	// Corner...
	
	//$('#menu li a').corner();
	//$('#myCarousel').corner();
	$('#carousel li p.img').corner();
	$('#footer').corner();
	$('#path').corner();
	
	$('body.archive #content ul a.corner').corner();
	
	
	$('body.single #media').corner();
	
	$('body.page #content div.img').corner();
	
	$('body.blog_index #media').corner();
	$('body.blog_index #sidebar li a.thumb').corner();
	
	$('body.reservaSalvaje #content p.img').corner();
	$('body.reservaSalvaje #callUs').corner();

	
	
	
	
	
	//$('body.sensorama #content').removeClass();
	/*$('body.sensorama a.jqzoom').hover(
		function () {
			$('body.sensorama #content').addClass('hover');
		}, 
		function () {
			$('body.sensorama #content').removeClass();
		}
    );*/
 
	
	
	/*$('.jcarousel-control a').click(function(){
		$('.jcarousel-control a').removeClass('active'); 
		jQuery(this).addClass('active');
	});
 
    $("#myCarousel").jcarousel({
        scroll: 1,
        initCallback: myCarousel_initCallback,
        //itemLoadCallback: mycarousel_itemLoadCallback
        //itemFirstInCallback:  mycarousel_itemFirstInCallback, 
        //itemLastInCallback:   mycarousel_itemLastInCallback,
        //itemVisibleInCallback: {
        //    onBeforeAnimation: mycarousel_itemVisibleInCallbackBeforeAnimation,
        //    onAfterAnimation:  mycarousel_itemVisibleInCallbackAfterAnimation
        //},
        // This tells jCarousel NOT to autobuild prev/next buttons
        //buttonNextHTML: null,
        //buttonPrevHTML: null
    });*/
    
    $("#carousel").carousel( { 
    	pagination: true,
    	loop: true,
    	autoSlide: true, 
        autoSlideInterval: 10000,
        delayAutoSlide: 6000,
    	//direction: "vertical",
    	animSpeed: "slow"

    } );
    
   //$('#portfolio').innerfade({ speed: 'slow', timeout: 4000, type: 'sequence', containerheight: '220px' }); 
	
	
});




