/* 
 *
 *
 */
 
 
/*  **********************
	Function Block
	**********************
	*/ 

function addOfficeMail() {
	document.write('<a href="mailto');
	document.write(':office&#x40;x-over');
	document.write('.com">office');
	document.write('&#x40;x-over.com</a>');
	}
	
function setLarge () {
	$('#mainDisplay').html('<span class="llarge">'+alphabet[currentLetter*2]+'</span><br>Majuscule');
	}	
	
	
	
function setSmall () {
	$('#mainDisplay').html('<span class="llarge">'+alphabet[currentLetter*2+1]+'</span><br>Minuscule');
	}		
	
function setName () {
	$('#mainDisplay').html('<span class="lname">'+letterNames[currentLetter]+'</span>');
	}		
	
function letterPrevious () {
	if (currentLetter <=0) {
		currentLetter=23;
		}
	else {
		currentLetter--;
		}		
	largeSmall=Math.round(Math.random());		
	showDefault();		
	}	

function letterNext () {
	if (currentLetter >=23) {
		currentLetter=0;
		}
	else {
		currentLetter++;
		}		
	largeSmall=Math.round(Math.random());
	showDefault();
	}	
	
function letterRandom () {
	currentLetter=Math.floor(Math.random()*23);
	largeSmall=Math.round(Math.random());
	showDefault();
	}		

function showDefault() {
	if (largeSmall) setLarge();
	else setSmall();
	} 	

/*  **********************
	Globals
	**********************
	*/
var largeSmall=Math.round(Math.random());
var numberOfLetters=24;	
var currentLetter=Math.floor(Math.random()*23);
var alphabet = Array ('Α','α','Β','β','Γ ','γ','Δ','δ','Ε','ε','Ζ','ζ','Η','η','Θ','θ','Ι','ι','Κ','κ','Λ','λ','Μ','μ','Ν','ν','Ξ','ξ','Ο','ο','Π','π','Ρ','ρ','Σ','σ','Τ','τ','Υ','υ','Φ','φ','Χ','χ','Ψ','ψ','Ω','ω');
var letterNames=Array();
letterNames[0]="<b>Alpha</b><br><br><b>a</b> as in f<u>a</u>ther";
letterNames[1]="<b>Beta</b><br><br><b>v</b> as in <u>v</u>ote (b)";
letterNames[2]="<b>Gamma</b><br><br><b>g</b> as in <u>g</u>o, but before vowels such as iota and epsilon, <b>y</b> as in <u>y</u>et, and before gamma, kappa, xi, or chi, <b>n</b> as in si<u>n</u>g";
letterNames[3]="<b>Delta</b><br><br><b>th</b> as in <u>t</u>hen (but not <u>th</u>in)";
letterNames[4]="<b>Epsilon</b><br><br><b>e</b> as in s<u>e</u>t";
letterNames[5]="<b>Zeta</b><br><br><b>z</b> as in <u>z</u>oo";
letterNames[6]="<b>Eta</b><br><br><b>i</b> / <b>ee</b> as in m<u>ee</u>t";
letterNames[7]="<b>Theta</b><br><br>th as in thin (but not then); contrast delta";
letterNames[8]="<b>Iota</b><br><br>ee (/i/) as in meet or y as in yet";
letterNames[9]="<b>Kappa</b><br><br>ck as in sack";
letterNames[10]="<b>Lambda</b><br><br><b>l</b> as in <u>l</u>ight";
letterNames[11]="<b>Mu</b><br><br><b>m</b> as in <u>m</u>ouse";
letterNames[12]="<b>Nu</b><br><br><b>n</b> as in <u>n</u>ose";
letterNames[13]="<b>Xi</b><br><br><b>ks</b> as in ki<u>cks</u> or <b>x</b> as in a<u>x</u>";
letterNames[14]="<b>Omicron</b><br><br><b>o</b> as in t<u>o</u>te or b<u>o</u>at";
letterNames[15]="<b>Pi</b><br><br><b>p</b> as in <u>p</u>an";
letterNames[16]="<b>Rho</b><br><br><b>r</b> more like the Spanish trilled r than English r. ";
letterNames[17]="<b>Sigma</b><br><br><b>s</b> as in <u>s</u>i<u>s</u>ter";
letterNames[18]="<b>Tau</b><br><br>unaspirated <b>t</b> as in s<u>t</u>op (but unlike top)";
letterNames[19]="<b>Upsilon</b><br><br>Like German <b>ü</b>";
letterNames[20]="<b>Phi</b><br><br><b>f</b> as in <u>f</u>an or <u>ph</u>one";
letterNames[21]="<b>Chi</b><br><br>Like German <b>ch</b>";
letterNames[22]="<b>Psi</b><br><br><b>ps</b> as in li<u>ps</u>";
letterNames[23]="<b>Omega</b><br><br><b>o</b> as in t<u>o</u>te";



        		        	       

	


/*  **********************
	Main
	**********************
	*/	
	
