
(function($) {
	$(function() {
		$("#jacms_scroller").simplyScroll({
			className: 'vert',
			horizontal: false,
			frameRate: 20,
			speed: 7			
		}).css("visibility","visible");
		
	});
})(jQuery);

$(document).ready(function() {
			


			$("#hotel").fancybox({
				'width'				: 540,
				'height'			: 350,
				'autoScale'			: false,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'scrolling'			: 'no',
				'titleShow'			: false,
				'overlayColor'		: '#000',
				'overlayOpacity'	: 0.7,
				'type'				: 'iframe',
				'padding'			: 0,
				'margin'			:0
			});
			
			$("#budget").fancybox({
				'width'				: 540,
				'height'			: 545,
				'autoScale'			: false,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'scrolling'			: 'no',
				'titleShow'			: false,
				'overlayColor'		: '#000',
				'overlayOpacity'	: 0.7,
				'type'				: 'iframe',
				'padding'			: 0,
				'margin'			:0
			})
			
			$("#insurance").fancybox({
				'width'				: 540,
				'height'			: 420,
				'autoScale'			: false,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'scrolling'			: 'no',
				'titleShow'			: false,
				'overlayColor'		: '#000',
				'overlayOpacity'	: 0.7,
				'type'				: 'iframe',
				'padding'			: 0,
				'margin'			:0
			});
			
			$("#youTube").fancybox({
				'width'				: 640,
				'height'			: 390,
				'autoScale'			: false,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'scrolling'			: 'no',
				'titleShow'			: false,
				'overlayColor'		: '#000',
				'overlayOpacity'	: 0.7,
				'type'				: 'iframe',
				'padding'			: 0,
				'margin'			:0,
				'type'              : 'swf',    // <--add a comma here
  			'swf'               : {'allowfullscreen':'true', 'wmode':'opaque'} // <-- flashvars here 
			});
			
			
			$("#plan").fancybox({
			'width'				: 570,
			'height'			: 520,
			'autoScale'			: false,
			'transitionIn'		: 'elastic',
			'transitionOut'		: 'elastic',
			'scrolling'			: 'no',
			'titleShow'			: false,
			'overlayColor'		: '#000',
			'overlayOpacity'	: 0.7,
			'padding'			: 0,
			'margin'			:0

		});
		
		$("#plan_video").fancybox({
			'width'				: 640,
			'height'			: 390,
			'autoScale'			: false,
			'transitionIn'		: 'fade',
			'transitionOut'		: 'fade',
			'scrolling'			: 'no',
			'titleShow'			: false,
			'overlayColor'		: '#000',
			'overlayOpacity'	: 0.7,
			'type'				: 'iframe',
			'padding'			: 0,
			'margin'			:0,
			'type'              : 'swf',    // <--add a comma here
  			'swf'               : {'allowfullscreen':'true', 'wmode':'opaque'} // <-- flashvars here 
		});
		
		$('#jacms_rb_slideshow').cycle({
			fx:     'scrollUp',
			timeout: 3000,
			delay:  -2000,
			cleartype:  true,
			cleartypeNoBg:  true,
			pause: 1
		});
		
		
		
		$('#jacms_rb_slideshow').css("display","block");



     	$('body').append('<div class="slide-out-div"><a class="handle" href="">Content</a><iframe src="/static/iframe/survey_2010May.html" marginheight="0" marginwidth="0" hspace="0" vspace="0" width="300" height="500" scrolling="no" frameborder="0"></iframe></div>');
		 
        $(function(){
             $('.slide-out-div').tabSlideOut({
                 tabHandle: '.handle',                              //class of the element that will be your tab
                 //pathToTabImage: '/static/images/general/newsletter_slider/spacer.png',          //path to the image for the tab (optionaly can be set using css)
                 imageHeight: '157px',                               //height of tab image
                 imageWidth: '73px',                               //width of tab image    
                 tabLocation: 'right',                               //side of screen where tab lives, top, right, bottom, or left
                 speed: 300,                                        //speed of animation
                 action: 'click',                                   //options: 'click' or 'hover', action to trigger animation
                 topPos: '60px',                                   //position from the top
                 fixedPosition: false                               //options: true makes it stick(fixed position) on scroll
             });
         });

});
    
    

