function IncludeJavaScript(jsFile)
{
  document.write('<script type="text/javascript" src="'
    + jsFile + '"></scr' + 'ipt>'); 
}


IncludeJavaScript('/chefjono_finefoods/js/swfobject.js');
IncludeJavaScript('/chefjono_finefoods/js/lib/prototype.js');
IncludeJavaScript('/chefjono_finefoods/js/scriptaculous/scriptaculous.js?load=effects');
IncludeJavaScript('/chefjono_finefoods/js/util.js');
IncludeJavaScript('/chefjono_finefoods/js/flashvideobox.js');
IncludeJavaScript('/chefjono_finefoods/js/framevideobox.js');
//CSS Imports
document.write('<link rel="stylesheet" href="/chefjono_finefoods/css/flashvideobox.css" type="text/css" />');
document.write('<link rel="stylesheet" href="/chefjono_finefoods/css/framevideobox.css" type="text/css" />');

function videoLightbox(youtube) {
		initFlashVideoBox();
		//var pageTracker = _gat._getTracker("UA-1341196-1");
		SWFDelegate("http://www.youtube.com/v/"+youtube+"&hl=en_US&showinfo=0&fs=0&rel=0&autoplay=1&disablekb=1","", 640, 385, "", "", "||||||");
}

function mapLightbox(addy,lat,lng) {
		invisibleMe("mapListDD");
		initFrameVideoBox();
		//var pageTracker = _gat._getTracker("UA-1341196-1");
		FRAMEDelegate("http://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q="+addy+"&amp;sll="+lat+","+lng+"&amp;sspn=0.010125,0.018582&amp;ie=UTF8&amp;ll="+lat+","+lng+"&amp;spn=0.010125,0.018582&amp;z=16&amp;output=embed",700,500);
}

//this method is called by Flash to launch a swf file in Litebox
function SWFDelegate(url,caption,width,height,widget,lang,params) {
		var objLink = document.createElement('a');
		objLink.setAttribute('href',url);
		objLink.setAttribute('rel','videobox['+width+','+height+']');
		objLink.setAttribute('title',caption);
		objLink.setAttribute('lang',lang);
		objLink.setAttribute('class',params);
		objLink.setAttribute('name',widget);
		//Lightbox.prototype.start(objLink);
		//objLink.setAttribute('title',caption);
		myFlashVideoBox.launchVideo(objLink);
}

//this method is called by Flash to launch a swf file in Litebox
function FRAMEDelegate(url,width,height) {
		var objLink = document.createElement('a');
		objLink.setAttribute('href',url);
		objLink.setAttribute('rel','videobox['+width+','+height+']');
		objLink.setAttribute('title','');
		myFrameVideoBox.launchVideo(objLink);
}

function fileUpload(fType,ID) {
		var url = "/chefjono_finefoods/upload/index.asp?fType="+fType+"&ID="+ID;
		var objLink = document.createElement('a');
		objLink.setAttribute('href',url);
		objLink.setAttribute('rel','videobox[430,200]');
		objLink.setAttribute('title','');
		initFrameVideoBox();
		myFrameVideoBox.launchVideo(objLink);
}

