
var $j = jQuery.noConflict();
$j(document).ready(function() {
		$j("#scrollable").scrollable({size:4,items:'.items',horizontal:true});
		loadFile(PROPERTY_TYPE_GALLERY_FIRST_FILE,PROPERTY_TYPE_GALLERY_FIRST_FILE_PATH);
}); 

function onFlowPlayerReady() {
	//alert("loaded");
}

function loadFile (file,path) {
	var hideControls = file.toLowerCase().indexOf(".flv") == -1;
	api = flashembed("player", {src:BASE_URL+'global/flowplayer/FlowPlayerDark.swf',width:560, height:350,bgcolor:'#ffffff'}, {config: {
		// list of variables goes here
		baseURL: BASE_URL+path,
		autoPlay: true,
		splashImageFile: BASE_URL+"assets/splash.jpg",
		initialScale: 'scale', 
		hideControls: hideControls,
		showMenu: false,
		menuItems: [ 1, 1, 1, 1, 1, 1 ],
		useNativeFullScreen: true,
		controlBarGloss: "none",
		controlBarBackgroundColor: "0x7EA9A9",
		timeDisplayFontColor: "0xffffff",
		bufferBarColor1: "0x666666",
		bufferBarColor2: "0x666666",
		usePlayOverlay: false,
		controlsOverVideo: "ease",
		showOnLoadBegin: false,
		loop:false,
		autoRewind:true,
		playList: [{ showOnLoadBegin: false, url: file, linkUrl: '' }],
		noVideoClip: { url: BASE_URL+"assets/noClip.jpg", duration: 10 }
	  }} 
	);
}