
  var imgLink = "";

function loadCImg()
  {

	  var rand_no = "masters"
	  	  /*var rand_no = Math.random();
	  
	  	  rand_no = rand_no * 10;
	  	  rand_no = Math.floor(rand_no)
	  
	  	  if(rand_no > 8){rand_no = 8}
	  	  if(rand_no < 1){rand_no = 1}*/
	  
	  	
	  
	  
	  		imgLink = "courseware/masters/m10/s15/index.htm"
		/*switch (rand_no)
			{
			case 1:
			  imgLink = "courseware/firstaid/TestFrame.htm"
			  break;
			case 2:
			  imgLink = "courseware/electricity/TestFrame.htm"
			  break;
			case 3:
			  imgLink = "courseware/MSEB/courseware/mod8/mod8.htm"
			  break;
			case 4:
			  imgLink = "courseware/ManagingYourself/launch.htm"
			  break;
			case 5:
			  imgLink = "courseware/MSOI/courseware/mod9/mod9.htm"
			  break;
		    case 6:
			  imgLink = "courseware/MSPI/courseware/mod7/mod7.htm"
			  break;
			case 7:
			  imgLink = "courseware/timemanagement/TestFrame.htm"
			  break;
			case 8:
			  imgLink = "courseware/MSWB/courseware/mod10/mod10.htm"
			  break;


			default:

			}*/

		
		imgLink = ""+imgLink
		
	  document.getElementById('evalImg').style.backgroundImage = "url(img/"+rand_no+".jpg)"
	  document.getElementById('evalImg').onmousedown= loadImgUrl;



  }
  
  function loadImgUrl()
  {
  	var bodHig = document.body.clientHeight / 2;
  	var fromTop = bodHig - 350;
  	var bodWid = document.body.clientWidth / 2;
  	var fromLeft = bodWid - 512
  	
  	fromTop = Math.ceil(fromTop)
  	fromLeft = Math.ceil(fromLeft)

  	props = "'height= 700,width=1024, left="+fromLeft+",top="+fromTop+"'"
  	
  	new_window = window.open(imgLink,'CourseDemo', props);
  	new_window.focus();
  	setTimeout("new_window.focus()",1000)
  	
  	new_window.focus()
  	
  	setTimeout("new_window.focus()",1000)

  }


	var globCurrentSelection = 1;

  function overVidList(context)
  {

  var currentId =  "vidList" + context;

	for(i = 0; i < 7 ; i++)
	{

		var currentPos = i+1;

		if(currentPos != globCurrentSelection)
		{
			var tempCurr = 'vidList'+currentPos;
			document.getElementById(tempCurr).style.fontWeight = "100";
		}
	}

	document.getElementById(currentId).style.fontWeight = "900";


  }

  function onClickit(context)
  {

	var pared = parseInt(context);
	globCurrentSelection = pared;

	for(i = 0; i < 7 ; i++)
	{

		var currentPos = i+1;
		var tempCurr = 'vidList'+currentPos;
		document.getElementById(tempCurr).style.fontWeight = "100";
	}

	document.getElementById('vidList'+globCurrentSelection).style.fontWeight = "900";

   }



   function testOut(context)
   {

	var pared = parseInt(context);


	for(i = 0; i < 7 ; i++)
	{
		if(globCurrentSelection != i+1)
		{
		var currentPos = i+1;
		var tempCurr = 'vidList'+currentPos;
		document.getElementById(tempCurr).style.fontWeight = "100";
		}
	}



   }




