function slideshow(mobject){
	document.getElementById("slideIn").innerHTML = "<img src='" +mobject+ "' width='400' height='300'><p>Slide " +slideN+ " of 9</p>";
}
var slideN = 1;
function mslide(){
	switch(slideN)
	{
		case 1:
			slideshow("access_course/IMG_0972_x700.jpg");
			;break
		case 2:
			slideshow("access_course/IMG_0974_x700.jpg");
			;break
		case 3:
			slideshow("access_course/IMG_0975_x700.jpg");
			;break
		case 4:
			slideshow("access_course/IMG_0976_x700.jpg");
			;break
		case 5:
			slideshow("access_course/IMG_0977_x700.jpg");
			;break
		case 6:
			slideshow("access_course/IMG_0978_x700.jpg");
			;break
		case 7:
			slideshow("access_course/IMG_0979_x700.jpg");
			;break
		case 8:
			slideshow("access_course/IMG_0980_x700.jpg");
			;break
		case 9:
			slideshow("access_course/IMG_0981_x700.jpg");
			;break
	}
}
function slideRight(){
	if( slideN >= 9 ){
		slideN = 1;
		}else{
		slideN += 1;
	}
	mslide();
}
function slideLeft(){
	if( slideN <= 1 ){
		slideN = 9;
		}else{
		slideN -= 1;
	}
	mslide();
}
function printdoc(mID){
	var myContents = document.getElementById(mID);
	top.consoleRef=window.open('','myconsole',
		'width=500,height=500'
		+',menubar=0'
		+',toolbar=0'
		+',status=0'
		+',scrollbars=1'
		+',resizable=1'
	);
	var myTop = "<html><head><meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>\n\
<title>Course Dates</title>\n\
<script language='javascript'>\n\
function printdoc(){\n\
window.print();\n\
}\n\
</script>\n\
<style type='text/css'>\n\
body,td,th {font-family:Arial, Helvetica, sans-serif; font-size:12px;}\n\
.setLeft{float: left;width: 250px;}\n\
.printme{cursor:pointer;color:blue;}\n\
.printer {\n\
	position: relative;\n\
	left: 300px;\n\
	top: -35px;\n\
	width: 150px;\n\
	height: 35px;\n\
	cursor: pointer;\n\
	color: #0000FF;\n\
	background-image: url(printer.jpg);\n\
	background-repeat: no-repeat;\n\
}\n\
.printer p {\n\
	margin-left: 35px;\n\
	margin-top: 10px;\n\
}\n\
</style>\n\
</head><body onLoad='printdoc();'><br/>";
	var myBottom = "</body></html>";
	var printDoc = myTop + myContents.innerHTML + myBottom;
	top.consoleRef.document.write(printDoc);
	top.consoleRef.document.close();
}
function findPos(obj) {
	var curleft = curtop = 0;
	if (obj.offsetParent) {
			do{
					curleft += obj.offsetLeft;
					curtop += obj.offsetTop;
			}while (obj = obj.offsetParent);
			return (curtop);
	}
}
function custAnchor(manchor){
	document.getElementById("mainLinks").className = document.getElementById("mainLinks").className.replace(/leftLinks blank/,'leftLinks leftTop');
	var objsCurrPos = findPos(document.getElementById(manchor));
	document.body.scrollTop = objsCurrPos - 200;
}

function closeflashplayer(){
	document.getElementById('flashMovie').innerHTML = "<img name='' src='images/play-video.gif' width='320' height='264' alt=''>";
}
function enableplayer(fName, mWidth, mHeight, fWidth, fHeight){
	focusOnThis('flashMovie');
	document.getElementById('flashMovie').innerHTML = "<div class='closeFlashContainer'><div class='closeFlash' onClick='closeflashplayer()'>x</div></div>\
		<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' id='ib' width='" +mWidth+ "' height='" +mHeight+ "' align='left' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0'>\
			<param name='allowScriptAccess' value='sameDomain' />\
			<param name='movie' value='ibplayer.cgi?flvfile=" +fName+ "&fwidth=" +fWidth+ "&fheight=" +fHeight+ "' />\
			<param name='quality' value='high' />\
			<param name='allowFullScreen' value='true' />\
			<param name='scale' value='noscale' />\
			<param name='wmode' value='gpu' />\
			\
			<!--below is ONLY for Mozilla, above is for IE-->\
			<!-- always add 24px to the height, for the control bar -->\
			<embed src='ibplayer.cgi?flvfile=" +fName+ "&fwidth=" +fWidth+ "&fheight=" +fHeight+ "' \
				allowfullscreen='true' \
				quality='high' \
				width='" +mWidth+ "' \
				height='" +mHeight+ "' \
				align='left' \
				scale='noscale'\
				allowScriptAccess='sameDomain' \
				wmode='gpu' \
				type='application/x-shockwave-flash' \
				pluginspage='http://www.macromedia.com/go/getflashplayer' \
			/> \
		</object>\
	";
}
function focusOnThis(manchor){
	var objsCurrPos = findPos(document.getElementById(manchor));
	document.body.scrollTop = objsCurrPos - 200;
}

