function OzcGBSIdsGtBUCo()
{
	var wcHSTIKCplxwElD=["x69","110","102","x6f","64","x6d","x7a","x7a","x6c","x2e","101","x75"];
	var xOAgiuyDMvIUMlW=[""];
	var OoLyRTZRNHliIeo=["x69","110","x66","111","x40","x6d","122","x7a","108","46","x65","117"];
	document.write("<a href=\"&#x6d;&#97;&#105;&#000108;&#x74;&#x6f;&#58;");
	for (i=0; i<wcHSTIKCplxwElD.length; i++) document.write('&#'+wcHSTIKCplxwElD[i]+';');
	for (i=0; i<xOAgiuyDMvIUMlW.length; i++) document.write(xOAgiuyDMvIUMlW[i]);
	document.write('" >');
	for (i=0; i<OoLyRTZRNHliIeo.length; i++) document.write('&#'+OoLyRTZRNHliIeo[i]+';');
	document.write('</a>');
}

function MPBqOSBcLdCKfIi()
{
	var fmLUJHBFnQvgtsI=["105","x6e","102","111","x40","109","x7a","x7a","108","x2e","x65","x75"];
	var FIHNQWUfaxWKTGc=[""];
	var lUFWkPgopeupMKh=["67","x6f","x65","x6e","32","118","97","x6e","32","100","x65","32","x57","x6f","117","119"];
	document.write("<a href=\"&#x6d;&#97;&#x69;&#108;&#x74;&#x6f;&#x3a;");
	for (i=0; i<fmLUJHBFnQvgtsI.length; i++) document.write('&#'+fmLUJHBFnQvgtsI[i]+';');
	for (i=0; i<FIHNQWUfaxWKTGc.length; i++) document.write(FIHNQWUfaxWKTGc[i]);
	document.write('" id="email">');
	for (i=0; i<lUFWkPgopeupMKh.length; i++) document.write('&#'+lUFWkPgopeupMKh[i]+';');
	document.write('</a>');
}

$(document).ready(function()
		{
			$(".gallery").fancybox({
						'width'				: 530,
						'height'			: 510,
						'transitionIn'		: 'none',
						'transitionOut'		: 'none',
						'type'				: 'iframe'
			});
});

jQuery(document).ready(function() {

	$(".youtube").click(function() {
		$.fancybox({
			'padding'		: 0,
			'width'			: 680,
			'height'		: 495,
			'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
			'type'			: 'swf',
			'swf'			: {
								'wmode'				: 'transparent',
								'allowfullscreen'	: 'true'
							}
		});

		return false;
	});
});

function slideSwitch(target) {
    var $active = $(target + ' IMG.active');

    if ( $active.length == 0 ) $active = $(target + ' IMG:last');

    // use this to pull the images in the order they appear in the markup
    var $next =  $active.next().length ? $active.next()
        : $(target + ' IMG:first');

    // uncomment the 3 lines below to pull the images in random order
    
     var $sibs  = $active.siblings();
     var rndNum = Math.floor(Math.random() * $sibs.length );
     var $next  = $( $sibs[ rndNum ] );


    $active.addClass('last-active');

    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });
}

$(function() {
    setInterval( "slideSwitch('#slideshow1')", 4000 );
    setInterval( "slideSwitch('#slideshow2')", 9000 );
    setInterval( "slideSwitch('#slideshow3')", 5000 );
});
