// Distributed by http://www.hypergurl.com

// Scrollers width here (in pixels)
var scrollerwidth="700px"

// Scrollers height here
var scrollerheight="370px"

// Scrollers speed here (larger is faster 1-10)
var scrollerspeed=1



// Scrollers content goes here! Keep all of the message on the same line!


var scrollercontent="<div>\
<font size='4'>DAN Instructor Qualification Course (IQC)</font><br><br>\
	The DAN Instructor Qualification Course (IQC) trains and educates qualified scuba diving \
	instructors to plan, manage, conduct and promote dive safety through a well established \
	educational system established by Divers Alert Network (DAN). \
	The available Instructor Training programs are DAN Oxygen First Aid for Scuba Diving Injuries, \
	Advanced Oxygen First Aid, Automated External Defibrillator (AED) for Scuba Diving, \
	First Aid for Hazardous Marine Life Injuries and Oxygen First Aid for Aquatic Emergencies.<br>\
	<br>\
	In addition this course develops role-model teaching techniques in the use of first aid \
	for suspected dive injuries. Instructor Candidates also have the opportunity to develop further \
	knowledge in relation to the special considerations involved in providing emergency first aid.<br>\
	<br>\
	The DAN IQC consists of several modules. There is a core module that introduces DAN and the \
	DAN Training philosophy. This core module serves as an introduction for all other DAN Training Programs. \
	The remaining programme modules represent each of the individual training courses offered by DAN.<br>\
	<br>\
	<p>\
	<img src=\"images/courses/1.jpg\">&nbsp;&nbsp;&nbsp;\
	<img src=\"images/courses/2.jpg\">&nbsp;&nbsp;&nbsp;\
	<img src=\"images/courses/3.jpg\">&nbsp;&nbsp;&nbsp;\
	<img src=\"images/courses/4.jpg\">&nbsp;&nbsp;&nbsp;\
	<img src=\"images/courses/5.jpg\">&nbsp;&nbsp;&nbsp;\
	<img src=\"images/courses/7.jpg\">\
	</p>\
	By being trained in the DAN First Aid programs you will be able to make the difference between an accident and a disaster.\
</div>"

/*
<b>Emergency First Response Instructor Course:</b><br>\
	During the Emergency First Response Instructor course, you will \
	build on your skill as an Emergency Responder and focus on developing \
	your instructional abilities to teach these skills to others. The \
	Instructor course provides you with the additional training necessary \
	to teach the Emergency First Response Primary Care (CPR), Secondary \
	Care (First Aid), Care for Children and First Aid at Work courses. \
	Through a multi-media approach of independent study, classroom \
	sessions and practical teaching assignments, you learn to conduct \
	Emergency First Response courses.<br> \
	The instructor course covers specific goals and performance requirements \
	for the Primary Care, Secondary Care and Care for Children courses, along with \
	instruction on how to structure learning, the requirements of performance-based \
	training, and your role as the instructor in the learning environment. You also \
	learn how to motivate students, evaluate student knowledge, present course \
	content effectively, become proficient in developing students' hands-on \
	skills practice sessions, and are taught how to present an effective \
	scenario-based learning experience.\
*/

var pauseit=1
var alreadyscrolling=0
var init=1

// Change nothing below!

scrollerspeed=(document.all)? scrollerspeed : Math.max(1, scrollerspeed-1) //slow speed down by 1 for NS
var copyspeed=scrollerspeed
var iedom=document.all||document.getElementById
var actualheight=''
var cross_scroller, ns_scroller
var pausespeed=(pauseit==0)? copyspeed: 0

function fastforward()
{
	startScr()
	scrollerspeed=3; 
	copyspeed=scrollerspeed; 
	//populate()
}

function rewind()
{
	startScr()
	scrollerspeed=(-3); 
	copyspeed=scrollerspeed; 
	//populate()
}

function pause()
{
	//scrollerspeed=0
	copyspeed=pausespeed
}

function skipstart()
{
	cross_scroller.style.top= "10px"
	copyspeed=pausespeed
}

function skipend()
{
	cross_scroller.style.top= "-150px"
	copyspeed=pausespeed
}

function populate()
{
	if (iedom)
	{
	cross_scroller=document.getElementById? document.getElementById("iescroller") : document.all.iescroller
	//cross_scroller.style.top=parseInt(scrollerheight)+8+"px"
	cross_scroller.style.top= "10px"
	cross_scroller.innerHTML=scrollercontent
	actualheight=cross_scroller.offsetHeight
	}
	else if (document.layers)
	{
	ns_scroller=document.ns_scroller.document.ns_scroller2
	ns_scroller.top=parseInt(scrollerheight)+8
	ns_scroller.document.write(scrollercontent)
	ns_scroller.document.close()
	actualheight=ns_scroller.document.height
	}
	//startScr()
}

function startScr()
{
	if (alreadyscrolling==0)
	{
		lefttime=setInterval("scrollscroller()",50)
	}
}


window.onload=populate

function scrollscroller()
{
	alreadyscrolling = 1
	if (scrollerspeed>0)
	{
		if (parseInt(cross_scroller.style.top)>(-150))
		{
			if (iedom)
			{
				if (parseInt(cross_scroller.style.top)>(actualheight*(-1)+8))
				cross_scroller.style.top=parseInt(cross_scroller.style.top)-copyspeed+"px"
				else
				cross_scroller.style.top=parseInt(scrollerheight)+8+"px"
			}
			else if (document.layers)
			{
				if (ns_scroller.top>(actualheight*(-1)+8))
				ns_scroller.top-=copyspeed
				else
				ns_scroller.top=parseInt(scrollerheight)+8
			}
		}
		else
		{
			copyspeed=pausespeed
		}
	}
	else
	{	
		if (parseInt(cross_scroller.style.top)<10)
		{
			if (iedom)
			{
				if (parseInt(cross_scroller.style.top)>(actualheight*(-1)+8))
				cross_scroller.style.top=parseInt(cross_scroller.style.top)-copyspeed+"px"
				else
				cross_scroller.style.top=parseInt(scrollerheight)+8+"px"
			}
			else if (document.layers)
			{
				if (ns_scroller.top>(actualheight*(-1)+8))
				ns_scroller.top-=copyspeed
				else
				ns_scroller.top=parseInt(scrollerheight)+8
			}
		}
		else
		{
			copyspeed=pausespeed
		}
	}

}

if (iedom||document.layers)
{
	with (document)
	{
		if (iedom)
		{
			write('<div style="position:relative;width:'+scrollerwidth+';height:'+scrollerheight+';overflow:hidden">')
			write('<div id="iescroller" style="position:absolute;left:0px;top:0px;width:100%;">')
			write('</div></div>')
		}
		else if (document.layers)
		{
			write('<ilayer width='+scrollerwidth+' height='+scrollerheight+' name="ns_scroller">')
			write('<layer name="ns_scroller2" width='+scrollerwidth+' height='+scrollerheight+' left=0 top=0></layer>')
			write('</ilayer>')
		}
	}
}

//onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=scrollerspeed"
