		$(function() {
			$.nyroModalSettings({
				processHandler: function(settings) {
					var from = settings.from;
					if (from && from.href && from.href.indexOf('http://www.youtube.com/watch?v=') == 0) {
						$.nyroModalSettings({
							type: 'swf',
							height: 426,
							width: 720,
							url: from.href.replace(new RegExp("watch\\?v=", "i"), 'v/')
						});
					}
				}
			});
		});

	
function thisMovie(movieName) {
	if (navigator.appName.indexOf("Microsoft") != -1) {
		return window[movieName]
	}else {
		return document[movieName]
	}
}

$(document).ready(function() {
// prepend span tag
$(".mediaimg img").prepend("<span></span>");
});
