function MM_openBrWindow(theURL,winName,features) { //v2.0

itemClicked()

	
	
  x=window.open(theURL,winName,features);
  
	x.focus()
if (typeof window.pageYOffset!="undefined"){
	timMoveID=setInterval("timescroll()",50)

}
}

function open_xml_video(filenam,group,sub_folder){

	MM_openBrWindow(pthstr+"library/video_player/player.asp?filepath="+filenam+"&group="+group+"&sub_folder="+sub_folder,"video","width=300,height=480",1)
}
function open_timeline_video(item_ID,filenam,sub_folder,pthstr_overide){
	if(typeof pthstr_overide=="undefined"){
		str=pthstr
	}else{
		str=pthstr_overide
	}
	MM_openBrWindow(str+"library/video_player/player.asp?filepath="+filenam+"&item_ID="+item_ID+"&sub_folder="+sub_folder,"video","width=300,height=480",1)
}
function open_video(filenam,fullname,organisation,caption){
	
	pth=short_sub_root+"/"+short_sub_root+"_assets/video/"+filenam
	if(typeof organisation=="undefined"){
		organisation=""
	}
	if(typeof caption=="undefined"){
		caption=""
	}
	MM_openBrWindow(pthstr+"library/video_player/player.asp?filepath="+pth+"&fullname="+fullname+"&organisation="+organisation+"&caption="+caption,"video","width=300,height=480",1)
}

function open_image(thispath){

	MM_openBrWindow(pthstr+"interface/image_display.asp?image="+thispath,"picture","width=640,height=480")
}
var image_window_arr=new Array()
var image_window_count=0
function float_image(thisone){
	if(typeof thisone!="undefined"){
		targ=thisone.href
		if(targ.indexOf("image_display.asp")==-1){
			wtarg=pthstr+"library/image_display.asp?image="+targ
			thisone.href=wtarg
			image_window_count=image_window_count+1
			thisone.target="picture"+image_window_count
			
		}else{
			wtarg=targ
		}	
		
		MM_openBrWindow(wtarg,thisone.target,"width=640,height=480")
	}
	
}
var sitemap_float

function float_page(thisone,w,h){
	
	if(typeof thisone!="undefined"){
		targ=thisone.href
		//if(targ!="javascript:;" && targ!="javascript:;" && targ.substr(0,5)!="http:" && targ.substr(0,4)!="www."){
		if(targ!="javascript:;"){
			wname="floater"
			win_targ=targ
			
			if(targ.indexOf("feedback_form.asp")!=-1){
				if(win_targ.indexOf("document_title")==-1){
					ob=FIND("document_title")
					if(typeof ob!="undefined"){
						
						pos1=win_targ.indexOf("?")
						leftstr=win_targ.substr(0,pos1)
						rightstr=win_targ.substr(pos1+1,win_targ.length)
						dt=ob.innerText
						ob2=FIND("general_title")
						if(typeof ob2!="undefined"){
							if(ob2.innerText.indexOf("opinion")!=-1){
								dt=ob2.innerText+": "+dt
							}
						}
						win_targ=leftstr+"?document_title="+dt+"&"+rightstr
						
						
					}
				}
				wname="feedback"
			}
			
			thisone.target=wname
			thisone.href="javascript:;"
			if(typeof w=="undefined" || w==0){
				w=588
			}
			if(typeof h=="undefined" || h==0){
				h=588
			}
			
			
			MM_openBrWindow(win_targ,wname,"status=yes,menubar=yes,scrollbars=yes,resizable=yes,width="+w+",height="+h+"",1)
			
			thisone.href=win_targ
			
		}
		
	}
}

function float_flash_page(thisone,w,h){

	if(typeof thisone!="undefined"){
		targ=thisone.href
		//if(targ!="javascript:;" && targ!="javascript:;" && targ.substr(0,5)!="http:" && targ.substr(0,4)!="www."){
		if(targ!="javascript:;"){
			thisone.target="floater"
			thisone.href="javascript:;"
			if(typeof w=="undefined" || w==0){
				w=588
			}
			if(typeof h=="undefined" || h==0){
				h=588
			}
			
			itemClicked()

			x=window.open(pthstr+"library/flash_detection/test.asp","floater","status=yes,menubar=yes,scrollbars=yes,resizable=yes,width="+w+",height="+h+"",1);
			alert(x)
			//x.onClose =function (){ alert(1) }
			x.focus()
			if (typeof window.pageYOffset!="undefined"){
				timMoveID=setInterval("timescroll()",50)
			
			}
			thisone.href=targ
			
			
		}
		
	}
}

