(function($){<!--function checkUrl(anchor){var url=$(anchor).attr("href");var obj=$(anchor);var cssClass=$(anchor).attr("class");replaceAnchor(obj,url,cssClass);return true;}function replaceAnchor(obj,url,cssClass){$(obj).replaceWith("<iframe class=\""+cssClass+"\" frameborder=\"0\" scrolling=\"no\" align=\"left\" src=\""+url+"\" allowtransparency=\"true\"></iframe>");}$(document).ready(function(){$("a[class='video_small']").each(function(){checkUrl($(this));});$("a[class='video_medium']").each(function(){checkUrl($(this));});$("a[class='video_large']").each(function(){checkUrl($(this));});var embedVideoCounter=0$("img.embeddedVideo").each(function(){$(this).attr("id","embeddedVideo_"+embedVideoCounter);var attributes={};var params={quality:"best",wmode:"transparent",allowfullscreen:"true",allowscriptaccess:"always",allownetworking:"all"};var flashvars={image:$(this).attr("src"),controlbar:"over",fullscreen:"true",frontcolor:"#CCCCCC",lightcolor:"#FFFFFF",smoothing:"true",title:$(this).attr("alt"),description:$(this).attr("title"),"sharing.link":window.location.href,skin:"http://cosmos.uwhealth.org/global/video/modieus.swf"};if($(this).attr("longdesc").indexOf("rtmp://")==0){var indexLastSlash=$(this).attr("longdesc").lastIndexOf("/");flashvars.type="rtmp";flashvars.streamer=$(this).attr("longdesc").substring(0,indexLastSlash);flashvars.file=$(this).attr("longdesc").substring((indexLastSlash+1),$(this).attr("longdesc").length);}else{flashvars.file=$(this).attr("longdesc");}if($(this).attr("width")>=275){flashvars.plugins="sharing-1";}swfobject.embedSWF("http://cosmos.uwhealth.org/global/video/player-licensed.swf","embeddedVideo_"+embedVideoCounter,$(this).attr("width"),$(this).attr("height"),"8.0.0","expressInstall.swf",flashvars,params,attributes);embedVideoCounter++;});});})(jQuery);