$(document).ready(function() {
 
//	$("#header p").hover(function() {
//   	$('#header span').slideDown('slow', function() {});
//  	}).mouseout(function(){
/*    	$('#header span').slideUp('slow', function() {}); */
//  	});


	
	$('#slider').cycle({
		fx: 		'scrollLeft',
		timeout: 0,
		prev: '.prev',
		next: '.next',
		pager: '#pager',
    	backwards: true,
		speed: 200,
		sync: false
	});

//    $("#draggable").draggable();


        $("#map").mapbox({mousewheel: true}); 
 
 jQuery("#map-nav a").click(function() {//control panel 
            var viewport = $("#map"); 
            //this.className is same as method to be called 
            if(this.className == "zoom" || this.className == "back") { 
                viewport.mapbox(this.className, 2);//step twice 
            } 
            else { 
                viewport.mapbox(this.className); 
            } 
            return false; 
        }); 


 if($.cookie('TEXT_SIZE')) {
  $('#resizer').addClass($.cookie('TEXT_SIZE')); 
 }
 $('#resizer a').click(function() {
  var textSize = $(this).parent().attr('class');
  $('#content').removeClass('small medium large').addClass(textSize);
  $.cookie('TEXT_SIZE',textSize, { path: '/', expires: 10000 });
  return false;
 }); 
 
 
});

/*
$(function() {
    $("#draggable").draggable({axis: "x", contaimnent: "parent"});
});
*/