function FIND(item) {
	if (document.all) return(document.all[item]);
	if (document.getElementById) return(document.getElementById(item));
	return(false);
}
function FIND_OLD(itemob,hh) {

	//if(window.name!=display_frame.name){
	//	return display_frame.FIND(itemob)
	//}else{
	
		if(typeof itemob=="string"){
			
			if(!hh){
			
			
				if (itemob.indexOf("getdocument().layers[")!=-1) return eval(itemob);
				if (getdocument().all) return(getdocument().all[itemob]);
				if (getdocument().getElementById) return(getdocument().getElementById(itemob));
				
				if (getdocument()[itemob]) return(getdocument()[itemob]);
				
				
				if (getdocument().document.getElementById(itemob)) return(getdocument().document.getElementById(itemob));
				
			}else{
		
				if (document.all) return(document.all[itemob]);
				
				if (document[itemob]) return(document[itemob]);
				if (document.getElementById) return(document.getElementById(itemob));
			}
		
		}else{
			if(itemob.length==2){
				doc=document.layers[itemob[0]].document.layers[itemob[1]]
				if (doc) return(doc);
			}
		}
	
		return(false);
	//}
}
var time_tim
function createTime(){
clearTimeout(time_tim)
time_tim=0

tim=new Date()
monthArray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")

minstr=tim.getMinutes().toString()
if(minstr.length==1){
minstr="0"+minstr
}
output=tim.getHours()+":"+minstr+" on "+tim.getDate()+" "+monthArray[tim.getMonth()]+" "+tim.getYear()
//document.forms['form1'].timebox.value=output
cell=FIND("timediv",1)

if(typeof cell=="object"){
cell.innerHTML=output
// the 2 in the line below sets the number of seconds between update
time_tim=setTimeout("createTime()",1000*10)
}
}


