// Only create tooltips when document is ready
$(document).ready(function()
{
   // Use the each() method to gain access to each of the elements attributes

      $('#news2').qtip(
      {
         content: '<p>Η Prince Oliver, σας προσφέρει το κομμάτι της ενημέρωσης που σας λείπει, με συνεχή, έγκυρη και ψυχαγωγική ειδησεογραφία...</p>', // Give it some content
         position: 'topMiddle', // Set its position
         hide: {
            fixed: true // Make it fixed so it can be hovered over
         },
         style: {
            padding: '5px 15px', // Give it some extra padding
            name: 'dark' // And style it with the preset dark theme
         }
      });

      $('#store2').qtip(
      {
         content: '<p>Διαδικτυακός τόπος έκθεσης... προσφοράς... ψυχαγωγίας... από την Prince Oliver</p>', // Give it some content
         position: 'topMiddle', // Set its position
         hide: {
            fixed: true // Make it fixed so it can be hovered over
         },
         style: {
            padding: '5px 15px', // Give it some extra padding
            name: 'dark' // And style it with the preset dark theme
         }
      });

      $('#band2').qtip(
      {
         content: '<p>Μουσική χωρίς όρια... με ευαισθησία, σεβασμό και αντίληψη... από την Prince Oliver</p>', // Give it some content
         position: 'topMiddle', // Set its position
         hide: {
            fixed: true // Make it fixed so it can be hovered over
         },
         style: {
            padding: '5px 15px', // Give it some extra padding
            name: 'dark' // And style it with the preset dark theme
         }
      });

      $('#antart2').qtip(
      {
         content: '<p>Πολυχώρος πολιτισμού, τέχνης και πνευματικής απόλαυσης... από την Prince Oliver</p>', // Give it some content
         position: 'topMiddle', // Set its position
         hide: {
            fixed: true // Make it fixed so it can be hovered over
         },
         style: {
            padding: '5px 15px', // Give it some extra padding
            name: 'dark' // And style it with the preset dark theme
         }
      });

      $('#travel2').qtip(
      {
         content: '<p>«Περιπλεύσαι πολλάς πόλεις καλόν» - Πλούταρχος (Περί παίδων η αγωγής, X C)</p>', // Give it some content
         position: 'topMiddle', // Set its position
         hide: {
            fixed: true // Make it fixed so it can be hovered over
         },
         style: {
            padding: '5px 15px', // Give it some extra padding
            name: 'dark' // And style it with the preset dark theme
         }
      });

});







		$(document).ready(function() {
			
				$(".various33").fancybox({
					'width'				: '80%',
					'height'			: '100%',
					'autoScale'			: true,
					'transitionIn'		: 'none',
					'transitionOut'		: 'none',
					'type'				: 'iframe'
				});
				
				$(".various3").fancybox({
					'scrolling'		: 'yes',
					'titleShow'		: false,
					'onClosed'		: function() {
					    $("#login_error").hide();
					}
				});

		function formatTitle(title, currentArray, currentIndex, currentOpts) {
			    return '<div id="tip7-title"><span><a href="javascript:;" onclick="$.fancybox.close();"><img src="../fancybox/fancy_close.png" /></a></span>' + (title && title.length ? '<b>' + title + '</b>' : '' ) + 'Image ' + (currentIndex + 1) + ' of ' + currentArray.length + '</div>';
			}

			$("a.photos").fancybox({
				'showCloseButton'	: true,
				'cyclic'			: true,
				'titlePosition' 		: 'inside',
				'titleFormat'		: formatTitle
			});
			
			$("a.fancybox").attr('rel', 'gallery').fancybox();
			
			
			$(".video").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;
			});
	
			
				$(".various2").fancybox({
					'width'				: '50%',
					'height'			: '80%',
					'autoScale'			: false,
					'scrolling'			: 'no',
					'transitionIn'		: 'none',
					'transitionOut'		: 'none',
					'type'				: 'iframe'
				});
				
				$(".various1").fancybox({
					'width'				: '62%',
					'height'			: '80%',
					'autoScale'			: false,
					'transitionIn'		: 'none',
					'transitionOut'		: 'none',
					'type'				: 'iframe'
				});
				
});



    function formatText(index, panel) {
	  return index + "";
    }

    $(function () {
    
        $('.anythingSlider').anythingSlider({
            easing: "easeInOutSine",     
            autoPlay: true,        
            delay: 3000,                  
            startStopped: true,          
            animationTime: 1000,            
            hashTags: true,                 
            buildNavigation: true,          
    		pauseOnHover: true,             
    		startText: "Ξεκίνα",            
	        stopText: "Παύση",               
	        navigationFormatter: formatText       
        });
        
        $("#slide-jump").click(function(){
            $('.anythingSlider').anythingSlider(6);
        });
        
    });

