//global variables
  
  var timeout_id = 0;
  var mtimeout_id = 0;
  var isword_clicked = 0;
  var ismathP_clicked = 0;
  var today = new Date();
  var first = new Date(today.getFullYear(), 0, 1);
  var dayofyear = Math.round(((today - first) / 1000 / 60 / 60 / 24) + .5, 0);
  var wk_string = " ";
  var word_string = dayofyear.toFixed(0);
  var numb = (dayofyear%31)+1;
  var mathP = numb.toFixed(0);
  var mathA = numb.toFixed(0);
  var mp3_string = word_string;
  dayofyear += 365;
  var def_string = dayofyear.toFixed(0);
  dayofyear += 365;
  var phons_string = dayofyear.toFixed(0);
  //add extensions,,,
  wk_string = word_string;
  word_string = wk_string + ".jpg";
  wk_string = def_string;
  def_string = wk_string + ".jpg";
  wk_string = phons_string;
  phons_string = wk_string + ".jpg";
  wk_string = mathP;
  mathP = wk_string + ".jpg";
  wk_string = mathA;
  mathA = wk_string + ".jpg";
  //add subfolder strings...
  wk_string = word_string;
  word_string = "jpgs/words/" + wk_string;
  wk_string = def_string;
  def_string = "jpgs/defs/" + wk_string;
  wk_string = phons_string;
  phons_string = "jpgs/phons/" + wk_string;
  wk_string = mathP;
  mathP = "jpgs/problems/" + wk_string;
  wk_string = mathA;
  mathA = "jpgs/answers/" + wk_string;
  

//my js script functions
//my functions
  function over_dword() {
	if(isword_clicked==0){
  		document["dWord"].src = phons_string
	}
  }
  

  function out_dword() {
	if(isword_clicked==0){  
  		document["dWord"].src = word_string
	}
	else{
  		timeout_id = setTimeout("timeout_dword()",2000)
	}
  }
  
   function out_mathP() {
	mtimeout_id = setTimeout("timeout_mathP()",2000)
  }
  
  function click_dword() {
  	isword_clicked=1
  	document["dWord"].src = def_string
  	
  }
  
  function click_mathP() {
  	ismathP_clicked=1
  	document["mathPrblm"].src = mathA
  	
  }
  
  function timeout_dword() {
	isword_clicked=0
  	document["dWord"].src = word_string
  	clearTimeout(timeout_id)
  }
  
   function timeout_mathP() {
	ismathP_clicked=0
  	document["mathPrblm"].src = mathP
  	clearTimeout(mtimeout_id)
  }
  
  function initialize_all() {
	isword_clicked=0
  	document["dWord"].src = word_string
  	document["mathPrblm"].src = mathP
  	ismathP_clicked=0
  }
