$(document).ready(function() {
			/*
			*   styles - images
			*/
			
			$("#video_yt").click(function() {
	$.fancybox({
			'padding'		: 0,
			'autoScale'		: false,
			'transitionIn'	: 'none',
			'transitionOut'	: 'none',
			'overlayColor'		: '#000',
				'overlayOpacity'	: 0.55,
			'width'		: 680,
			'height'		: 407,
			'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
			'type'			: 'swf',
			'swf'			: {
			   	 'wmode'		: 'transparent',
				'allowfullscreen'	: 'true'
			}
		});

	return false;
});

$("#video_yt2").click(function() {
	$.fancybox({
			'padding'		: 0,
			'autoScale'		: false,
			'transitionIn'	: 'none',
			'transitionOut'	: 'none',
			'overlayColor'		: '#000',
				'overlayOpacity'	: 0.55,
			'width'		: 680,
			'height'		: 407,
			'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
			'type'			: 'swf',
			'swf'			: {
			   	 'wmode'		: 'transparent',
				'allowfullscreen'	: 'true'
			}
		});

	return false;
});

$("#video_yt3").click(function() {
	$.fancybox({
			'padding'		: 0,
			'autoScale'		: false,
			'transitionIn'	: 'none',
			'transitionOut'	: 'none',
			'overlayColor'		: '#000',
				'overlayOpacity'	: 0.55,
			'width'		: 680,
			'height'		: 407,
			'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
			'type'			: 'swf',
			'swf'			: {
			   	 'wmode'		: 'transparent',
				'allowfullscreen'	: 'true'
			}
		});

	return false;
});

$("#video_yt4").click(function() {
	$.fancybox({
			'padding'		: 0,
			'autoScale'		: false,
			'transitionIn'	: 'none',
			'transitionOut'	: 'none',
			'overlayColor'		: '#000',
				'overlayOpacity'	: 0.55,
			'width'		: 680,
			'height'		: 407,
			'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
			'type'			: 'swf',
			'swf'			: {
			   	 'wmode'		: 'transparent',
				'allowfullscreen'	: 'true'
			}
		});

	return false;
});

$("#video_yt5").click(function() {
	$.fancybox({
			'padding'		: 0,
			'autoScale'		: false,
			'transitionIn'	: 'none',
			'transitionOut'	: 'none',
			'overlayColor'		: '#000',
				'overlayOpacity'	: 0.55,
			'width'		: 680,
			'height'		: 407,
			'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
			'type'			: 'swf',
			'swf'			: {
			   	 'wmode'		: 'transparent',
				'allowfullscreen'	: 'true'
			}
		});

	return false;
});
$("#video_yt6").click(function() {
	$.fancybox({
			'padding'		: 0,
			'autoScale'		: false,
			'transitionIn'	: 'none',
			'transitionOut'	: 'none',
			'overlayColor'		: '#000',
				'overlayOpacity'	: 0.55,
			'width'		: 680,
			'height'		: 407,
			'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
			'type'			: 'swf',
			'swf'			: {
			   	 'wmode'		: 'transparent',
				'allowfullscreen'	: 'true'
			}
		});

	return false;
});

$("#video_yt7").click(function() {
	$.fancybox({
			'padding'		: 0,
			'autoScale'		: false,
			'transitionIn'	: 'none',
			'transitionOut'	: 'none',
			'overlayColor'		: '#000',
				'overlayOpacity'	: 0.55,
			'width'		: 680,
			'height'		: 407,
			'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
			'type'			: 'swf',
			'swf'			: {
			   	 'wmode'		: 'transparent',
				'allowfullscreen'	: 'true'
			}
		});

	return false;
});

$("#video_yt8").click(function() {
	$.fancybox({
			'padding'		: 0,
			'autoScale'		: false,
			'transitionIn'	: 'none',
			'transitionOut'	: 'none',
			'overlayColor'		: '#000',
				'overlayOpacity'	: 0.55,
			'width'		: 680,
			'height'		: 407,
			'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
			'type'			: 'swf',
			'swf'			: {
			   	 'wmode'		: 'transparent',
				'allowfullscreen'	: 'true'
			}
		});

	return false;
});
			$("a#style1").fancybox();

			$("a#style2").fancybox({
				'overlayShow'	: false,
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'elastic'
			});

			$("a#style3").fancybox({
				'transitionIn'	: 'none',
				'transitionOut'	: 'none'	
			});

			$("a#style4").fancybox({
				'opacity'		: true,
				'overlayShow'	: false,
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'none'
			});

			$("a#style5").fancybox();

			$("a#style6").fancybox({
				'titlePosition'		: 'outside',
				'overlayColor'		: '#000',
				'overlayOpacity'	: 0.9
			});

			$("a#style7").fancybox({
				'titlePosition'	: 'inside',
				'overlayColor'		: '#000',
				'overlayOpacity'	: 0.55
			});

			$("a#style8").fancybox({
				'titlePosition'	: 'over'
			});

			$("a[rel=G01]").fancybox({
				'titlePosition' 	: 'inside',
				'overlayColor'		: '#000',
				'overlayOpacity'	: 0.55,
				
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			
						
			$("a[rel=G02]").fancybox({
				'titlePosition' 	: 'inside',
				'overlayColor'		: '#000',
				'overlayOpacity'	: 0.55,
				
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			
			$("a[rel=G03]").fancybox({
				'titlePosition' 	: 'inside',
				'overlayColor'		: '#000',
				'overlayOpacity'	: 0.55,
				
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			})
			
			;$("a[rel=G04]").fancybox({
				'titlePosition' 	: 'inside',
				'overlayColor'		: '#000',
				'overlayOpacity'	: 0.55,
				
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			
			$("a[rel=G05]").fancybox({
				'titlePosition' 	: 'inside',
				'overlayColor'		: '#000',
				'overlayOpacity'	: 0.55,
				
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			
			$("a[rel=G06]").fancybox({
				'titlePosition' 	: 'inside',
				'overlayColor'		: '#000',
				'overlayOpacity'	: 0.55,
				
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			
			$("a[rel=G07]").fancybox({
				'titlePosition' 	: 'inside',
				'overlayColor'		: '#000',
				'overlayOpacity'	: 0.55,
				
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			
			$("a[rel=G08]").fancybox({
				'titlePosition' 	: 'inside',
				'overlayColor'		: '#000',
				'overlayOpacity'	: 0.55,
				
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			
			$("a[rel=G09]").fancybox({
				'titlePosition' 	: 'inside',
				'overlayColor'		: '#000',
				'overlayOpacity'	: 0.55,
				
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			
			$("a[rel=G10]").fancybox({
				'titlePosition' 	: 'inside',
				'overlayColor'		: '#000',
				'overlayOpacity'	: 0.55,
				
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			
			$("a[rel=G11]").fancybox({
				'titlePosition' 	: 'inside',
				'overlayColor'		: '#000',
				'overlayOpacity'	: 0.55,
				
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			
			$("a[rel=G12]").fancybox({
				'titlePosition' 	: 'inside',
				'overlayColor'		: '#000',
				'overlayOpacity'	: 0.55,
				
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			
			$("a[rel=G13]").fancybox({
				'titlePosition' 	: 'inside',
				'overlayColor'		: '#000',
				'overlayOpacity'	: 0.55,
				
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			
			$("a[rel=G14]").fancybox({
				'titlePosition' 	: 'inside',
				'overlayColor'		: '#000',
				'overlayOpacity'	: 0.55,
				
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});

			/*
			*   styles - various
			*/



			$("#flash").fancybox({
				'width'				: '100%',
				'height'			: '100%',
				'autoScale'			: false,
				'titlePosition' 	: 'inside',

				'overlayColor'		: '#000',
				'overlayOpacity'	: 0.55,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe'
			});
			$("#flash2").fancybox({
				'width'				: 800,
				'height'			: 600,
				'autoScale'			: true,
				'titlePosition' 	: 'inside',

				'overlayColor'		: '#000',
				'overlayOpacity'	: 0.55,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe'
			});
			
			$("#rollerproll").fancybox({
				'width'				: '100%',
				'height'			: '100%',
				'autoScale'			: true,
				'titlePosition' 	: 'inside',

				'overlayColor'		: '#000',
				'overlayOpacity'	: 0.55,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe'
			});
		});
		
	
