jQuery(document).ready(function ($md) {

	var pmtlocation = window.location.pathname.split('/');
	var pmturl = 'http://pmt.com.pl/';


	projekktor('#player_a', {
		debug: false,
		// poster: 'http://pmt.freshhosting.pl/v1/monad/css/siteimg/pmtmovielogo.png',
		useYTIframeAPI: false,
		width: 960,
		height: 444,
		controls: false,
		fullscreen: false,
		bufferDelayTimer: true,
		autoArrows: true,
		loop: false,
		volume: .5,
		playerFlashMP4: pmturl + 'monad/proj/jarisplayer.swf',
		playerFlashMP3: pmturl + 'monad/proj/jarisplayer.swf',
		flashStreamType: 'file',
		enableFlashFallback: true,
		enableNativePlayback: true,
		allowFullScreen: false,
		messages: {
			// flash & native:
			0:'Zdarzyl sie blad...',
			1:'Przerwales odtwarzanie',
			2:'Zdarzyl sie blad...',
			3:'Przerwano odtwarzanie z uwagi na blad...',
			4:'Plik (%{src}) nie mogl zostac wgrany z uwagi na blad sieciowy',
			5:'Przepraszamy, nie mozna odtworzyc pliku typu (%{type}) w tej przegladarce',
			6:'Brakuje najnowszej wersji flashplayer-a. Obecnie wymgana jest V%{flashver} or higher.',
			7:'Brak mediow w kolejce',
			8: '! Blad konfiguracji !',
			9: 'Plik (%{src}) nie znaleziono.',
			97:'Nie zaplanowano mediow.',
			98:'Blad playlisty!',
			99:'Kliknij ekran aby kontynuowac. ',
			// youtube errors:
			500: 'This Youtube video has been removed or set to private',
			501: 'The Youtube user owning this video disabled embedding.',
			502: 'Invalid Youtube Video-Id specified.',
			// debug popup:
			1000:'Skopiuj i przeslij do swojego webmastera:'
		},

		// PLAYLISTA
		playlist: [
			{
				0:{src: pmturl + 'assets/PMT_slideshow1.mp4', type: 'video/mp4'},
				1:{src: pmturl + 'assets/PMT_slideshow1.ogv', type: 'video/ogg'},
				2:{src: pmturl + 'assets/PMT_slideshow1.webm', type: 'video/webm'}

			}

		]

	});


	// ------------------------------------------------------------------


});



