<!--
function checkmatric(matric){
if (matric = 0 &&  location.pathname != "/courses/omsc/index.cfm"){
location.href="/courses/omsc/index.cfm";
}

}
function pageref(){
return location.pathname;
}
function register(pageref){
        parent.learn=0;
		parent.lastfile0=pageref;
}

function gen(ingen){
	if(ingen == 0){
		document.bgColor="#EEEEEE"
		
		var tagp=document.getElementsByTagName("table");
		for(var i=0;i<document.getElementsByTagName("table").length;++i){
		if(tagp[i].id=="kontent")tagp[i].borderColor="#000099";
		if(tagp[i].id=="kontent")tagp[i].bgColor="#F0F0FF";
		if(tagp[i].id=="wrapper")tagp[i].bgColor="#EEEEEE";
		if(tagp[i].id=="wrapper")tagp[i].borderColor="#333366";				
		if(tagp[i].id=="kontent")tagp[i].width="100%";		
		}
		}
	if(ingen == 1){
		document.bgColor="#EEEEEE"
		var tagp=document.getElementsByTagName("table");
		for(var i=0;i<document.getElementsByTagName("table").length;++i){
		if(tagp[i].id=="kontent")tagp[i].borderColor="#990000";
		if(tagp[i].id=="kontent")tagp[i].bgColor="#FFF0F0";
		if(tagp[i].id=="kontent")tagp[i].width="100%";
		if(tagp[i].id=="wrapper")tagp[i].bgColor="#EEEEEE";
		if(tagp[i].id=="wrapper")tagp[i].borderColor="#663333";						
		}
				
		}
	if(ingen == -1){
		document.bgColor="#EEEEEE"
		var tagp=document.getElementsByTagName("table");
		for(var i=0;i<document.getElementsByTagName("table").length;++i){
		if(tagp[i].id=="kontent")tagp[i].borderColor="#333333";
		if(tagp[i].id=="kontent")tagp[i].bgColor="#F3F3F3";
		if(tagp[i].id=="kontent")tagp[i].width="100%";
		if(tagp[i].id=="wrapper")tagp[i].bgColor="#EEEEEE";
		if(tagp[i].id=="wrapper")tagp[i].borderColor="#444444";						
		}
		}
		
resizer();

	}
	
	function checkScreen(){
var screenwidth = screen.width;
}
function resizer(){
//alert("Resizer running");
var tagp=document.getElementsByTagName("leftcol");
//alert("Element foud =  "+tagp.length);
for(var i=0;i<tagp.length;++i){
//alert("Width ="+tagp);
tagp[i].width="1000px";



}
function loader(){

	explorer();

}

function explorer(){
pageDim();

if(is_getElementsByTagName=='true'){


if(livePageWidth < 980){

var tagp=document.getElementsByTagName("p");
for(var i=0;i<tagp.length;++i){
tagp[i].style.fontSize="8pt";
tagp[i].style.fontWeight="normal";
}

var tagp=document.getElementsByTagName("h3");
for(var i=0;i<tagp.length;++i){
tagp[i].style.fontSize="8pt";
tagp[i].style.fontWeight="normal";
}

var tagp=document.getElementsByTagName("h2");
for(var i=0;i<tagp.length;++i){
tagp[i].style.fontSize="10pt";
}

var tagp=document.getElementsByTagName("h1");
for(var i=0;i<tagp.length;++i){
tagp[i].style.fontSize="12pt";
}


}
else {

var tagp=document.getElementsByTagName("p");
for(var i=0;i<tagp.length;++i){
tagp[i].style.fontSize="8pt";
tagp[i].style.fontWeight="bold";
}

var tagp=document.getElementsByTagName("h3");
for(var i=0;i<tagp.length;++i){
tagp[i].style.fontSize="10pt";
tagp[i].style.fontWeight="bold";
}

var tagp=document.getElementsByTagName("h2");
for(var i=0;i<tagp.length;++i){
tagp[i].style.fontSize="12pt";
}
var tagp=document.getElementsByTagName("h1");
for(var i=0;i<tagp.length;++i){
tagp[i].style.fontSize="18pt";
}

}

}


}





if(is_getElementById == 'true'){

//var divisions = document.all.tags("div");
//alert("widtha = "+document.getElementById('Layer3').style.width);
document.getElementById('Layer1').style.width=livePageWidth;
document.getElementById('Layer2').style.top=52;
document.getElementById('Layer2').style.width=160;
document.getElementById('Layer2').style.left=10;
document.getElementById('Layer3').style.left=210;
document.getElementById('Layer3').style.top=52;
document.getElementById('Layer3').style.width=livePageWidth-220;
document.getElementById('Layer3').style.color="#CC6666";
}




}


function findLivePageHeight() {
	if (window.innerHeight != null)
		return window.innerHeight; 
	if (document.body.clientHeight != null)
		return document.body.clientHeight;
	return (null);
}
function findLivePageWidth() {
	if (window.innerWidth != null)
		return window.innerWidth;
	if (document.body.clientWidth != null)
		return document.body.clientWidth;
	return (null);
}
function pageDim() {
	livePageHeight = findLivePageHeight();
	livePageWidth = findLivePageWidth();
}

//-->
