function showPanel(a){$(".TabbedPanelsContent").hide();$("#TabbedPanels"+a).show();$(".TabbedPanelsTabSelected").removeClass("TabbedPanelsTabSelected");$("#Tab"+a).addClass("TabbedPanelsTabSelected")}function detailSwapImage(b,c,d,a){$("#photo").attr("src",b);$("#photolnk").attr("href",c).unbind("click");$("#photolnk").click(function(){if($("a[rel='dgallery']:eq("+a+")").length){$("a[rel='dgallery']:eq("+a+")").click()}return false});if(d){$("#videos").hide();$("#videotab").removeClass("active")}$("#photos").show();$("#phototab").addClass("active")}$(document).ready(function(){if($("a[rel='dgallery']").length){$("a[rel='dgallery']").colorbox()}$("#photolnk").click(function(){if($("a[rel='dgallery']:eq(0)").length){$("a[rel='dgallery']:eq(0)").click()}return false});showPanel("General")});