var loadtim,root_object,attempt_count=0
function load_actions(){
	 MM_CheckFlashVersion('8,0,0,0','Content on this page requires a newer version of Macromedia Flash Player. Do you want to download it now?');
	 
	if(change_password_group!=""){
		MM_openBrWindow(pthstr+"users/edit_contact_details.asp?group="+change_password_group,"changepw","status=yes,scrollbars=yes,resizable=yes,width=445,height=550")
	}
	loc=document.location.toString()
	if(loc.indexOf("procure21/p21_content/home/home.asp")!=-1){
		//MM_openBrWindow(pthstr+"procure21/p21_content/generic/generics_float/autumn_2004_events.html","statement","status=yes,scrollbars=yes,resizable=yes,width=445,height=550")
	}
	if(typeof phrase_object_array!="undefined"){
		next_phrase()
	}
	if(loc.indexOf("better_hospital_food/bhf_content/resources/recipe_selector.asp")!=-1){
		//menuCall()
		//adjustIFrameSize(window.frames['data_menu'])
	}
	if(loc.indexOf("jamescook/jc_content/details/details.asp")!=-1 || loc.indexOf("jamescook/jc_content/introduction/home.asp")!=-1){
		//ESCAPES FOR THE FRAME WITHIN A FRAME
		if(typeof window.parent!="undefined"){
			if(typeof window.parent.parent!="undefined"){
				if(window.parent.parent.frames.length>0){
					loc2=window.parent.parent.frames[0].document.location.toString()
					
					if(loc2.indexOf("jc_interface/index.asp")!=-1){
						window.parent.parent.document.location=pthstr+"jamescook/jc_interface/index.asp"
					}
				}
			}
		}
	}
	if(loc.indexOf("jamescook/jc_content/details/details.asp")!=-1){
		if(window.parent.frames.length>1){
			//alert(window.parent.frames["timeline_frame"].document.timeline)
			//window.parent.frames["timeline_frame"].document.timeline.setVariable("frame_item_ID",item_ID)
			//alert(window.parent.frames["timeline_frame"].document.timeline.getVariable("frame_item_ID"))
			if(window.parent.frames["timeline_frame"].flash_clicked==0){
				window.parent.frames["timeline_frame"].setFlashVariables('timeline','frame_item_ID='+item_ID)
			}
			window.parent.frames["timeline_frame"].flash_clicked=0
		}
		//menuCall()
		//adjustIFrameSize(window.frames['data_menu'])
	}
	if(loc.indexOf("jamescook/jc_content/introduction/home.asp")!=-1){
		
		if(window.parent.frames.length>1){
			if(true){
			if(window.parent.frames["timeline_frame"].flash_clicked==0){
				//alert("1")
				window.parent.frames["timeline_frame"].setFlashVariables('timeline','cancel_frame_ID=1')
			}
			window.parent.frames["timeline_frame"].flash_clicked=0
			}else{
			window.parent.frames["timeline_frame"].document.location.reload()
			}
		}
		
	}
}
function OLD_load_actions(){
	clearTimeout(loadtim)
	loadtim=0
	if(typeof window.parent.frames["header"]!="undefined"){
		if(typeof window.parent.frames["header"].root_object=="undefined"){
		
			loadtim=setTimeout("load_actions()",20)
		}else{
			loadtim=setTimeout("start_draw()",20)
		//start_draw()
		
		}
	}else{

		if(attempt_count<50){
			attempt_count++
			loadtim=setTimeout("load_actions()",20)
		}else{
			ob=FIND("menucontainer0",1)
			useclass="class=\"menu_item_holder\" "
			str=""
			str+="<div "
			str+="id=\"div0_0_0\""
			str+=" style=\"position:absolute; left:0px;"+"top:0px;"+"width:148px; "+"height:25px; z-index:5;\""+useclass
			actionstr=" href=\""+pthstr+"index.asp\" "
			str+=">"
			imgstr="<img src=\""+pthstr+"assets/menus/link_arrow.gif\" width=\"15\" height=\"9\" border=\"0\">"
			imgstr="<img src=\""+pthstr+"assets/spacer.gif\" width=\"15\" height=\"9\" border=\"0\">"
			str+=imgstr+"<a "+actionstr+">View the rest of the site</a>"
		
			str+="</div>"
			ob.innerHTML=str
			ob.style.posLeft=15
		}
	}
	//xmlParseToArray()
	//draw_root()
}
function start_draw(){
	clearTimeout(loadtim)
	loadtim=0
	root_object=window.parent.frames["header"].root_object
	if(typeof root_object=="object"){
		root_object.refresh_root()
		root_object.draw_root()
		window.parent.frames["header"].createTime()
	
		//if(!different_domain){
			window.parent.frames["header"].top_browser_width_fix()
		//}
		//ob=eval(root_object.item_path)
		//if(typeof ob=="object"){
		//	root_object.addToHistory(root_object.item_path)
		//}else{
		//	root_object.clearHistory()
		//}
		
		ob=FIND("menucontainer0",1)
		if(ob.innerHTML==""){
			
			loadtim=setTimeout("completedraw()",500)
		}
	}else{
		
		loadtim=setTimeout("start_draw()",20)
	}
	//scrollthing(-5)
}

function completedraw(){
	clearTimeout(loadtim)
	loadtim=0
	if(typeof root_object=="object"){
	
		root_object.refresh_root()
		root_object.draw_root()
		
	}else{
		loadtim=setTimeout("start_draw()",500)
	}
}	
var scroll_tim=0
var scroll_anim_tim
var scroll_targ=-5
var scroll_inc=5


function scrollthing(offs){
	clearTimeout(scroll_tim)
	scroll_tim=0
	
	
	
	ff=0
	if(ff){
	ob2=FIND("menucontainer0",1)
	if(typeof ob2=="object"){
		if(scroll_targ!=document.body.scrollTop+offs){
			if(ob2.style.posTop!=document.body.scrollTop+offs){
				//clearTimeout(scroll_anim_tim)
				//scroll_anim_tim=0
				scroll_targ=document.body.scrollTop+offs
				scroll_anim_tim=setTimeout("scroll_anim()",20)
				//ob2.style.posTop=document.body.scrollTop+offs
			}
		}
	}
	}
	startmove()
	scroll_tim=setTimeout("scrollthing("+offs+")",300)
}


