*/
function newImage(arg) {
if (document.images) {
rslt = new Image();
rslt.src = arg;
return rslt;
}
}
function changeImages() {
if (document.images && (preloadFlag == true)) {
for (var i=0; i= 5) {
//If this is Netscape 6
hSize = hSize - 25
wSize = wSize - 15
}
else{
//Older versions of Netscape
hSize = hSize - 30
wSize = wSize - 20
}
}
else{
hSize = hSize - 30
wSize = wSize - 20
}
}
else {
var xMax = 640, yMax=480
}
}
var xOffset = (xMax - wSize)/2, yOffset = (yMax - hSize)/2;
//width=' + wSize + ',height=' + hSize + ',
var updatewin = window.open(url,Title,'top=' + yOffset + ',left=' + xOffset + ',width=' + wSize + ',height=' + hSize + ',resizable=' + rs + ',scrollbars=' + sb + ',menubar=' + mb + ',status=' + st + ',locationbar=' + lb + ',toolbar=' + tb + ',alwaysRaised=1');
updatewin.window.focus();
updatewin.resizeTo(wSize,hSize);
} //END function open_popup
function submitPopup(thisform, url,Title,wSize,hSize,rs,sb,mb,st,lb,tb) {
//alert('test submitPopup:' + thisform + ',' + url + ',' + Title + ',' + wSize + ',' + hSize);
var popup=open_popup(url,Title,wSize,hSize,rs,sb,mb,st,lb,tb);
var updateframe=document[thisform].submit();
//var updateframe=document.thisform.submit();
//alert('testing submitPopup done');
}
/*
This script is written by Eric (Webcrawl@usa.net)
For full source code, installation instructions,
100's more DHTML scripts, and Terms Of
Use, visit dynamicdrive.com
*/
function printit(){
if (VERSION > 3) {
self.print();
} else {
if (NS) {
alert("Sorry. Your browser does not support this. Please select Print from the File menu.");
} else {
var WebBrowser = ' ';
document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
WebBrowser1.ExecWB(6, 2);//Use a 1 vs. a 2 for a prompting dialog box
WebBrowser1.outerHTML = "";
}
}
}
var NS = (navigator.appName == "Netscape");
var VERSION = parseInt(navigator.appVersion);
var BrowserDetect = {
init: function () {
this.browser = this.searchString(this.dataBrowser) || "An unknown browser";
this.version = this.searchVersion(navigator.userAgent)
|| this.searchVersion(navigator.appVersion)
|| "an unknown version";
this.OS = this.searchString(this.dataOS) || "an unknown OS";
},
searchString: function (data) {
for (var i=0;i */
/***********************************************
* Ultimate Fade-In Slideshow (v1.5): © Dynamic Drive (http://www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/
var fadeimages=new Array();
//SET IMAGE PATHS. Extend or contract array as needed.
fadeimages[0]=["/images/harn_index_exhibitions1.jpg", "http://www.harn.ufl.edu/exhibitions/index.php", ""]; //plain image syntax
fadeimages[1]=["/images/harn_index_exhibitions2.jpg", "http://www.harn.ufl.edu/exhibitions/index.php", ""]; //plain image syntax
fadeimages[2]=["/images/harn_index_exhibitions3.jpg", "http://www.harn.ufl.edu/exhibitions/index.php", ""]; //image with link and target syntax
var fadebgcolor="black";
////NO need to edit beyond here/////////////
var fadearray=new Array() //array to cache fadeshow instances;
var fadeclear=new Array() //array to cache corresponding clearinterval pointers;
var dom=(document.getElementById); //modern dom browsers
var iebrowser=document.all;
function fadeshow(theimages, fadewidth, fadeheight, borderwidth, delay, pause, displayorder){
this.pausecheck=pause;
this.mouseovercheck=0;
this.delay=delay;
this.degree=10; //initial opacity degree (10%);
this.curimageindex=0;
this.nextimageindex=1;
fadearray[fadearray.length]=this;
this.slideshowid=fadearray.length-1;
this.canvasbase="canvas"+this.slideshowid;
this.curcanvas=this.canvasbase+"_0";
if (typeof displayorder!="undefined");
theimages.sort(function() {return 0.5 - Math.random();}); //thanks to Mike (aka Mwinter) :)
this.theimages=theimages;
this.imageborder=parseInt(borderwidth);
this.postimages=new Array(); //preload images;
for (p=0;p
');
}
else {
document.write(' ');
}
if ((iebrowser&&dom||dom) && (BrowserDetect.browser != 'Safari')) { //if IE5+ or modern browsers such as Firefox
this.startit();
}
else{
this.curimageindex++;
setInterval("fadearray["+this.slideshowid+"].rotateimage()", this.delay);
}
}
function fadepic(obj){
if (obj.degree<100){
obj.degree+=5;
if (obj.tempobj.filters&&obj.tempobj.filters[0]){
if (typeof obj.tempobj.filters[0].opacity=="number") { //if IE6+
obj.tempobj.filters[0].opacity=obj.degree;
}
else { //else if IE5.5-
obj.tempobj.style.filter="alpha(opacity="+obj.degree+")";
}
}
else if (obj.tempobj.style.MozOpacity) {
obj.tempobj.style.MozOpacity=obj.degree/101;
}
else if (obj.tempobj.style.KhtmlOpacity) {
obj.tempobj.style.KhtmlOpacity=obj.degree/100;
}
}
else{
clearInterval(fadeclear[obj.slideshowid]);
obj.nextcanvas=(obj.curcanvas==obj.canvasbase+"_0")? obj.canvasbase+"_0" : obj.canvasbase+"_1";
obj.tempobj=iebrowser? iebrowser[obj.nextcanvas] : document.getElementById(obj.nextcanvas);
obj.populateslide(obj.tempobj, obj.nextimageindex);
obj.nextimageindex=(obj.nextimageindex';
}
slideHTML+=' ';
if (this.theimages[picindex][1]!="") { //if associated link exists for image
slideHTML+='';
}
picobj.innerHTML=slideHTML;
}
fadeshow.prototype.rotateimage=function(){
if (this.pausecheck==1) { //if pause onMouseover enabled, cache object
var cacheobj=this;
}
if (this.mouseovercheck==1) {
setTimeout(function(){cacheobj.rotateimage()}, 100);
}
else if ((iebrowser&&dom||dom) && (BrowserDetect.browser != 'Safari')){
this.resetit();
var crossobj=this.tempobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas);
crossobj.style.zIndex++;
fadeclear[this.slideshowid]=setInterval("fadepic(fadearray["+this.slideshowid+"])",50);
this.curcanvas=(this.curcanvas==this.canvasbase+"_0")? this.canvasbase+"_1" : this.canvasbase+"_0";
}
else{
var ns4imgobj=document.images['defaultslide'+this.slideshowid];
ns4imgobj.src=this.postimages[this.curimageindex].src;
}
this.curimageindex=(this.curimageindex
*/
/**
* DHTML dropdown menu script. Courtesy of SmartWebby.com (http://www.smartwebby.com/dhtml/)
* SUBNAV JavaScript *
*/
var SubNo='0';
var bName = navigator.appName;
var bVer = parseInt(navigator.appVersion);
var NS6 = (bName == "Netscape" && bVer >= 5);
var NS4 = (bName == "Netscape" && bVer >= 4 && bVer < 5);
var IE4 = (bName == "Microsoft Internet Explorer" && bVer >= 4);
var NS3 = (bName == "Netscape" && bVer < 4);
var IE3 = (bName == "Microsoft Internet Explorer" && bVer < 4);
//alert(bName + ' ver=' + bVer);
window.onerror = null;
var menuActive = 0;
var menuOn = 0;
//var onLayer = new Array();
var onLayer;
var onSubLayer;
var timeOn = null; // LAYER SWITCHING CODE
if (NS4 || IE4 || NS6) {
if (navigator.appName == "Netscape" && !document.getElementById){
layerStyleRef="layer.";
layerRef="document.layers";
styleSwitch="";
layerVis="show";
layerHid="hide";
}
else if (!document.all && document.getElementById) {
layerStyleRef="layer.style.";
layerRef="document.getElementById";
styleSwitch=".style";
layerVis="visible";
layerHid="hidden";
}
else {
layerStyleRef="layer.style.";
layerRef="document.all";
styleSwitch=".style";
layerVis="visible";
layerHid="hidden";
}
}
// SHOW MENU
function shLayer(layerName, isSubSub){
if (layerName && layerName != 'undefined') {
img = getImage("harn_inner_nav_visit");
x = getImagePageLeft(img);
y = getImagePageTop(img);
imgH = 0;
imgW = 0;
//****DROPDOWN MENU POSITION
menuTop = y ; // LAYER TOP POSITION
Sub0Y = y + imgH;
Sub0Y = Sub0Y + 57; // LAYER LEFT POSTION 0
Sub0L = x + 0; // LAYER RIGHT POSTION 0
Sub1Y = Sub0Y + 0; // LAYER LEFT POSTION 1
Sub1L = x + 84; // LAYER RIGHT POSTION 1
Sub2Y = Sub0Y + -4; // LAYER LEFT POSTION 2
Sub2L = x + 215; // LAYER RIGHT POSTION 2
Sub3Y = Sub0Y + -4; // LAYER LEFT POSTION 3
Sub3L = x + 315; // LAYER RIGHT POSTION 3
Sub4Y = Sub0Y + -5; // LAYER LEFT POSTION 4
Sub4L = x + 417; // LAYER RIGHT POSTION 4
Sub5Y = Sub0Y + -3; // LAYER LEFT POSTION 5
Sub5L = x + 545; // LAYER RIGHT POSTION 5
Sub6Y = Sub0Y + -2; // LAYER LEFT POSTION 6
Sub6L = x + 643; // LAYER RIGHT POSTION 6
Sub7Y = Sub0Y + 42; // LAYER LEFT POSTION 7
Sub7L = x + 168; // LAYER RIGHT POSTION 7
Sub8Y = Sub0Y + 17; // LAYER LEFT POSTION 8
Sub8L = x + 457; // LAYER RIGHT POSTION 8
if (NS4 || IE4 || NS6) {
if ((timeOn != null) && (onLayer != null) && (onLayer != 'undefined')) {
clearTimeout(timeOn);
if (isSubSub != 'Y') {
hideLayer(onLayer);
hideLayer(onSubLayer);
}
}
if (NS4 || IE4) {
eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="'+layerVis+'"');
eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.top="'+eval(layerName+'Y')+'"');
eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.left="'+eval(layerName+'L')+'"');
}
if (NS6) {
eval(layerRef+'("'+layerName+'")'+styleSwitch+'.visibility="'+layerVis+'"');
eval(layerRef+'("'+layerName+'")'+styleSwitch+'.top="'+eval(layerName+'Y')+'"');
eval(layerRef+'("'+layerName+'")'+styleSwitch+'.left="'+eval(layerName+'L')+'"');
}
}
//onLayer[layerName] = TRUE;
if (isSubSub != 'Y') { onLayer = layerName; }
else { onSubLayer = layerName; }
}
}
// HIDE MENU
function hideLayer(layerName){
//alert(layerName1);
//if (ThisTest == true) {
if (menuActive == 0 && layerName && layerName != 'undefined') {
//for (var i=0; i<8; i++) {
//var thisKey = 'Sub' + i;
//onLayer[layerName] = TRUE;
//var layerName = 'Sub' + i;
//alert(layerName);
if (NS4 || IE4) {
eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="'+layerHid+'"');
}
if (NS6) {
eval(layerRef+'("'+layerName+'")'+styleSwitch+'.visibility="'+layerHid+'"');
}
changeImages('harn_inner_nav_visit', '/images/harn_inner_nav_visit.gif', 'harn_inner_nav_exhibitions', '/images/harn_inner_nav_exhibitions.gif', 'harn_inner_nav_education', '/images/harn_inner_nav_education.gif','harn_inner_nav_collections', '/images/harn_inner_nav_collections.gif', 'harn_inner_nav_support', '/images/harn_inner_nav_support.gif', 'harn_inner_nav_about', '/images/harn_inner_nav_about.gif', 'harn_inner_nav_news', '/images/harn_inner_nav_news.gif');
//}
}
//}
}
// TIMER FOR BUTTON MOUSE OUT
function btnTimer() {
timeOn = setTimeout("btnOut()",500)
}// BUTTON MOUSE OUT
function btnOut(layerName) {
if (menuActive == 0) {
hideLayer(onLayer);
hideLayer(onSubLayer);
}
}// MENU MOUSE OVER
function menuOver(itemName) {
clearTimeout(timeOn);
menuActive = 1;
}// MENU MOUSE OUT
function menuOut(itemName) {
menuActive = 0;
timeOn = setTimeout("hideLayer(onLayer)", 400);
timeOn = setTimeout("hideLayer(onSubLayer)", 400);
}// SET BACKGROUND COLOR
function setBgColor(layer, color) {
if (NS6){
eval('document.getElementById("'+layer+'").style.backgroundColor="'+color+'"');
}
else if (NS4){
eval('window.document.layers["'+layer+'"].document.bgColor="'+color+'"');
eval('window.document.layers["'+layer+'"].saveColor="'+color+'"');
}
else if (IE4){
eval('document.all.'+layer+'.style.backgroundColor="'+color+'"');
}
}
function getImage(name) {
if (NS4 || NS6) {
return findImage(name, document);
}
if (IE4 || NS6)
return eval('document.all.' + name);
return null;
}
function findImage(name, doc) {
var i, img;
for (i = 0; i < doc.images.length; i++)
if (doc.images[i].name == name)
return doc.images[i];
for (i = 0; i < doc.layers.length; i++)
if ((img = findImage(name, doc.layers[i].document)) != null) {
img.container = doc.layers[i];
return img;
}
return null;
}
function getImagePageLeft(img) {
var x, obj;
if (NS4 || NS6) {
if (img.container != null)
return img.container.pageX + img.x - 1;
else
return img.x - 1;
}
if (IE4) {
x = 0;
obj = img;
while (obj.offsetParent != null) {
x += obj.offsetLeft;
obj = obj.offsetParent;
}
x += obj.offsetLeft;
return x;
}
return -1;
}
function getImagePageTop(img) {
var y, obj;
if (NS4 || NS6) {
if (img.container != null)
return img.container.pageY + img.y;
else
return img.y;
}
if (IE4) {
y = 0;
obj = img;
while (obj.offsetParent != null) {
y += obj.offsetTop;
obj = obj.offsetParent;
}
y += obj.offsetTop;
return y;
}
return -1;
}
// -->
Friday Night Sights
November 27, 2009
5 - 7 p.m. Four Friday nights this season, enjoy extended hours at the Harn Museum of Art and the Florida Museum of Natural History before attending a performance at the Phillips Center for the Performing Arts. The museums are extending their hours to 7 p.m. Phillips Center performances begin at 7:30 p.m. For more information, visit www.culturalplaza.ufl.edu. Prices for performances vary. Admission is free to the Harn and certain exhibitions at the Florida Museum. For dinner, visit the Camellia Court Café, which will serve until 6:30 p.m. Call 352.392.2735 for reservations, which are recommended. See the latest exhibitions on display at the Harn Museum of Art, and take a voyage down the Amazon at the Florida Museum of Natural History. Enjoy Lerner and Loewe’s Camelot at 7:30 p.m. at the Phillips Center.
Museum Nights at the Harn
December 10, 2009
6 - 9 p.m. Don’t miss a swingin’ good time at Museum Nights December 10 from 6 to 9 p.m. The 1940s-themed evening will feature the Florida Swing Dancers, who will be giving lessons and demonstrating classic moves. Remember times at the soda fountain with ice cream from the Sweet Dreams fire truck, which will be parked in front of the museum. Local collectors will have their classic cars on display. Join the museum and enter for a chance to win four vintage items: a pink Depression glass plate, two beaded purses and a pillbox hat. This Museum Nights is made possible by the generous support of the University of Florida Honors Program. Museum Nights is held at the Harn Museum of Art on the second Thursday of every month.