makeVideoMod = function( target ) {
	var id = target.attr("id");
	var w = target.attr("width");
	var h = target.attr("height");
	var thnPath = target.attr("thn");
	var flvPath = target.attr("flv");
	
	var soFLV = new SWFObject("swf/siteVideoModule.swf", id, w, h, "9", "#ffffff");
	soFLV.addParam("wmode", "transparent");
	soFLV.addParam("allowfullscreen", "true");
	soFLV.addParam("allowscriptaccess", "always");
	soFLV.addParam("base", "swf");
	soFLV.addVariable("flvPath", flvPath);
	soFLV.addVariable("thnPath", thnPath);
	soFLV.useExpressInstall("swf/expressinstall.swf");
	soFLV.write(id);
};
	
$(document).ready(function() {
	
	//hiding Federal from view
	$(".one .dropdown ul li").filter(function(){ return $(this).find("a:first").text() == "Federal" }).hide();
	
	$(".videoModuleCont").each( function(){
		$(this).attr("id") == "" ? $(this).attr("id", "vidModule_" + new Date().getTime()) : "" ;
		makeVideoMod($(this));
	});
	
	if ( $("#contentCol").height() > 550 ) {
		$("#flashSnipsContent").css({ "height": $("#contentCol").height()+"px"});
		$("#leftCol").css({ "height": $("#contentContainer").height()+"px"});
	}
})
