function createPlayer(container_id,playlist_url,height,width,page_name){
	if(page_name=="list"){
		jwplayer(container_id).setup({
			autostart:'false',
			volume:'90',
			/*controlbar: 'bottom',*/
			width:width,
			height:height,
			allowfullscreen:'true', 
			allowscriptaccess:'always',
			wmode:'transparent',
			plugins: {
				'flow-2':{
					buffericon:'false',
					size:'300',
					controlbaricon:'true',
					opacitydecrease:0.15,
					coverdepth:160,
					rotatedelay:0,
					coveroffset:230,
					coverwidth:255,
					coverangle:50,
					yposition:0,
					onplaying:'hide',
					onpaused:'show'
				},
				"gapro-2":{
					idstring:'||title||'
				}
			},	
			playlistfile:playlist_url,
			skin: AppURL+"js/five.zip",
			stretching: 'exactfit',
			modes: [{ type: "flash", src: AppURL+"js/player.swf" }, { type: "html5" }] 
		});
	}else{
		jwplayer(container_id).setup({
			autostart:'false',
			volume:'90',
			plugins: {
				"sharing-3": {
					code: "%3Cembed src%3D%22http%3A%2F%2Fshapy.se%2Fjs%2Fplayer.swf%22width%3D%22320 %2F%3E",
					link: "http://www.shapy.se/"
				}
			},
			width:width,
			height:height,
			allowfullscreen:false, 
			fullscreen:false, 
			allowscriptaccess:'always',
			wmode:'transparent',
			playlistfile:playlist_url,
			skin: AppURL+"js/simple.zip",
			stretching: 'exactfit',
			modes: [{ type: "flash", src: AppURL+"js/player.swf" }, { type: "html5" }] 
		});
	}
}

function createPlayer_company(container_id,playlist_url,height,width,page_name){
	if(page_name=="list"){
		jwplayer(container_id).setup({
			autostart:'false',
			volume:'90',
			controlbar: 'bottom',
			width:width,
			height:height,
			allowfullscreen:'true', 
			allowscriptaccess:'always',
			wmode:'transparent',
			plugins: {
				'flow-2':{
					buffericon:'false',
					size:'300',
					controlbaricon:'true',
					opacitydecrease:0.15,
					coverdepth:160,
					rotatedelay:0,
					coveroffset:230,
					coverwidth:255,
					coverangle:50,
					yposition:0,
					onplaying:'hide',
					onpaused:'show'
				},
				"gapro-2":{
					idstring:'||title||'
				}
			},	
			playlistfile:playlist_url,
			skin: AppURL+"js/five.zip",
			stretching: 'exactfit',
			modes: [{ type: "flash", src: AppURL+"js/player.swf" }, { type: "html5" }] 
		});
	}else{
		jwplayer(container_id).setup({
			autostart:'false',
			volume:'90',
			plugins: {
				"sharing-3": {
					code: "%3Cembed src%3D%22http%3A%2F%2Fshapy.se%2Fjs%2Fplayer.swf%22width%3D%22320 %2F%3E",
					link: "http://www.shapy.se/"
				}
			},
			width:width,
			height:height,
			allowfullscreen:false, 
			fullscreen:false, 
			allowscriptaccess:'always',
			wmode:'transparent',
			playlistfile:playlist_url,
			skin: AppURL+"js/simple.zip",
			stretching: 'exactfit',
			modes: [{ type: "flash", src: AppURL+"js/player.swf" }, { type: "html5" }] 
		});
	}
}
