// Continuous Image Marquee with Links
// copyright 21st September 2008 by Stephen Chapman
// http://javascript.about.com
// permission to use this Javascript on your web page is granted
// provided that all of the code below in this script (including these
// comments) is used without any alteration
var mqAry1=[['Collages/Barbeque.gif','./slideshow00.html'],
['Collages/Images1.gif','./slideshow01.html'],
['Collages/FlagFootball.gif','./slideshow02.html'],
['Collages/CarWash.gif','./slideshow03.html'],
['Collages/ConferencewithBiophysicsClub.gif','./slideshow04.html'],
['Collages/FestivalOfNations.gif','./slideshow05.html'],
['Collages/InClass.gif','./slideshow06.html'],
['Collages/LSUCampus.gif','./slideshow07.html'],
['Collages/CabinPhysicsChemistryRetreat.gif','./slideshow08.html'],
['Collages/PhysicsDepartment.gif','./slideshow09.html'],
['Collages/BeachVespers2.gif','./slideshow10.html']
];

var mqAry2=[
/*['graphics/img05.gif','blcmarquee1.htm'],
['graphics/img06.gif','blclockm1.htm'],
['graphics/img07.gif','blcmarquee1.htm'],
['graphics/img08.gif','blcmarquee1.htm'],
['graphics/img09.gif','blcmarquee1.htm'],
['graphics/img10.gif','blcmarquee1.htm'],
['graphics/img0.gif','blcmarquee1.htm'],
['graphics/img01.gif','blcmarquee1.htm'],
['graphics/img02.gif','blcmarquee1.htm'],
['graphics/img03.gif','blcmarquee1.htm'],
['graphics/img04.gif', 'blcmarquee1.htm']*/

['Collages/Barbeque.gif','SlideShowPhys/slideshow00.html'],
['Collages/Images.gif','SlideShowPhys/slideshow01.html'],
['Collages/Flag Football.gif','SlideShowPhys/slideshow02.html'],
['Collagess/Car Wash.gif','SlideShowPhys/slideshow03.html'],
['Collages/Conference with Biophysics Club.gif','SlideShowPhys/slideshow04.html'],
['Collages/Festival Of Nations.gif','SlideShowPhys/slideshow05.html'],
['Collages/In Class.gif','SlideShowPhys/slideshow06.html'],
['Collages/LSU Campus.gif','SlideShowPhys/slideshow07.html'],
['Collages/Cabin Physics Chemistry Retreat.gif','SlideShowPhys/slideshow08.html'],
['Collages/Physics Department.gif','SlideShowPhys/slideshow09.html'],
['Collages/Beach Vespers1.gif','SlideShowPhys/slideshow10.html']
];

function start() {
   new mq('m1',mqAry1,100);
   new mq('m2',mqAry2,60);// repeat for as many fuields as required
   mqRotate(mqr); // must come last
}
window.onload = start;
// Continuous Image Marquee
// copyright 24th July 2008 by Stephen Chapman
// http://javascript.about.com
// permission to use this Javascript on your web page is granted
// provided that all of the code below in this script (including these
// comments) is used without any alteration

var mqr = []; 
function mq(id,ary,wid){this.mqo=document.getElementById(id); 
var heit = this.mqo.style.height; 
this.mqo.onmouseout=function() {
	mqRotate(mqr);
}; 
this.mqo.onmouseover=function() {
	clearTimeout(mqr[0].TO);
}; 
this.mqo.ary=[]; 
var maxw = ary.length;
for (var i=0;i<maxw;i++){
	var img=document.createElement('img'); 
	img.src=ary[i][0]; 
	var lnk=document.createElement('a');
	 lnk.href=ary[i][1]; 
	 lnk.appendChild(img); 
	 this.mqo.ary[i]=document.createElement('div'); 
	this.mqo.ary[i].appendChild(lnk);
	//this.mqo.ary[i][0]=document.createElement('img');
	//this.mqo.ary[i].src=ary[i]; 
	this.mqo.ary[i].style.position = 'absolute'; 
	this.mqo.ary[i].style.top = (wid*i)+'px'; 
	this.mqo.ary[i].style.width = wid+'px'; 
	this.mqo.ary[i].style.height = heit;
	this.mqo.appendChild(this.mqo.ary[i]);}
mqr.push(this.mqo);
} 
function mqRotate(mqr){
	if (!mqr) return; 
	for (var j=mqr.length - 1; j > -1; j--) {
		maxa = mqr[j].ary.length; 
		for (var i=0;i<maxa;i++){
			var x = mqr[j].ary[i].style; 
			x.top=(parseInt(x.top,10)-1)+'px';} 
		var y = mqr[j].ary[0].style; 
		if (parseInt(y.top,10)+parseInt(y.width,10)<0) {
			var z = mqr[j].ary.shift(); 
			z.style.top = (parseInt(z.style.top) + parseInt(z.style.width)*maxa) + 'px'; 
			mqr[j].ary.push(z);}
	} mqr[0].TO=setTimeout('mqRotate(mqr)',10);
}