
var spot = document.getElementById("player");

var prvi= $("a.sviram").attr("href");

var put ="http://www.studiob.rs/jubilej/vinjete/"

spot.href=prvi.replace(put,"");

//  install Flowplayer inside a#player  --------- start cut -------------
$f("player", { src:"u09/swf/flowplayer-3.1.1.swf",wmode:"transparent"}, {
		// start :: ubaceno skin kontrole
	 plugins: {
		controls: {
			url: 'u09/swf/flowplayer.controls-tube-3.1.1.swf',
			height:'20'
			
		} 
		
	},
// kraj ubscenog dela skina kontrole ------------- cut ----------------
		
	clip: {

		// use baseUrl so we can play with shorter file names
		baseUrl: 'http://www.studiob.rs/jubilej/vinjete',
	//	baseUrl:"http://localhost/flowplayer/flowReplace/ANCHOR/zaSajt/u09/flv/",
		// use first frame of the clip as a splash screen
		autoPlay: false,
		autoBuffering: true
	} 
});


// get all links that are inside div#clips
var links = document.getElementById("clips").getElementsByTagName("a");

// loop those links and alter their click behaviour
for (var i = 0; i < links.length; i++) {
	links[i].onclick = function() {
		$f("player").stop();
		// play the clip specified in href- attribute with Flowplayer
		$f("player").play(this.getAttribute("href", 2));
		
		// by returning false normal link behaviour is skipped
		return false;
	}
}

$(function(){
$("#clips a").click(function(){
$("#clips a").removeClass("sviram");
$(this).addClass("sviram").blur();
});
});
 


