launchString = "";
currpath = "";
currID = "";
courseID = "";
topicID = "";

function StartDemo(currID, courseID, topicID) 
{
	launchString = currID + "/" + courseID + "/" + courseID + "_" + topicID + ".htm";
	PLcourseWindow();
}

function StartH2LDemo(currIDa, courseIDa, topicIDa) 
{
	currID = currIDa;
	courseID = courseIDa;
	topicID = topicIDa;
	currpath = "demos/" + currID + "/" + courseID + "/" + courseID + "_" + topicID + ".htm";
	PLScormcourseWindow();
}

function StartSKDemo(launchID) 
{
	launchString = launchID;
	SKcourseWindow();
}

function opendemo(url){

  if (navigator.appName=='Netscape') {
    features='width=700,height=550,status=yes,toolbar=no,';
    aleft=((screen.width)/2)-320; atop=((screen.height)/2)-240;
    features=features+'screenX='+aleft+',screenY='+atop;
  } else {
    features='status=yes, width=700,height=550, toolbar=no';
    aleft=((screen.Width)/2)-320; atop=((screen.Height)/2)-240;
    features=features+' ,left='+aleft+',top='+atop 
  }
  if (navigator.appName!="Netscape") { 
		features+=', resizable=no' 
  }
  CourseWindow=window.open(url,"PLcourseWindow",features);


}

function PLcourseWindow() 
{ 
  	if (navigator.appName=='Netscape') 
	{
    		features='width=630,height=454, toolbar=no';
    		aleft=((screen.width)/2)-320; atop=((screen.height)/2)-240;
    		features=features+'status=yes, ,screenX='+aleft+',screenY='+atop
  	} 
	else 
	{
    		features='status=yes, width=630,height=450, toolbar=no';
    		aleft=((screen.Width)/2)-320; atop=((screen.Height)/2)-240;
    		features=features+' ,left='+aleft+',top='+atop
  	}
  	if (navigator.appName!="Netscape") 
	{
		features+=', resizable=no'
  	}
	currpath='demos/' + launchString;
	//alert(currpath);
 	CourseWindow=window.open(currpath,"PLcourseWindow",features);
}

function SKcourseWindow() 
{ 
  	if (navigator.appName=='Netscape') 
	{
    		features='width=700,height=550, toolbar=no';
    		aleft=((screen.width)/2)-320; atop=((screen.height)/2)-240;
    		features=features+'status=yes, ,screenX='+aleft+',screenY='+atop
  	} 
	else 
	{
    		features='status=yes, width=675,height=500, toolbar=no';
    		aleft=((screen.Width)/2)-320; atop=((screen.Height)/2)-240;
    		features=features+' ,left='+aleft+',top='+atop
  	}
  	if (navigator.appName!="Netscape") 
	{
		features+=', resizable=no'
  	}

	currpath = launchString;
	//alert(currpath);
 	CourseWindow=window.open(currpath,"SKcourseWindow",features);
}

function PLScormcourseWindow() 
{ 
	features='status=yes, width=630,height=450, toolbar=no';
	aleft=((screen.Width)/2)-320; atop=((screen.Height)/2)-240;
	features=features+' ,left='+aleft+',top='+atop
	featuresH2L='status=yes, width=800,height=600, toolbar=no';
	aleft=((screen.Width)/2)-520; atop=((screen.Height)/2)-340;
	featuresH2L=featuresH2L+' ,left='+aleft+',top='+atop

	CourseWindow=window.open("demos/H2L/H2LFrame.html","PLcourseWindow",featuresH2L);
}

function startElementKITDemo(url)
{
	if (navigator.appName=='Netscape') 
	{
		features='width=933,height=700,toolbar=no';
		aleft=((screen.width)/2)-620; atop=((screen.height)/2)-400;
		features=features+'status=yes,,screenX='+aleft+',screenY='+atop;
	} 
	else 
	{
		features='status=yes,width=933,height=700,toolbar=no,menubar=no';
		aleft=50; atop=10;
		features=features+',left='+aleft+',top='+atop+',resizable=no';
	}
	crsLocation=url;
 	CourseWindow=window.open("demos/H2l-LNMKFrame/H2LFrameIT.html","LMNKcourseWindow",features);
}

function startElementKOPDemo(url)
{
	if (navigator.appName=='Netscape') 
	{
		features='width=933,height=700,toolbar=no';
		aleft=((screen.width)/2)-620; atop=((screen.height)/2)-400;
		features=features+'status=yes,,screenX='+aleft+',screenY='+atop;
	} 
	else 
	{
		features='status=yes,width=933,height=700,toolbar=no,menubar=no';
		aleft=50; atop=10;
		features=features+',left='+aleft+',top='+atop+',resizable=no';
	}
	crsLocation=url;
 	CourseWindow=window.open("demos/H2l-LNMKFrame/H2LFrameOP.html","LMNKcourseWindow",features);
}

function startECDLDemo(url)
{
if (navigator.appName=='Netscape') {
    features='width=780,height=615,toolbar=no';
    aleft=((screen.width)/2)-620; atop=((screen.height)/2)-400;
    features=features+'status=yes,,screenX='+aleft+',screenY='+atop
  } else {
    features='status=yes,width=780,height=615,toolbar=no,menubar=no';
    aleft=50; atop=10;
    features=features+',left='+aleft+',top='+atop+',resizable=no';
  }

	newwin = window.open(url,"_blank",features);
}