$(document).ready(function(){

// main slider //
$(document).ready(function(){
		$('.accordion').classicAccordion({width:932, height:400, slideshow:true, shadow:true, alignType:'centerCenter', closedPanelSize:40,
									    panelProperties:{
											0:{captionWidth:380, captionHeight:40, captionTop:330, captionLeft:30},
											1:{captionWidth:380, captionHeight:40, captionTop:330, captionLeft:30},
											2:{captionWidth:380, captionHeight:40, captionTop:330, captionLeft:30},
											3:{captionWidth:380, captionHeight:40, captionTop:330, captionLeft:30},
											4:{captionWidth:380, captionHeight:40, captionTop:330, captionLeft:30},
											5:{captionWidth:290, captionHeight:40, captionTop:330, captionLeft:10},
											6:{captionWidth:380, captionHeight:40, captionTop:330, captionLeft:30},
											7:{captionWidth:380, captionHeight:40, captionTop:330, captionLeft:30},
											8:{captionWidth:380, captionHeight:40, captionTop:330, captionLeft:30},
											9:{captionWidth:380, captionHeight:40, captionTop:330, captionLeft:30},
											10:{captionWidth:380, captionHeight:40, captionTop:330, captionLeft:30}
										}
										});
	});
	

// work section //	
$(document).ready(function() {
			/*
			*   Examples - images
			*/

			/*$("a#example1").fancybox();

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

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

			$("a#example4").fancybox({
				'opacity'		: true,
				'overlayColor'	: '#000',
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'none'
			});

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

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

			$("a#example7").fancybox({
				'titlePosition'	: 'inside'
			});

			$("a#example8").fancybox({
				'titlePosition'	: 'over'
			});*/

			$("a[rel=example_group]").fancybox({
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'none',
				'overlayColor'	: '#000',
				'titlePosition' 	: 'under',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-under">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			
			$("a[rel=example_group2]").fancybox({
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'none',
				'overlayColor'	: '#000',
				'titlePosition' 	: 'under',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-under">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			
			$("a[rel=example_group3]").fancybox({
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'none',
				'overlayColor'	: '#000',
				'titlePosition' 	: 'under',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-under">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			
			$("a[rel=example_group4]").fancybox({
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'none',
				'overlayColor'	: '#000',
				'titlePosition' 	: 'under',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-under">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			
			$("a[rel=example_group5]").fancybox({
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'none',
				'overlayColor'	: '#000',
				'titlePosition' 	: 'under',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-under">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			
			$("a[rel=example_group6]").fancybox({
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'none',
				'overlayColor'	: '#000',
				'titlePosition' 	: 'under',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-under">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});


				$("a[rel=example_group7]").fancybox({
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'none',
				'overlayColor'	: '#000',
				'titlePosition' 	: 'under',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-under">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			
			
			$("a[rel=example_group8]").fancybox({
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'none',
				'overlayColor'	: '#000',
				'titlePosition' 	: 'under',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-under">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			
				$("a[rel=example_group9]").fancybox({
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'none',
				'overlayColor'	: '#000',
				'titlePosition' 	: 'under',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-under">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			
				$("a[rel=example_group10]").fancybox({
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'none',
				'overlayColor'	: '#000',
				'titlePosition' 	: 'under',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-under">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			
			$("a[rel=example_group11]").fancybox({
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'none',
				'overlayColor'	: '#000',
				'titlePosition' 	: 'under',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-under">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			
			$("a[rel=example_group12]").fancybox({
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'none',
				'overlayColor'	: '#000',
				'titlePosition' 	: 'under',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-under">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});

			/*
			*   Examples - various
			

			$("#various1").fancybox({
				'titlePosition'		: 'inside',
				'transitionIn'		: 'none',
				'transitionOut'		: 'none'
			});

			$("#various2").fancybox();

			$("#various3").fancybox({
				'width'				: '75%',
				'height'			: '75%',
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe'
			});

			$("#various4").fancybox({
				'padding'			: 0,
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none'
			});*/
		});

	
});

