	var firstfriend = Math.floor(17 * (Math.random()));

	$(document).ready(function(){
		$(".jCarouselLite").jCarouselLite({
			visible: 6.7,
			start: 0,
			auto: 1500,
			speed: 500
		});
		$('.rounded').corner('10px');
		$('.displayarticle .thumb').wrap('<div class="thumbcontainer"></div>');
		$('.listimage img').wrap('<div class="thumbcontainer"></div>');
		$('.thumbcontainer').corner('3px');
		$('.listimage .item').corner('5px');
// 		$('#t1011').corner('10px bl');
// 		$('#t1001flashcontent').corner('10px tl');
// 		$('#t1005').corner('10px br');
// 		$('#youtube').corner('10px tr');
		$('.included').corner('5px tr bl br');
		$('.not-included').corner('5px tr bl br');
		$('.notes').corner('5px tr bl br');
		$(".passscenario").corner('5px');
		$(".profileCard").corner('5px');
		$(".thumbrow").corner('5px');
		$("a.lightbox").colorbox({slideshow:true, slideshowStart:'start', slideshowStop:'stop', current:'slika {current} od {total}', speed:500, opacity:0.75});
		$("a.map").colorbox({slideshow:true, slideshowStart:'start', slideshowStop:'stop', current:'{current}/{total}', speed:500, opacity:0.75});
//         $('#slider').s3Slider({timeOut: 3000});
		$("#loginSwitch").colorbox({width:"300px", inline:true, transition:"none", href:"#loginForm", title:"Prijavi se"});
		$("#statusSwitch").colorbox({width:"300px", inline:true, transition:"none", href:"#status", title:"Korisnik"});
	});
/*
		$('#ytbar').gsvideobar({ 
		    horizontal: true, // True for horizontal display, false for vertical 
		    thumbnailSize: $.gsvideobar.thumbnailsSmall, // The size of the video thumbnails 
		    player: '#ytplayer', // jQuery selector, jQuery object, or element 
		        // for the player area, or '' for a floating player 
		    master: 'ytbar', // jQuery selector, jQuery object, or element 
		        // for the master videobar on the same page 
		    closeText: 'zatvori prozor', // Text displayed at the top of the player to close it 
		    search: 'dmd rafting', // Single or list of search terms 
		    manyResults: false, // True for many results, false for only a few 
		    cycleTime: $.gsvideobar.cycleVShort, // Time between cycles of the search terms 
		    cycleMode: $.gsvideobar.cycleLinear, // Mode of cycling through the search terms 
		    statusArea: '' // jQuery selector, jQuery object, or element for a status area 
		});
*/