function LoadFlash(){
    var swf = new SWFObject("flash/workspace.swf", "workspace", "100%", "100%", "9", "#ffffff");
    swf.write("container");
}
function FlashCheck(){
  $("#omniContainer").show();
  if(GetFlashVersion() > 8){
    LoadFlash();
  }
}


function CheckGalleryTitle(){
    $("#lblMurals").addClass("catLink");
    $("#lblPortraits").addClass("catLink");
    $("#lblStillLife").addClass("catLink");
 
    var cat = getCurrentCategory();
    if(cat == "murals"){
        $("#lblMurals").attr("style","font-size: 25px");
    }else if(cat == "portraits"){
        $("#lblPortraits").attr("style","font-size: 25px");
    }else if(cat == "still life" || cat == "still%20life"){
        $("#lblStillLife").attr("style","font-size: 25px");
    }
}


function getCurrentCategory(){
    var category = "murals";///default to this if nothing passed in the url
    var split = window.location.toString().split('?');
	if(split.length < 2)return category;
	split = split[1].split('=');
	if(split.length < 2)return category;
	category = split[1];
	return category.toLowerCase();
}
