	var Playlist = new Array();
	var NumberList = 0;
	var Track = 0;
	var TempTrack =0;
	function createPlayer(thePlaceholder, thePlayerId, hieght, width, type, file) {
		   var thePlayerId = new SWFObject( file , thePlayerId, width, hieght, '9.0.115', '#000000');
				
				thePlayerId.addParam('allowfullscreen','true');
				thePlayerId.addParam('allowscriptaccess','always');
				thePlayerId.addParam('allownetworking','all');
				thePlayerId.addParam('wmode','transparent');
				thePlayerId.addParam('skin','http://www.cineversity.tv/extern/player_new/skin/nacht.xml');

				thePlayerId.addVariable('plugins','tweetit-1,adttext');
				
				thePlayerId.addVariable('adttext.config', 'http://www.cineversity.tv/extern/player_new/my_text_config.xml');
				thePlayerId.addVariable('skin', 'http://www.cineversity.tv/extern/player_new/skin/nacht.zip');
				thePlayerId.addVariable('tweetit-1.dock', 'true');
				thePlayerId.addVariable('smoothing', 'true');
				thePlayerId.addVariable('autostart', 'true');
		   		
		   thePlayerId.write(thePlaceholder);
	}
	
	
	function Playthis(ThisTrack ,thePlayerId) {
		jwplayer(thePlayerId).load(Playlist[thePlayerId][ThisTrack]);
		jwplayer(thePlayerId).onComplete(function() {ThisTrack++; test = checkTrack(ThisTrack); jwplayer(thePlayerId).load(Playlist[thePlayerId][test]);});
		
	}
	
	function PlayList(thePlayerId){
		jwplayer(thePlayerId).load(Playlist[thePlayerId][Track]);
		jwplayer(thePlayerId).onComplete(function() {Track = checkTrack(Track+1); jwplayer(thePlayerId).load(Playlist[thePlayerId][Track]);});
	}
	function nextone(){
		
	}
	function checkTrack(cheTrack){
		if(cheTrack < NumberList){
			return cheTrack;
		}else{
			return 0;
		}
	}
	
	function addList(Item , thePlayerId){
		if(Playlist[thePlayerId] == null){
			Playlist[thePlayerId] = new Array();
		}
		Playlist[thePlayerId][NumberList] = Item;
		NumberList++;
	}
	
	var win = null;
	function NewWindow(mypage,myname,w,h,scroll) {
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
	win = window.open(mypage,myname,settings)
}
