function mediaCenterShowTab(A){A=$(A);if(A.hasClass("photoPanel")){$("div.mediaBox > .imageViewer").show();
$("div.mediaBox > .start").click()}else{if(A.hasClass("videoPanel")){$("div.mediaBox > .flashBox").show();
var B=A.find("a");if(B.length>0){$(B[0]).click()}}else{if(A.hasClass("tourPanel")){$("div.mediaBox > .movBox").show();
var B=A.find("a");if(B.length>0){$(B[0]).click()}}else{return }}}}function mediaCenterHideTab(A){A=$(A);
if(A.hasClass("photoPanel")){$("div.mediaBox > .stop").click();$("div.mediaBox > .imageViewer").hide()
}else{if(A.hasClass("videoPanel")){stopYouTubePlayer("mediaCenterFlash");$("div.mediaBox > .flashBox").hide()
}else{if(A.hasClass("tourPanel")){$("div.mediaBox > .movBoxPlayer").empty();$("div.mediaBox > .movBox").hide()
}else{return }}}}(function(A){A.fn.mediaCenterTours=function(D){D=jQuery.extend({targetSelector:"div.movBoxPlayer",statusSelector:"div.movStatus",videoUrl:"",videoLabel:"",width:333,height:258},D);
function F(){try{C(this)}catch(G){alert(G)}return false}function C(G){D.videoUrl=A(G).attr("href");
D.videoLabel=A(G).attr("title");if(A(D.statusSelector).length>0){A(D.statusSelector).empty().append('<a href="'+D.videoUrl+'">'+D.videoLabel+"</a>")
}A(D.targetSelector).html(E(D.videoUrl,D.width,D.height)).show()}function E(H,J,G){var I='<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="'+G+'" width="'+J+'"> <param name="src" value="'+H+'"><param name="controller" value="true"><param name="autoplay" value="true"><param name="wmode" value="transparent"><param name="type" value="video/quicktime" height="'+G+'" width="'+J+'"><embed src="'+H+'" height="'+G+'" width="'+J+'" '+B()+'controller="true" autoplay="true" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/"></object>';
return I}function B(){if(jQuery.browser.safari==true){return'wmode="transparent" '
}return""}return this.click(F)}})(jQuery)
