// this  simple function parses the file name from the URL var
// credits:  thanks to Netlobo.com
function gup( name ){name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");  
var regexS = "[\\?&]"+name+"=([^&#]*)"; 
var regex = new RegExp( regexS );  
var results = regex.exec( window.location.href );  
	if( results == null ) return "";  
	else return results[1];
}
// this is the result we want
var flvName = gup('videofile');

function getQueryVariable(variable) {
			var query = window.location.search.substring(1);
			var vars = query.split("&");
			
			for (var i=0;i<vars.length;i++) {
				var pair = vars[i].split("=");
				if (pair[0] == variable) {
					return pair[1];
				}
			}
		}
		