function browser_width_fix(){

	if(!!document.all){
		if (document.body.clientWidth!=534){//

			offW=(document.body.clientWidth)
			offH= (document.body.clientHeight)
			parent.parent.resizeTo(800,600)
			diffW=(document.body.clientWidth)-offW
			diffH= (document.body.clientHeight)-offH
			w = 800-diffW
			h = 600-diffH
			ieDiffWidth=w-offW
			ieDiffHeight=h-offH
			
			//parent.parent.resizeTo(534+ieDiffWidth,h)
			parent.parent.resizeTo(800,h)
			//parent.parent.doResize(800,h)
			
			
		}
	}else{
		if (window.outerWidth<740){
			window.outerWidth=740
		}
	}
}


var thumbholder_ob
var lastpos=0
function startmove(){
	starttop=-5
	ob=document.all["menucontainer0"]
	pos=document.body.scrollTop
	if(pos!=lastpos){
	lastpos=pos
diff=((pos+starttop)-ob.style.posTop)

	thumbholder_ob=new newattractor(0,diff,3,5,"menucontainer0","thumbholder_ob","")
	thumbholder_ob.seekpoint()
	}
}
function scroll_anim(){
	clearTimeout(scroll_anim_tim)
	scroll_anim_tim=0
	ob2=FIND("menucontainer0",1)
	if(ob2.style.posTop!=scroll_targ && ob2.style.posTop+scroll_inc>=scroll_targ){
		ob2.style.posTop=scroll_targ
	}else{
		ob2.style.posTop=ob2.style.posTop+scroll_inc
		scroll_anim_tim=setTimeout("scroll_anim()",20)
	}
	
	if(ob2.style.posTop!=scroll_targ &&  ob2.style.posTop-scroll_inc<=scroll_targ){
		ob2.style.posTop=scroll_targ
	}else{
		ob2.style.posTop=ob2.style.posTop-scroll_inc
		scroll_anim_tim=setTimeout("scroll_anim()",20)
	}
	
}

function newattractor(xplace,yplace,xdivs,ydivs,thislayer,obname,paction){
//var layerposx,layerposy, xdest, ydest, xincdiv, yincdiv,ydivs,uselayer

	this.uselayer=thislayer
	this.objectname=obname
	this.postaction=paction
	if (!!document.all){ //must be ie
			this.layerposx=document.all[thislayer].style.pixelLeft
			this.layerposy=document.all[thislayer].style.pixelTop
	}else{
		
			this.layerposx=document[thislayer].left
			this.layerposy=document[thislayer].top
	}
  
  this.xdest=this.layerposx+xplace
  this.ydest=this.layerposy+yplace
   //xdest=xplace
 // ydest=yplace
  this.xincdiv=xdivs
  this.yincdiv=ydivs
  //seekpoint()
  this.seekpoint=seekpoint
  

 
}

function seekpoint(){
  
  //window.clearInterval(timMoveID)
	//timMoveID=0
	
  if (this.layerposx>=this.xdest){
    
    if (this.xincdiv!=0){this.dist=(this.layerposx-this.xdest)/this.xincdiv }
    
    this.layerposx= this.layerposx-this.dist
    if (this.dist<=1 && this.xincdiv>=1){ this.xincdiv=this.xincdiv-1 }

  }
  
   if (this.layerposx<this.xdest){
   
    if (this.xincdiv!=0){ this.dist=(this.xdest-this.layerposx)/this.xincdiv }
   this.layerposx= (this.layerposx)+this.dist
    if (this.dist<=1 && this.xincdiv>=1){ this.xincdiv=this.xincdiv-1 }
 	}
	
	 if (this.layerposy>=this.ydest){
    
    if (this.yincdiv!=0){   this.dist=(this.layerposy-this.ydest)/this.yincdiv }
    
    this.layerposy= this.layerposy-this.dist
    if (this.dist<=1 && this.yincdiv>=1){ this.yincdiv=this.yincdiv-1 }

  }
  
   if (this.layerposy<this.ydest){
   
    if (this.yincdiv!=0){ this.dist=(this.ydest-this.layerposy)/this.yincdiv }
   this.layerposy= (this.layerposy)+this.dist
    if (this.dist<=1 && this.yincdiv>=1){ this.yincdiv=this.yincdiv-1 }
 	}

  
  if ((this.xincdiv<=1 && this.yincdiv<=1) || (this.layerposx==this.xdest && this.layerposy==this.ydest)) { 
  //hideeach()
  //this.repoint(posArray[Math.floor(Math.random()*2)],posArray[Math.floor(Math.random()*2)],2,2)
  if (!!document.all){ //must be ie
			document.all[this.uselayer].style.pixelLeft=this.xdest
			document.all[this.uselayer].style.pixelTop=this.ydest
	}else{
		
			document[this.uselayer].left=this.xdest
			document[this.uselayer].top=this.ydest
	}
	eval(this.postaction)
  }else{
  if (!!document.all){ //must be ie
			document.all[this.uselayer].style.pixelLeft=this.layerposx
			document.all[this.uselayer].style.pixelTop=this.layerposy
	}else{
		
			document[this.uselayer].left=this.layerposx
			document[this.uselayer].top=this.layerposy
	}
 
  	//timMoveID=window.setInterval("seekpoint()",50)
	
	this.timeouter=setTimeout(this.objectname+".seekpoint()",20)
  }
  
}

