$(document).ready(function(){
			
	
	$("a#single_image").fancybox();
	
	/* Using custom settings */
	
	$("a#inline").fancybox({
		'hideOnContentClick': true
	});

	/* Apply fancybox to multiple items */

$(".fancyFlashFrame").fancybox({
    'type': 'iframe',
    'width': 608,
    'height': 385,
    'autoScale': false,
    'transitionIn': 'none',
    'transitionOut': 'none'
});

$("#fancyYoutube").click(function () {
    $.fancybox({
        'padding': 0,
        'autoScale': false,
        'transitionIn': 'none',
        'transitionOut': 'none',
        'title': this.title,
        'width': 680,
        'height': 495,
        'href': this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
        'type': 'swf',
        'swf': {
            'wmode': 'transparent',
            'allowfullscreen': 'true'
        }
    });

    return false;
});


	$("a.group").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'overlayShow'	:	false
	});
	

	$("a.group_image").fancybox({
	});
		
	$("a.group_image").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'overlayShow'	:	false
	});
		
	
	
	$('.fade').mosaic();
	
	$('.circle').mosaic({
		opacity: 0.8			//Opacity for overlay (0-1)
	});
	
	 $('.bar2').mosaic({
		animation: 'slide'		//fade or slide
		});
	 
	$("#slider").nivoSlider({
		directionNavHide:true,
		controlNav:true ,
		animSpeed:800,
		pauseTime:6000
	});
	
	

$("#b00").nivoSlider({
		directionNavHide:false,
		controlNav:true,
		animSpeed:800,
		pauseTime:6000
	});
	
	
	


$("#b01").nivoSlider({
		directionNavHide:false,
		controlNav:true,
		animSpeed:800,
		pauseTime:6000
	});
	

$("#b02").nivoSlider({
		directionNavHide:false,
		controlNav:true,
		animSpeed:800,
		pauseTime:6000
	});


$("#b03").nivoSlider({
    directionNavHide: false,
    controlNav: true,
    animSpeed: 800,
    pauseTime: 6000
});


$("#b04").nivoSlider({
    directionNavHide: false,
    controlNav: true,
    animSpeed: 800,
    pauseTime: 6000
});
	
	$("#b05").nivoSlider({
    directionNavHide: false,
    controlNav: true,
    animSpeed: 800,
    pauseTime: 6000
});
	
	$("#b06").nivoSlider({
    directionNavHide: false,
    controlNav: true,
    animSpeed: 800,
    pauseTime: 6000
});
	
	$("#b07").nivoSlider({
    directionNavHide: false,
    controlNav: true,
    animSpeed: 800,
    pauseTime: 6000
});
$("#tw00").nivoSlider({
		directionNavHide:false,
		controlNav:true,
		animSpeed:800,
		pauseTime:6000
	});
	
	
	


$("#tw01").nivoSlider({
		directionNavHide:false,
		controlNav:true,
		animSpeed:800,
		pauseTime:6000
	});
	
	
	


$("#c00").nivoSlider({
		directionNavHide:false,
		controlNav:true,
		animSpeed:800,
		pauseTime:6000
	});
	
	
	
});


