function addVideo(video,vidholder,width,height,autoplay,preview){if(video!=""&&j("#"+vidholder).length!=0){swfobject.embedSWF("http://www.worldfitnessnews.com/wp/wp-content/themes/wfn/dev/player.swf",vidholder,width,height,'9.0.124',"",{file:video,autostart:autoplay,stretching:"fit",skin:"http://www.worldfitnessnews.com/wp/wp-content/themes/wfn/dev/modieus.swf",bufferlength:5,image:preview});}}
function showVideo(n){video="";switch(n){case 0:video="690218955_WTGSu-640D.mp4";autoplay="false";preview="http://www.worldfitnessnews.com/images/frs-preview2.jpg";break;case 1:video="690218955_WTGSu-640D.mp4";autoplay="true";break;case 2:video="680136612_DzCK8-640D.mp4";autoplay="true";break;case 3:video="680237696_8UzxQ-640D.mp4";autoplay="true";break;case 4:video="682806638_MP57L-640D.mp4";autoplay="true";break;case 5:video="680239478_ahuBA-640D.mp4";autoplay="true";break;}
if(video!=""){addVideo("http://truehealthyproducts.smugmug.com/photos/"+video,"vid_holder",570,357,autoplay,preview);}}
function flashDetect(){if(!FlashDetect.installed){j("#flashDetector").css({'text-align':'center','font-size':'9pt','margin':'15px 0 0 0'});j("#flashDetector").html('<a href="http://get.adobe.com/flashplayer/" target="_blank" style="color:#386AB3;">Can&rsquo;t view the video? Download the latest version of Adobe Flash Player here!</a>');}
else{return true;}}
var j=jQuery.noConflict();j(document).ready(function(){flashDetect();if(j("#vid_holder").html()==""){showVideo(0);}
addVideo("http://fat-release-system.s3.amazonaws.com/video/Barry_Outside_16lbs_in23days400_225.flv","result_vid3",320,215,"false","http://www.worldfitnessnews.com/images/barry-preview.png");addVideo("http://drchocolate.s3.amazonaws.com/video/Dr_Chocolate_300_Selling.flv","dr-choco",360,234,"false","http://www.truehealthyproducts.com/wp-content/themes/lifestyle_30/images/TheDC_600x.jpg");addVideo("http://fat-release-system.s3.amazonaws.com/video/Keith_8lbs_in4Days.flv","result_vid",300,200,"false","http://www.worldfitnessnews.com/images/keith-preview.png");addVideo("http://fat-release-system.s3.amazonaws.com/video/Heather_36pounds_in40days.flv","result_vid2",300,200,"false","http://www.worldfitnessnews.com/images/heather-preview.png");addVideo("http://fat-release-system.s3.amazonaws.com/video/Larry_wood20lbs_in19days.flv","result_vid4",300,200,"false","http://www.worldfitnessnews.com/images/larry-preview.png");addVideo("http://fat-release-system.s3.amazonaws.com/video/Karen_Lost11pounds_itWasEasy.flv","result_vid5",300,200,"false","http://www.worldfitnessnews.com/images/karen-preview.png");addVideo("http://fat-release-system.s3.amazonaws.com/video/May_lost21and_ahalf_pounds.flv","result_vid6",300,200,"false","http://www.worldfitnessnews.com/images/may-preview.png");addVideo("http://fat-release-system.s3.amazonaws.com/video/SaharaLost18_pounds.flv","result_vid7",300,200,"false","http://www.worldfitnessnews.com/images/sarah-preview.png");addVideo("http://fat-release-system.s3.amazonaws.com/video/Lisa_lost9LBS_in13Days.flv","result_vid8",300,200,"false","http://www.worldfitnessnews.com/images/lisa-preview.png");});