var open_expander=""
var open_expander_trigger=""



function divchange(thisname,start_mode){
	
	ob=FIND(thisname)

	thistrigger=thisname+"_link"
	trigger_ob=FIND(thistrigger)

	
	if(typeof ob!="undefined"){
		if(typeof ob.mode=="undefined" && typeof start_mode!="undefined"){
			ob.mode=start_mode
		}
		
		if(ob.mode==1){
			ob.mode=0
			ob.style.visibility="hidden"
			//ob.style.overflow="hidden"
			ob.style.display="none"
			if(typeof trigger_ob!="undefined" && trigger_ob!=null){
				open_expander_trigger=""
				open_expander=""
				
				trigger_ob.className="expander_closed"
				change_diagram("overall",thisname)
				current_diagram_area="overall"
			}
		}else{
		
			ob.mode=1
			ob.style.visibility="visible"
			//ob.style.overflow="visible"

			ob.style.display="block"
			
			if(typeof trigger_ob!="undefined"  && trigger_ob!=null){
				
				trigger_ob.className="expander_open"
				if(open_expander!=""){
					old_ob=FIND(open_expander)
					old_ob.mode=0
					old_ob.style.visibility="hidden"
					old_ob.style.display="none"
					
					old_trigger_ob=FIND(open_expander_trigger)
					old_trigger_ob.className="expander_closed"
				}
				
				open_expander_trigger=thistrigger
				open_expander=thisname
				
				
				change_diagram(thisname)
				
				
			}
			
		}
	}
}

function category_rollon(thisone,rollcolour){
	thisone.style.backgroundColor=rollcolour
}
function category_rolloff(thisone,offcolour){
	thisone.style.backgroundColor=offcolour
}

function flash_find(thisname){
	
	flash_found=1
	flash_ob=FIND(thisname)
	
	if(typeof flash_ob=="undefined"){
		flash_found=0
	}else{
		if(flash_ob==null){
			flash_found=0
		}
	}
	return flash_found
}

function expander_rollon(thisone){
	
	isflash=flash_find("flash_diagram")
	
	if(typeof thisone=="object"){
		ob=thisone
		thisname=ob.id
	}else{
		ob=FIND(thisone)
		thisname=thisone
	}
	
	if(ob.className!="expander_open"){
		ob.className="expander_over"
		if(isflash==1){
			if(flash_clicked==0){
				thisname=thisname.substr(0,thisname.lastIndexOf("_"))
				setFlashVariables("flash_diagram","div_action=over_action&div_target="+thisname+"")
			}
		}
	}
	flash_clicked=0
}


function expander_rolloff(thisone){
	
	isflash=flash_find("flash_diagram")
	
	if(typeof thisone=="object"){
		ob=thisone
		thisname=ob.id
	}else{
		ob=FIND(thisone)
		thisname=thisone
	}
	
	if(ob.className!="expander_open"){
		ob.className="expander_closed"
		if(isflash==1){
			
			if(flash_clicked==0){
				thisname=thisname.substr(0,thisname.lastIndexOf("_"))
				
				setFlashVariables("flash_diagram","div_action=out_action&div_target="+thisname+"")
			}
		}
	}
	flash_clicked=0
}

var diagram_root=""
var current_diagram_area="overall"

