// initialize slideshow (Cycle)

$(document).ready(function() {

	if ($('.Slides').length > 0) {

		$('.Slides').cycle({ 

			fx: 'fade',						

			speed: 1000,

			timeout:  24000,

			randomizeEffects: false, 

			easing: 'easeOutCubic',

			next:   '.slideNext', 

			prev:   '.slidePrev',

			pager:  '#slidePager',

			cleartypeNoBg: true,

			before: function() {

				// reset the overlay for the next slide

				$('#SlideRepeat').css('cursor','default').unbind('click'); },

			after: function() {

				// get the link and apply it to the overlay

				var theLink = $(this).children('a');

				var linkURL = (theLink) ? theLink.attr('href') : false;

				if (linkURL) {

					$('#SlideRepeat').css('cursor','pointer').click( function() {

						document.location.href = linkURL;

					});

				}

			}

		});

	}

});

// initialize slideshow (Cycle)

$(document).ready(function() {

	if ($('.Slides_casuta1').length > 0) {

		$('.Slides_casuta1').cycle({ 

			fx: 'uncover',						

			speed: 1000,

			timeout:  24000,

			randomizeEffects: false, 

			easing: 'easeOutCubic',

			next:   '.slideNext_casuta1', 

			prev:   '.slidePrev_casuta1',

			pager:  '.slidepager_casuta1',

			cleartypeNoBg: true,

			before: function() {

				// reset the overlay for the next slide

				$('.SlideRepeat_casuta1').css('cursor','default').unbind('click'); },

			after: function() {

				// get the link and apply it to the overlay

				var theLink = $(this).children('a');

				var linkURL = (theLink) ? theLink.attr('href') : false;

				if (linkURL) {

					$('.SlideRepeat_casuta1').css('cursor','pointer').click( function() {

						document.location.href = linkURL;

					});

				}

			}

		});

	}

});

// initialize slideshow (Cycle)

$(document).ready(function() {

	if ($('.Slides_casuta2').length > 0) {

		$('.Slides_casuta2').cycle({ 

			fx: 'uncover',						

			speed: 1000,

			timeout:  24000,

			randomizeEffects: false, 

			easing: 'easeOutCubic',

			next:   '.slideNext_casuta2', 

			prev:   '.slidePrev_casuta2',

			pager:  '.slidepager_casuta2',

			cleartypeNoBg: true,

			before: function() {

				// reset the overlay for the next slide

				$('.SlideRepeat_casuta2').css('cursor','default').unbind('click'); },

			after: function() {

				// get the link and apply it to the overlay

				var theLink = $(this).children('a');

				var linkURL = (theLink) ? theLink.attr('href') : false;

				if (linkURL) {

					$('.SlideRepeat_casuta2').css('cursor','pointer').click( function() {

						document.location.href = linkURL;

					});

				}

			}

		});

	}

});





// initialize slideshow (Cycle)

$(document).ready(function() {

	if ($('.Slides_casuta3').length > 0) {

		$('.Slides_casuta3').cycle({ 

			fx: 'uncover',						

			speed: 1000,

			timeout:  24000,

			randomizeEffects: false, 

			easing: 'easeOutCubic',

			next:   '.slideNext_casuta3', 

			prev:   '.slidePrev_casuta3',

			pager:  '.slidepager_casuta3',

			cleartypeNoBg: true,

			before: function() {

				// reset the overlay for the next slide

				$('.SlideRepeat_casuta3').css('cursor','default').unbind('click'); },

			after: function() {

				// get the link and apply it to the overlay

				var theLink = $(this).children('a');

				var linkURL = (theLink) ? theLink.attr('href') : false;

				if (linkURL) {

					$('.SlideRepeat_casuta3').css('cursor','pointer').click( function() {

						document.location.href = linkURL;

					});

				}

			}

		});

	}

});

function showhide(){
	if(document.getElementById('form_email').style.display=='none') {
		document.getElementById('form_email').style.display='block'} else {
			document.getElementById('form_email').style.display='none'}
}
