// Flash / Javascript control for ThickBox with Safari detect#

function TbShowDelegate(caption,url,imageGroup) {
TB_show(caption,url,imageGroup);
//hide the FLASH layer if the browser is safari!
	var d;
	
	d = document;
	n = navigator;
	nua = n.userAgent;
	
	if ( !d.layers ){
		saf = ( nua.indexOf( 'Safari' ) != -1 );
	}
	
	d = document;// shorthand so we don't have to write out document each time..
	if ( saf ) {
		hidediv();
	}


}

function hidediv() {
if (document.getElementById) { // DOM3 = IE5, NS6
document.getElementById('flashcontent').style.visibility = 'hidden';
}
else {
if (document.layers) { // Netscape 4
document.hideShow.visibility = 'hidden';
}
else { // IE 4
document.all.hideShow.style.visibility = 'hidden';
}
}
}

function showdiv() {
if (document.getElementById) { // DOM3 = IE5, NS6
document.getElementById('flashcontent').style.visibility = 'visible';
}
else {
if (document.layers) { // Netscape 4
document.hideShow.visibility = 'visible';
}
else { // IE 4
document.all.hideShow.style.visibility = 'visible';
}
}
}
