/* Author: 

*/



		$(function(){
			$('#slides').slides({
				preload: true,
				preloadImage: 'img/loading.gif',
				play: 3000,
				pause: 2500,
				hoverPause: true,
				slideSpeed: 800
					});
		});
		
				 	$(document).ready(function(){
				$('.youtube-videos').youTube({
					videoHeader : null
					,query : ''
					,author :'thestreetground'
					,results : 5
					,thumbnail : 'small'

				});

			});


$(document).ready(function () {
	$('#blogfeed').rssfeed('http://www.streetground.com/feed', {
		limit: 3,
		date: false
	});
});



$(document).ready(function(){
	$('#basicuse').jflickrfeed({
		limit: 12,
		qstrings: {
			id: '68471119@N05'
		},
		itemTemplate: '<li><a class="flickrlbox" href="{{image_b}}"><img src="{{image_s}}" alt="{{title}}" /></a></li>'
	}, function() {
 $(".thumbs li a img").hover(function() {
      $(this).stop().animate({opacity: "0.5"}, 'slow');
    },
    function() {
      $(this).stop().animate({opacity: "1"}, 'slow');
    });
$(".flickrlbox").colorbox({rel:'flickrlbox',maxHeight:'720px'});
		});
	});


	$('.videohover')
		.css( {backgroundPosition: "0 0"} )
		.mouseover(function(){
			$(this).fadeIn("slow")
		})
		.mouseout(function(){
			$(this).fadeOut("slow")
		})

  $(document).ready(function dofade(){
  		
    $(".footerdiv img").hover(function() {
      $(this).stop().animate({opacity: "0.5"}, 'slow');
    },
    function() {
      $(this).stop().animate({opacity: "1"}, 'slow');
    });
  });


  										
		
		$('.test').mouseover(function(){
alert('Handler for  called.');
 $(this).find('div').css('visibility','visible');
		});


  $('.knappis').mouseenter(function() {$(this).vibrate();});
   $('.logo').mouseenter(function() {$(this).vibrate();});

  $(".larare").colorbox({inline:true, width:"60%",rel:'larare'});
  $(".dansstil").colorbox({inline:true, width:"60%",rel:'dansstil'});
  
    
    $(".gommig").click(function ( event ) {
      event.preventDefault();
      $('#stickynews').slideToggle();
    });
  
