
		/********************************
		 site-specific functions
		********************************/

	function getVideoPost(postID) {
		sendReq('','q=inc&inc=videoPost&postID='+postID,'content');
		return false;
	}
	function insertVideo(fileKey,w,h,autostart) {
		if (flashinstalled == 2 && flashversion >= 9) {
			loadFlash2(fileKey,w,h,autostart);
		} else if (flashinstalled == 2 && flashversion < 9) {
			//loadQT();
			loadFlash(fileKey,w,h,autostart);
		}
	}
	function loadFlash(fileKey,w,h,autostart) {
		var s1 = new SWFObject("/inc/flvplayer.swf","single",w,h,"7");
		s1.addParam('allowscriptaccess','always');
		s1.addParam('allowfullscreen','true');
		//s1.addVariable("file",'http://media.stresslimitdesign.com/start480flv/'+fileKey+'.flv');
		s1.addVariable("file",'http://media.startcooking.com/video/480flv/'+fileKey+'.flv');
		s1.addVariable("image","/public/images/"+fileKey+".jpg");
		//s1.addVariable("image","/images/postvideosubscribe.jpg");
		s1.addVariable('width',w);
		s1.addVariable('height',h);
		if(autostart)
			s1.addVariable("autostart","true");
		s1.write("videoSpot");
	}
	function loadFlash2(fileKey,w,h,autostart) {
		var s1 = new SWFObject("/inc/player.swf","single",w,h,"7");
		s1.addParam('allowscriptaccess','always');
		s1.addParam('allowfullscreen','true');
		//s1.addVariable("file",'http://media.stresslimitdesign.com/startmp4/'+fileKey+'.mp4');
		s1.addVariable('file','http://media.startcooking.com/video/640mp4/'+fileKey+'.mp4');
		s1.addVariable("image","/public/images/"+fileKey+".jpg");
		//s1.addVariable("image","/images/postvideosubscribe.jpg");
		s1.addVariable('width',w);
		s1.addVariable('height',h);
		s1.addVariable('recommendations','/inc/recommendations.xml');
		s1.addVariable('link','http://media.startcooking.com/video/640mp4/'+fileKey+'.mp4');
		s1.addVariable('fallback','http://media.startcooking.com/video/480flv/'+fileKey+'.flv');
		s1.addVariable('searchbar','false');
		s1.addVariable('showdownload','true');
		if(autostart)
			s1.addVariable("autostart","true");
		s1.write("videoSpot");
	}
	function loadQT(fileKey) {
		document.getElementById('videoSpot').innerHTML = '<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="480" height="376" codebase="http://www.apple.com/qtactivex/qtplugin.cab"><param name="src" value="http://media.startcooking.com/video/640mp4/'+fileKey+'.mp4"><param name="autoplay" value="true"><param name="controller" value="true"><param name="loop" value="false"><embed src="http://media.startcooking.com/video/640mp4/'+fileKey+'.mp4" width="480" height="376" autoplay="true"controller="true" loop="false" bgcolor="#000000" pluginspage="http://www.apple.com/quicktime/download/"></embed></object><br/><br/>';
	}
	cmo_counter=0;
	i_mover = new Array();
	i_mout  = new Array();
	function createMouseOver(imageObject,moverSrc) {
		if(imageObject.name)
			imageObject.id = imageObject.name
		else if (imageObject.id){
			imageObject.name = imageObject.id;
		}
		imageObject.index = cmo_counter;
		imageObject.selected = false;
		i_mover[cmo_counter]=new Image();i_mover[cmo_counter].src=moverSrc;
		i_mout[cmo_counter]=new Image();i_mout[cmo_counter].src=imageObject.src;
		imageObject.onmouseover=function cmo_over(){this.src=i_mover[this.index].src}
		imageObject.onmouseout=function cmo_out(){if(!this.selected)this.src=i_mout[this.index].src}
		cmo_counter++;
		//alert(cmo_counter)
		//alert(imageObject.index+" "+i_mover[imageObject.index].src+" "+i_mout[imageObject.index].src+" ");
		imageObject.onload="";
	}

		/********************************
		 standard functions
		********************************/

		function showHide(obj) {
			if ( document.getElementById(obj).style.display=='' ) {
				document.getElementById(obj).style.display='none';
			} else {
				document.getElementById(obj).style.display='';
			}
		}
		function pop(thiss,url,width,height,params) {
			if(thiss!='')
				thiss.blur();
			p = params ? params : 'toolbar=no,width='+eval(width+20)+',height='+height+',directories=no,status=no,scrollbars=yes,resizable=yes,menubar=no,left=200,top=100,titlebar=no';
			win = window.open(url,'pop'+width+height,p);
			win.focus();
			return false;
			void(0);
		}
