<!--//hidden


/////////////////////////////////////////
// Convert userAgent string to Lowercase
/////////////////////////////////////////


var agt=navigator.userAgent.toLowerCase();


///////////////////
// Browser Version
///////////////////


var is_major = parseInt(navigator.appVersion);
var is_minor = parseFloat(navigator.appVersion);

var is_ns  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1) && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1) && (agt.indexOf('webtv')==-1));

var is_ie   = (agt.indexOf("msie") != -1);

////////////
// Platform
////////////


var is_win   = ( (agt.indexOf("win")!=-1) || (agt.indexOf("16bit")!=-1) );
var is_win95 = ((agt.indexOf("win95")!=-1) || (agt.indexOf("windows 95")!=-1));
var is_win16 = ((agt.indexOf("win16")!=-1) || (agt.indexOf("16bit")!=-1) || (agt.indexOf("windows 3.1")!=-1) || (agt.indexOf("windows 16-bit")!=-1) );
var is_win31 = ((agt.indexOf("windows 3.1")!=-1) || (agt.indexOf("win16")!=-1) || (agt.indexOf("windows 16-bit")!=-1));

var is_win98 = ((agt.indexOf("win98")!=-1) || (agt.indexOf("windows 98")!=-1));
var is_winnt = ((agt.indexOf("winnt")!=-1) || (agt.indexOf("windows nt")!=-1));
var is_win32 = (is_win95 || is_winnt || is_win98 || ((is_major >= 4) && (navigator.platform == "Win32")) || (agt.indexOf("win32")!=-1) || (agt.indexOf("32bit")!=-1));

var is_mac= (agt.indexOf("mac")!=-1);


/////////////////////////////////////
// Detect IE 4.5 on the mac
// Mucho Problemos with this browser
/////////////////////////////////////


var is_ie45mac  = (is_mac && is_ie && (agt.indexOf("msie 5.0")==-1) && (agt.indexOf("msie 5.5")==-1) && (agt.indexOf("msie 4.5")!=-1));


//////////////////////////////////////////
// Flash 3, 4, 5 AND 6 Detection
// Last Modified: 05-04-02
// NOT checking for enabledPlugin (buggy)
//////////////////////////////////////////


var is_flash7 = 0;
var is_flash6 = 0;
var is_flash5 = 0;
var is_flash4 = 0;
var is_flash3 = 0;


if (navigator.plugins["Shockwave Flash"]) {

	var plugin_version = 0;
	var plugin_description = navigator.plugins["Shockwave Flash"].description.split(" ");


	for (var i = 0; i < plugin_description.length; ++i) {

	if (isNaN(parseInt(plugin_description[i])))

	continue;

	plugin_version = plugin_description[i];

		}
	}

	if (plugin_version == 7) {

	is_flash7 = 1;
	
	
	} else if (plugin_version == 6) {

	is_flash6 = 1;


	} else if (plugin_version == 5) {

	is_flash5 = 1;


	} else if (plugin_version == 4) {

	is_flash4 = 1;


	} else if (plugin_version <= 3) {

	is_flash3 = 1;


	}


if (is_ie && is_win32) { // Check IE on windows for flash 3,4,5,6 AND 7 using VB Script

	document.write('<SCRIPT LANGUAGE="VBScript"\>\n');
	document.write('on error resume next\n');
	document.write('is_flash7 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.7")))\n');
	document.write('on error resume next\n');
	document.write('is_flash6 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6")))\n');
	document.write('on error resume next\n');
	document.write('is_flash5 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5")))\n');
	document.write('on error resume next\n');
	document.write('<'+'/SCRIPT> \n');
}


// -->

var how_many_ads = 20;
var now = new Date();
// for development
if (document.domain=='cis05124') 
     var img_path = new String("/daisy/resources/skins/default/images/");
else 
     var img_path = new String("/resources/skins/default/images/");

var sec = now.getSeconds();
var ad = sec % how_many_ads;
ad +=1;
if (ad==1) {
alt=" ";
title="";
banner = img_path + "Fenner/polaroids/photo01.jpg";
width="176";
height="186";
}
if (ad==2) {
alt=" ";
title="";
banner = img_path + "Fenner/polaroids/photo02.jpg";
width="176";
height="186";
}
if (ad==3) {
alt=" ";
title="";
banner = img_path + "Fenner/polaroids/photo03.jpg";
width="176";
height="186";
}
if (ad==4) {
alt=" ";
title="";
banner = img_path + "Fenner/polaroids/photo04.jpg";
width="176";
height="186";
}
if (ad==5) {
alt=" ";
title="";
banner = img_path + "Fenner/polaroids/photo05.jpg";
width="176";
height="186";
}
if (ad==6) {
alt=" ";
title="";
banner = img_path + "Fenner/polaroids/photo06.jpg";
width="176";
height="186";
}
if (ad==7) {
alt=" ";
title="";
banner = img_path + "Fenner/polaroids/photo07.jpg";
width="176";
height="186";
}
if (ad==8) {
alt=" ";
title="";
banner = img_path + "Fenner/polaroids/photo08.jpg";
width="176";
height="186";
}
if (ad==9) {
alt=" ";
title="";
banner = img_path + "Fenner/polaroids/photo09.jpg";
width="176";
height="186";
}
if (ad==10) {
alt=" ";
title="";
banner = img_path + "Fenner/polaroids/photo10.jpg";
width="176";
height="186";
}
if (ad==11) {
alt=" ";
title="";
banner = img_path + "Fenner/polaroids/photo11.jpg";
width="176";
height="186";
}
if (ad==12) {
alt=" ";
title="";
banner = img_path + "Fenner/polaroids/photo12.jpg";
width="176";
height="186";
}
if (ad==13) {
alt=" ";
title="";
banner = img_path + "Fenner/polaroids/photo13.jpg";
width="176";
height="186";
}
if (ad==14) {
alt=" ";
title="";
banner = img_path + "Fenner/polaroids/photo14.jpg";
width="176";
height="186";
}
if (ad==15) {
alt=" ";
title="";
banner = img_path + "Fenner/polaroids/photo15.jpg";
width="176";
height="186";
}
if (ad==16) {
alt=" ";
title="";
banner = img_path + "Fenner/polaroids/photo16.jpg";
width="176";
height="186";
}
if (ad==17) {
alt=" ";
title="";
banner = img_path + "Fenner/polaroids/photo17.jpg";
width="176";
height="186";
}
if (ad==18) {
alt=" ";
title="";
banner = img_path + "Fenner/polaroids/photo18.jpg";
width="176";
height="186";
}
if (ad==19) {
alt=" ";
title="";
banner = img_path + "Fenner/polaroids/photo19.jpg";
width="176";
height="186";
}
if (ad==20) {
alt=" ";
title="";
banner=img_path + "Fenner/polaroids/photo20.jpg";
width="176";
height="186";
}
var flash_path = new String("http://uaw-fenner.anu.edu.au/Fenner/175/version/1/part/9/data/polaroids.swf");
if ( is_flash6 || is_flash5  || is_flash7 ){
	document.write ('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="176" height="186">');
	document.write ('<param name="movie" value="' + flash_path + '">');
	document.write ('<param name="quality" value="high">');
	document.write ('<embed src="' + flash_path + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="176" height="186"></embed>');
	document.write ('</object>');
}
else{
	document.write('<img src=\"' + banner + '\" width=')
	document.write(width + ' height=' + height + ' alt=\"' + alt + '\" title=\"' + title + '\" ');
	document.write(' border=\"0\">');
}	