function change_diagram(thisname,oldname){
	
	clearInterval(imloader)
	isflash=flash_find("flash_diagram")
	ob=FIND("diagram")
	current_diagram_area=thisname
	
	if(isflash==0){
		ob_src=ob.src
		//alert(ob_src)
		//if(diagram_root==""){
			diagram_root=ob_src.substr(ob_src.lastIndexOf("/")+1,ob_src.lastIndexOf("_")-ob_src.lastIndexOf("/")-1)
		//}
		//alert(diagram_root)
		img_name=diagram_root
		if(thisname!=""){
			img_name=img_name+"_"+thisname
		}
		img_name=img_name+".gif"
		
	
		//diagram_loader(pthstr+"ideas/ideas_assets/diagrams/single_bed_room/"+img_name)
		diagram_loader(diagram_root_pth+img_name)
	}else{
		
		if(flash_clicked==0){
			
			if(thisname!="overall"){
				setFlashVariables("flash_diagram","div_action=click_action&div_target="+thisname+"")
			}else{
				
				setFlashVariables("flash_diagram","div_action=cancel_select&div_target="+oldname+"")
			}
		}
		flash_clicked=0
	}
}

var imholder,holderseq,imloader
function diagram_loader(impth){
	clearInterval(imloader)
	imholder=new Image
	imholder.src=impth

	ob=FIND("diagram")
	//if(typeof ob.filters=="object"){	
		//imloader=setInterval(diagram_loaded,500)
	//}else{
		imloader=setInterval(diagram_loaded,20)
	//}
	
}
function diagram_loaded(){
	clearInterval(imloader)
	ob=FIND("diagram")
	
	
	if(typeof ob.filters=="object"){		
		ob.filters.item(0).Apply()
		ob.visibility="visible"
		ob.filters.item(0).play(0.5)
	}
	
	ob.src=imholder.src
}

var image_loader_ob,image_loader_timer,image_loading=0,drawing_id,drawing_action
function change_drawing(thisnam,appendstr,sequence){
	
	if(image_loading==0){
		drawing_id=thisnam
		
		image_ob=FIND(drawing_id+"_drawing")
		
		if(typeof image_ob!="undefined" && !!image_ob){
			image_loading=1
			currentsrc=image_ob.src.toString()
			
			if(typeof sequence=="undefined" || !sequence){
				if(currentsrc.indexOf(appendstr)==-1){
					//IT IS CURRENTLY THE ORIGINAL IMAGE SO LOAD THE ALTERNATIVE IMAGE
					newsrc=currentsrc.substr(0,currentsrc.lastIndexOf("."))+"_"+appendstr+currentsrc.substr(currentsrc.lastIndexOf("."),currentsrc.length)
					drawing_action="Hide"
				}else{
					//IT IS CURRENTLY THE ALTERNATIVE IMAGE SO LOAD THE ORIGINAL IMAGE
					newsrc=currentsrc.substr(0,currentsrc.lastIndexOf("_"+appendstr))+currentsrc.substr(currentsrc.lastIndexOf("_"+appendstr)+appendstr.length+1,currentsrc.length)
					drawing_action="Display"
				}
			}else{
				//FOR SEQUENCES THE IMAGE ISN'T TOGGLED
				newsrc=currentsrc.substr(0,currentsrc.lastIndexOf("/")+1)+thisnam+"_"+appendstr+currentsrc.substr(currentsrc.lastIndexOf("."),currentsrc.length)
			}
			
			
			image_loader_ob=new Image()
			image_loader_ob.src=newsrc
			image_loader_timer=setInterval(drawing_loaded,2)
		}
	}
	
}

function drawing_loaded(){
	clearInterval(image_loader_timer)
	image_loader_timer=0
	if(image_loader_ob.complete){
		
		image_loading=0
		
		image_ob=FIND(drawing_id+"_drawing")
		text_ob=FIND(drawing_id+"_text")
		if(typeof text_ob!="undefined" && !!text_ob){
			text_ob.innerHTML=drawing_action	
		}
		if(typeof image_ob!="undefined" && !!image_ob){
			if (image_ob.filters) {
				image_ob.style.filter = "progid:DXImageTransform.Microsoft.Fade(duration=0.5)";
				image_ob.filters[0].Apply(); 
			}
			image_ob.src=image_loader_ob.src
			
			if (image_ob.filters) {
				image_ob.filters[0].Play();
			}
		}
	}else{
		image_loader_timer=setInterval(drawing_loaded,2)
	}
	
}
