
var mHome = "Click on me to go to the home page."
var mTList = "Click on me to go to the Turkish Index."
var mEList= "Click on me to go to the English Index."
var mExercise = "Click on me to go to the exercises main page."
var mSozluk = "Click on me to go to the dictionary page."
var mHelp = "Click on me to go to the help page."
var mPrev = "Click on me to go to the previous exercise"
var mNext = "Click on me to go to the next exercise"
var mInstruction = "Click on me to see the instructions"
var windowClosed = 0

var waferin 	= "Aferin! Tebrikler!"

document.writeln('<HTML><HEAD>')
document.writeln('<TITLE>Turkish Language Electronic Performance Support System -- TLEPSS </TITLE>')
document.writeln('   <META http-equiv="content-type" content="text/html; charset=windows-1254">')
document.writeln('   <META http-equiv="content-type" content="text/html; charset=ISO-8859-9">')
document.writeln('   <META http-equiv="content-language" content="TR">')

document.writeln('<body bgcolor="#fdfcec" link="#000095" vlink="#800000" alink="#000095">')

document.writeln('<style>')
document.writeln('<!--')
document.writeln('.over{font-size: normalpt;color: Red;font-weight: bolder;font-style: italic}')
document.writeln('.over2{font-size: normalpt;color: 000080;font-weight: bolder;}')
document.writeln('-->')
document.writeln('</style></HEAD>')
document.writeln('<BODY ID = "PG1" topmargin="0" leftmargin="8" >')

document.writeln('<BASEFONT="00" FONT FACE="Comic Sans MS, Times">')
document.writeln('<font size=+1><FORM name = "message">')
document.writeln('<a name = "tl0">')

document.writeln('<table><tr><td><pre>  </pre></td><td><center><img src="../images/banner1.gif" ></center></td><td><pre>  </pre></td><td>')

document.writeln('<table><tr><td>')

if (lprev > "") {
   if (lprev == "H") {document.writeln('<A HREF= "javascript:history.go(-1)" onMouseOver= glossMe(mPrev) onMouseOut=unGloss() target="_top">')}
   else {document.writeln('<A HREF= '+ lprev + ' onMouseOver= glossMe(mPrev) onMouseOut=unGloss() target="_top">')}
   document.writeln('<img SRC= "../prev.gif" height=20 width=20></A> ')
}

document.writeln("<font size='2'><input type ='button' value = 'Instructions' OnClick=WN(wi1,wi2,wi3,wi4,wi5,wi6,wi7,wi8,wi9,wi10) ")
document.writeln("onMouseOver= glossMe(mInstruction) onMouseOut=unGloss()></td><td>")

document.writeln('<A HREF="../tlepss.html" onMouseOver= glossMe(mHome) onMouseOut=unGloss() target="_top">')
document.writeln('<img SRC= "../home.gif" height=20 width=20></A> ')

document.writeln('<a href = "../index1.html" onMouseOver= glossMe(mTList) onMouseOut=unGloss() target="_top">')
document.writeln('<img SRC= "../tlist.gif" height=20 width=20></A> ')

document.writeln('<a href = "../index2.html" onMouseOver= glossMe(mEList) onMouseOut=unGloss() target="_top">')
document.writeln('<img SRC= "../elist.gif" height=20 width=20></A>')

if (ExercisesFlag > "") {
	document.writeln('<a href = "../exercises/all.html" onMouseOver= glossMe(mExercise) onMouseOut=unGloss() target="_top">')
	document.writeln('<img SRC= "../exercise.gif" height=20 width=20></a>')
}
else {document.writeln('<img SRC= "../exercise.gif" height=20 width=20>')}

document.writeln('<a href = "http://www.cs.bilkent.edu.tr/~guvenir/CATT/sozluk/"  onMouseOver= glossMe(mSozluk) onMouseOut=unGloss() target="TLEPSSSozluk">')
document.writeln('<img SRC= "../sozluk.gif" height=20 width=20></A>')

document.writeln('<A HREF="../help.html" onMouseOver= glossMe(mHelp) onMouseOut=unGloss() target="_top">')
document.writeln('<img SRC= "../help.gif" height=20 width=20></a>')

if (lnext > "" ) {
	document.writeln('<A HREF= ' + lnext + ' onMouseOver= glossMe(mNext) onMouseOut=unGloss() target="_top">')
	document.writeln('<img SRC= "../next.gif" height=20 width=20></A> ')
}
document.writeln('</td></tr></table></td></tr>')
document.writeln('</td></tr></table><tr><td colspan = "4"><center>')

document.writeln('<font face=Verdana size=3><INPUT type = "text" name = "show" size = 45> ')

document.writeln('</FORM></FONT></td></tr></table><DIV align = "left">')


function glossMe(gloss) {
	    document.message.show.value = gloss;
        }
function unGloss() {
	    document.message.show.value = "";
}


function WN(wi1,wi2,wi3,wi4,wi5,wi6,wi7,wi8,wi9,wi10) {
  if (windowClosed > 0){
     if (msgWindow.open){
        msgWindow.close()
        windowClosed = 0
     }
  }
   msgWindow=window.open("","displayWindow","resizable=yes,width=500,height=210")
   msgWindow.document.writeln ('<HTML><HEAD>' +
   '<TITLE>Instruction</TITLE>' +
   '<META http-equiv="content-type" content="text/html; charset=windows-1254">' +
   '<META http-equiv="content-type" content="text/html; charset=ISO-8859-9">' +
   '<META http-equiv="content-language" content="TR">' +
   '</HEAD><body bgcolor="bbbbee" link="#000095" vlink="#800000" alink="#000095">')
   msgWindow.document.writeln ("<FONT FACE='Comic Sans MS' COLOR='#000000' size=2>" + wi1) 
   msgWindow.document.writeln (wi2)
   msgWindow.document.writeln (wi3)
   msgWindow.document.writeln (wi4)
   msgWindow.document.writeln (wi5)
   msgWindow.document.writeln (wi6)
   msgWindow.document.writeln (wi7)
   msgWindow.document.writeln (wi8)
   msgWindow.document.writeln (wi9)
   msgWindow.document.writeln (wi10)
   msgWindow.document.writeln ("</body></html> ")
   windowClosed = 1

}

function SN(ses){
      if (ses > "") {
            SF = ses
	      parent.soundpage.location.reload();
      }
}

function reloadLesson(){
	document.location.reload();
}

function returnLesson(){
	history.go(-1);
}
