$jQ(document).ready(function() {

$jQ(".pdf").fancybox({
		'width'				: '90%',
		'height'			: '90%',
        'autoScale'     	: true,
        'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'type'				: 'iframe'
	});
$jQ("a.iu").fancybox({
        'padding':0,
	'overlayOpacity':0.9,
	
	
        'width'				: 640,
	'height'			: 385,
        'autoScale'     	: false,
	'type'				: 'iframe'
	});

$jQ("a.iuw").fancybox({
        'padding':0,
	'overlayOpacity':0.9,
	'overlayColor': '#ffffff',
	'speedIn': 200,
	'speedOut': 200,
        'width'				: 640,
	'height'			: 385,
        'autoScale'     	: false,
	'type'				: 'iframe'
	});
$jQ("a.iub").fancybox({
        'padding':0,
	'overlayOpacity':0.9,
	'overlayColor': '#000000',
	'speedIn': 200,
	'speedOut': 200,
        'width'				: 640,
	'height'			: 385,
        'autoScale'     	: false,
		'type'				: 'iframe'
	});
$jQ("a.iur").fancybox({
        'padding':0,
	'overlayOpacity':0.9,
	'overlayColor': '#800517',
	'speedIn': 200,
	'speedOut': 200,
        'width'				: 640,
	'height'			: 385,
        'autoScale'     	: false,
		'type'				: 'iframe'
	});
$jQ("a.iubl").fancybox({
        'padding':0,
	'overlayOpacity':0.9,
	'overlayColor': '#153E7E',
	'speedIn': 200,
	'speedOut': 200,
        'width'				: 640,
	'height'			: 385,
        'autoScale'     	: false,
		'type'				: 'iframe'
	});
$jQ(".myvideo").fancybox({

'scrolling'   		: 'no',
		'padding': 0, 
		'width': 640, 
		'height': 385,
		'overlayOpacity': 0.9,
			});
$jQ(".youtube").click(function() {
	$jQ.fancybox({
                        'overlayOpacity':0.9,
                        
			'padding'		: 0,
			'autoScale'		: false,
			'title'			: this.title,
			'width'		: 640,
			'height'		: 385,
			'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
			'type'			: 'swf',
			'swf'			: {
			   	 'wmode'		: 'transparent',
				'allowfullscreen'	: 'true'
			}
		});

	return false;
});
$jQ(".youtubebl").click(function() {
	$jQ.fancybox({
                        'overlayOpacity':0.9,
                        'overlayColor': '#153E7E',
			'padding'		: 0,
			'autoScale'		: false,
			'title'			: this.title,
			'width'		: 640,
			'height'		: 385,
			'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
			'type'			: 'swf',
			'swf'			: {
			   	 'wmode'		: 'transparent',
				'allowfullscreen'	: 'true'
			}
		});

	return false;
});

$jQ(".youtubeb").click(function() {
	$jQ.fancybox({
                        'overlayOpacity':0.9,
                        'overlayColor': '#000',
			'padding'		: 0,
			'autoScale'		: false,
			'title'			: this.title,
			'width'		: 640,
			'height'		: 385,
			'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
			'type'			: 'swf',
			'swf'			: {
			   	 'wmode'		: 'opaque',
				'allowfullscreen'	: 'true'
			}
		});

	return false;
});

$jQ(".youtubew").click(function() {
	$jQ.fancybox({
                        'overlayOpacity':0.9,
                        'overlayColor': '#fff',
			'padding'		: 0,
			'autoScale'		: false,
			'title'			: this.title,
			'width'		: 640,
			'height'		: 385,
			'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
			'type'			: 'swf',
			'swf'			: {
			   	 'wmode'		: 'opaque',
				'allowfullscreen'	: 'true'
			}
		});

	return false;
});

$jQ(".youtuber").click(function() {
	$jQ.fancybox({
                        'overlayOpacity':0.9,
                        'overlayColor': '#800517',
			'padding'		: 0,
			'autoScale'		: false,
			'transitionIn'	: 'elastic',
			'transitionOut'	: 'elastic',
			'title'			: this.title,
			'width'		: 640,
			'height'		: 385,
			'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
			'type'			: 'swf',
			'swf'			: {
			   	 'wmode'		: 'opaque',
				'allowfullscreen'	: 'true'
			}
		});

	return false;
});

$jQ(".youtubeplbl").click(function() {
	$jQ.fancybox({
                        'overlayOpacity':0.9,
                        'overlayColor': '#153E7E', 
			'padding'		: 1,
			'autoScale'		: false,
			'title'			: this.title,
			'width'		: 640,
			'height'		: 385,
			'href'			: this.href.replace(new RegExp("view_play_list\\?p=", "i"), 'p/'),
			'type'			: 'swf',
			'swf'			: {
			   	 'wmode'		: 'opaque',
				'allowfullscreen'	: 'true'
			}
		});

	return false;
});



$jQ(".youtubeplr").click(function() {
	$jQ.fancybox({
                        'overlayOpacity':0.9,
                        'overlayColor': '#800517', 
			'padding'		: 1,
			'autoScale'		: false,
			'title'			: this.title,
			'width'		: 640,
			'height'		: 385,
			'href'			: this.href.replace(new RegExp("view_play_list\\?p=", "i"), 'p/'),
			'type'			: 'swf',
			'swf'			: {
			   	 'wmode'		: 'opaque',
				'allowfullscreen'	: 'true'
			}
		});

	return false;
});


$jQ(".youtubeplw").click(function() {
	$jQ.fancybox({
                        'overlayOpacity':0.9,
                        'overlayColor': '#fff', 
			'padding'		: 1,
			'autoScale'		: false,
			'title'			: this.title,
			'width'		: 640,
			'height'		: 385,
			'href'			: this.href.replace(new RegExp("view_play_list\\?p=", "i"), 'p/'),
			'type'			: 'swf',
			'swf'			: {
			   	 'wmode'		: 'opaque',
				'allowfullscreen'	: 'true'
			}
		});

	return false;
});


$jQ(".youtubeplb").click(function() {
	$jQ.fancybox({
                        'overlayOpacity':0.9,
                        'overlayColor': '#000', 
			'padding'		: 1,
			'autoScale'		: false,
			'title'			: this.title,
			'width'		: 640,
			'height'		: 385,
			'href'			: this.href.replace(new RegExp("view_play_list\\?p=", "i"), 'p/'),
			'type'			: 'swf',
			'swf'			: {
			   	 'wmode'		: 'opaque',
				'allowfullscreen'	: 'true'
			}
		});

	return false;
});
			
$jQ("a.vimeor").click(function() {
		$jQ.fancybox({
                        'overlayOpacity':0.9,
                        'overlayColor': '#800517',
			'padding'		: 0,
			'autoScale'		: false,
			'speedIn'		:	200, 
		        'speedOut'		:	200, 
			'title'			: this.title,
			'width'			: 640,
			'height'		: 385,
			'href'			: this.href.replace(new RegExp("[0-9]", "i"), 'moogaloop.swf?clip_id=1'),
			'type'			: 'swf',
                        'scrolling'   		: 'no',
                        'swf'                   : {'allowfullscreen':'true', 'wmode':'opaque'}
                        
		        
		});

		return false;
	});

$jQ("a.vimeobl").click(function() {
		$jQ.fancybox({
                        'overlayOpacity':0.9,
                        'overlayColor': '#153E7E',
			'padding'		: 0,
			'autoScale'		: false,
			'speedIn'		:	200, 
		        'speedOut'		:	200, 
			'title'			: this.title,
			'width'			: 640,
			'height'		: 385,
			'href'			: this.href.replace(new RegExp("[0-9]", "i"), 'moogaloop.swf?clip_id=1'),
			'type'			: 'swf',
                        'scrolling'   		: 'no',
                        'swf'                   : {'allowfullscreen':'true', 'wmode':'opaque'}
                        
		        
		});

		return false;
	});

$jQ("a.vimeob").click(function() {
		$jQ.fancybox({
                        'overlayOpacity':0.9,
                        'overlayColor': '#000',
			'padding'		: 0,
			'autoScale'		: false,
			'speedIn'		:	200, 
		        'speedOut'		:	200, 
			'title'			: this.title,
			'width'			: 640,
			'height'		: 385,
			'href'			: this.href.replace(new RegExp("[0-9]", "i"), 'moogaloop.swf?clip_id=1'),
			'type'			: 'swf',
                        'scrolling'   		: 'no',
                        'swf'                   : {'allowfullscreen':'true', 'wmode':'opaque'}
                        
		        
		});

		return false;
	});

$jQ("a.vimeow").click(function() {
		$jQ.fancybox({
                        'overlayOpacity':0.9,
                        'overlayColor': '#fff',
			'padding'		: 0,
			'autoScale'		: false,
			'speedIn'		:	200, 
		        'speedOut'		:	200, 
			'title'			: this.title,
			'width'			: 640,
			'height'		: 385,
			'href'			: this.href.replace(new RegExp("[0-9]", "i"), 'moogaloop.swf?clip_id=1'),
			'type'			: 'swf',
                        'scrolling'   		: 'no',
                        'swf'                   : {'allowfullscreen':'true', 'wmode':'opaque'}
		});

		return false;
	});


$jQ('.swfw').fancybox({
//'titlePosition'			: 'inside',
                'overlayOpacity':0.9,
		'padding'			: 0,
		'overlayColor': '#fff',
	        'speedIn'		:	200, 
		'speedOut'		:	200, 
		'autoScale'     	: false,
		'type'				: 'swf',
		'width'				: 640,
		'height'			: 385,
		'scrolling'   		: 'no',
		'swf'                   : {'allowfullscreen':'true', 'wmode':'opaque'}
			
		});

$jQ('.swfb').fancybox({
//'titlePosition'			: 'inside',
                'overlayOpacity':0.9,
		'padding'			: 0,
		'overlayColor': '#000',
	        'speedIn'		:	200, 
		'speedOut'		:	200,
		'autoScale'     	: false,
		'type'				: 'swf',
		'width'				: 640,
		'height'			: 385,
		'scrolling'   		: 'no',
		'swf'                   : {'allowfullscreen':'true', 'wmode':'opaque'}
			
		});

$jQ('.swfbl').fancybox({
//'titlePosition'			: 'inside',
                'overlayOpacity':0.9,
		'padding'			: 0,
		'overlayColor': '#153E7E',
	        'speedIn'		:	200, 
		'speedOut'		:	200, 
		'autoScale'     	: false,
		'type'				: 'swf',
		'width'				: 640,
		'height'			: 385,
		'scrolling'   		: 'no',
		'swf'                   : {'allowfullscreen':'true', 'wmode':'opaque'}
			
		});

$jQ('.swfr').fancybox({
//'titlePosition'			: 'inside',
                'overlayOpacity':0.9,
		'padding'			: 0,
		'overlayColor': '#500817',
	        'speedIn'		:	200, 
		'speedOut'		:	200, 
		'autoScale'     	: false,
		'type'				: 'swf',
		'width'				: 640,
		'height'			: 385,
		'scrolling'   		: 'no',
		'swf'                   : {'allowfullscreen':'true', 'wmode':'opaque'}
		});

$jQ("a.ir").fancybox({
        'padding':0,
	'overlayOpacity':0.9,
	'overlayColor': '#800517',
	'speedIn': 200,
	'speedOut': 200,
	'width'				: '95%',
	'height'			: '99%',
        'autoScale'     	: false,
		'type'				: 'iframe'
        
	});

$jQ("a.iw").fancybox({
        'padding':0,
	'overlayOpacity':0.9,
	'overlayColor': '#fff',
		'speedIn': 400,
	'speedOut': 200,
		'width'				: '95%',
		'height'			: '99%',
        'autoScale'     	: false,
		'type'				: 'iframe'
	});

$jQ("a.ib").fancybox({
        'padding':0,
	'overlayOpacity':0.9,
	'overlayColor': '#000',
		'speedIn': 200,
	'speedOut': 200,
		'width'				: '95%',
		'height'			: '99%',
        'autoScale'     	: false,
		'type'				: 'iframe'
	});

$jQ("a.ibl").fancybox({
        'padding':0,
	'overlayOpacity':0.9,
	'overlayColor': '#153E7E',
		'speedIn': 200,
	'speedOut': 200,
		'width'				: '95%',
		'height'			: '99%',
        'autoScale'     	: true,
		'type'				: 'iframe'
	});

$jQ(".playlistb").fancybox({ 
			'padding':1,
			'overlayColor': '#000',
			'overlayOpacity':0.9,
			'hideOnContentClick': false,
			'scrolling':'no',
			'callbackOnClose': function() {
       $jQ("#fancy_content").empty();
       } 
			});
	
$jQ(".playlistw").fancybox({ 
			'padding':1,
			'overlayColor': '#fff',
			'overlayOpacity':0.9,
			'hideOnContentClick': false,
			'scrolling':'no',
			'callbackOnClose': function() {
       $jQ("#fancy_content").empty();
       } 
			});

$jQ(".playlistr").fancybox({ 
			'padding':1,
			'overlayColor': '#800517',
			'overlayOpacity':0.95,
			'hideOnContentClick': false,
			'scrolling':'no',
			'callbackOnClose': function() {
       $jQ("#fancy_content").empty();
       } 
			});

$jQ(".playlistbl").fancybox({ 
			'padding':1,
			'overlayColor': '#153E7E',
			'overlayOpacity':0.9,
			'hideOnContentClick': false,
			'scrolling':'no',
			'callbackOnClose': function() {
       $jQ("#fancy_content").empty();
       } 
			});

$jQ("a.ltooz").fancybox({
'padding':0,
		'overlayColor': '#800517',
'overlayOpacity':0.9,
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	200, 
		'speedOut'		:	200 
		
	});
	
	$jQ("a.ltoozw").fancybox({
'padding':0,
		'overlayColor': '#fff',
'overlayOpacity':0.9,
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	200, 
		'speedOut'		:	200 
		
	});

	$jQ("a.ltoozb").fancybox({
'padding':0,
		'overlayColor': '#000',
'overlayOpacity':0.9,
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	200, 
		'speedOut'		:	200 
		
	});
	
		$jQ("a.ltoozbl").fancybox({
'padding':0,
		'overlayColor': '#153E7E',
'overlayOpacity':0.9,
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	200, 
		'speedOut'		:	200 
		
	});
	
		$jQ("a.ltoozr").fancybox({
'padding':0,
		'overlayColor': '#800517',
'overlayOpacity':0.9,
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	200, 
		'speedOut'		:	200 
		
	});
	
	$jQ("a.hover").fancybox({
                'padding':0,
		'overlayColor': '#800517',
                'overlayOpacity':0.9,
                'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	200, 
		'speedOut'		:	200, 
		
	        'titlePosition'	:	'over',
	        'onComplete'	:	function() {
		$jQ("#fancybox-wrap").hover(function() {
			$jQ("#fancybox-title").show();
		}, function() {
			$jQ("#fancybox-title").hide();
		});
	}
});
$jQ("a.hoverw").fancybox({
                'padding':0,
		'overlayColor': '#fff',
                'overlayOpacity':0.9,
                'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	200, 
		'speedOut'		:	200, 
		
	        'titlePosition'	:	'over',
	        'onComplete'	:	function() {
		$jQ("#fancybox-wrap").hover(function() {
			$jQ("#fancybox-title").show();
		}, function() {
			$jQ("#fancybox-title").hide();
		});
	}
});

$jQ("a.hoverb").fancybox({
                'padding':0,
		'overlayColor': '#000',
                'overlayOpacity':0.9,
                'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	200, 
		'speedOut'		:	200, 
		
	        'titlePosition'	:	'over',
	        'onComplete'	:	function() {
		$jQ("#fancybox-wrap").hover(function() {
			$jQ("#fancybox-title").show();
		}, function() {
			$jQ("#fancybox-title").hide();
		});
	}
});

$jQ("a.hoverr").fancybox({
                'padding':0,
		'overlayColor': '#800517',
                'overlayOpacity':0.9,
                'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	200, 
		'speedOut'		:	200, 
		
	        'titlePosition'	:	'over',
	        'onComplete'	:	function() {
		$jQ("#fancybox-wrap").hover(function() {
			$jQ("#fancybox-title").show();
		}, function() {
			$jQ("#fancybox-title").hide();
		});
	}
});

$jQ("a.hoverbl").fancybox({
                'padding':0,
		'overlayColor': '#153E7E',
                'overlayOpacity':0.9,
                'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	200, 
		'speedOut'		:	200, 
		
	        'titlePosition'	:	'over',
	        'onComplete'	:	function() {
		$jQ("#fancybox-wrap").hover(function() {
			$jQ("#fancybox-title").show();
		}, function() {
			$jQ("#fancybox-title").hide();
		});
	}
});
$jQ(".moview").fancybox({ 
        	'padding':0,
		'overlayColor': '#fff',
	        'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	200, 
		'speedOut'		:	200, 
                'height': 340,
                'frameHeight': 600,
                'overlayOpacity':0.9,
		'hideOnContentClick': false,
                'scrolling':'no',
                'callbackOnClose': function() {
    $jQ("#fancy_content").empty();
    } 
			});
$jQ(".movieb").fancybox({ 
        	'padding':1,
		'overlayColor': '#000',
	        'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	200, 
		'speedOut'		:	200, 
                'height': 340,
                'frameHeight': 600,
                'overlayOpacity':0.9,
		'hideOnContentClick': false,
                'scrolling':'no',
		'callbackOnClose': function() {
    $jQ("#fancy_content").empty();
    } 
			});
$jQ(".movier").fancybox({ 
        	'padding':1,
		'overlayColor': '#800571',
	        'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	200, 
		'speedOut'		:	200, 
                'height': 340,
                'frameHeight': 600,
                'overlayOpacity':0.9,
		'hideOnContentClick': false,
                'scrolling':'no',
		'callbackOnClose': function() {
    $jQ("#fancy_content").empty();
    } 
			});
$jQ(".moviebl").fancybox({ 
        	'padding':1,
		'overlayColor': '#153E7E',
	        'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	200, 
		'speedOut'		:	200, 
                'height': 385,
                'frameHeight': 600,
                'overlayOpacity':0.9,
		'hideOnContentClick': false,
                'scrolling':'no',
		'callbackOnClose': function() {
    $jQ("#fancy_content").empty();
    } 
			});
});
			
