var video_ob
function video_class(){
	var _me=this
	this.video_clip_path=""
	this.video_preview_path=""
	this.video_clip_seconds=""
	this.video_set=0
	this.default_str='<div id="videoPlayer" style="visibility:hidden"><p><a href="http://www.adobe.com/go/getflashplayer"><img src="'+pthstr+'library/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p></div>'
	
	
	
	this.stop_video=function(){
		if(_me.video_set==1){
			_me.draw_video(_me.video_clip_path,_me.video_preview_path,_me.video_clip_seconds)
		}else{
			_me.reset_video()
		}
	}
	
	this.draw_video=function(video_clip_path,video_preview_path,video_clip_seconds){
		
		_me.reset_video()
		
		_me.video_clip_path=video_clip_path
		_me.video_preview_path=video_preview_path
		_me.video_clip_seconds=video_clip_seconds
		_me.video_set=1
		
		
		videoPlayer_ob=document.getElementById("videoPlayer")
		videoPlayer_ob.style.visibility="visible"
		
		

		
		settings_file="get_settings_xml.asp?video_str="+video_clip_path+"|"+video_preview_path+"|"+video_clip_seconds
			//window.open(pthstr+"library/flash_video_player_I/deploy/"+settings_file)
		var flashvars = {
		  htmlPage: document.location,
		  settingsFile: settings_file
		};
		var params = {
		  allowFullScreen: "true"
		  ,wmode: "transparent"
		};
		
	
		
		swfobject.embedSWF(pthstr+"library/flash_video_player_I/deploy/videoPlayer.swf", "videoPlayer", "512", "309", "9.0.115", pthstr+"library/flash_video_player_I/deploy/swfobject/expressInstall.swf", flashvars, params);
	}
	
	this.reset_video=function(){
		
		//GET DIV THE HOLDS FLV PLAYER
		video_clip_holder_ob=document.getElementById("video_clip")
		
		video_clip_holder_ob.style.width="512px"
		video_clip_holder_ob.style.height="309px"
		video_clip_holder_ob.innerHTML=""
		
		
	
		video_clip_holder_ob.innerHTML=_me.default_str
		
		
	}
}
