
var dom = (document.getElementById) ? true : false;
var ns5 = (!document.all && dom || window.opera) ? true: false;
var ie5 = ((navigator.userAgent.indexOf("MSIE")>-1) && dom) ? true : false;
var ie4 = (document.all && !dom) ? true : false;
var nodyn = (!ns5 && !ie4 && !ie5 && !dom) ? true : false;

var origWidth, origHeight;


if (nodyn) { event = "nope" }

var tipFollowMouse= true;	

var tipWidth= 560;
var offX= 20;	
var offY= 12; 
var tipFontFamily= "Verdana, arial, helvetica, sans-serif";
var tipFontSize= "8pt";

var tipFontColor= "#000000";
var tipBgColor= "#DDECFF"; 
var tipBorderColor= "#000080";
var tipBorderWidth= 3;
var tipBorderStyle= "ridge";
var tipPadding= 4;


var messages = new Array();



messages[0] = new Array('2nd/pix/ns1.1.jpg','  Count, read, and write whole numbers to 1,000 and identify the place value for each digit');
messages[1] = new Array('2nd/pix/ns1.1a.jpg','  Count, read, and write whole numbers to 1,000 and identify the place value for each digit');
messages[2] = new Array('2nd/pix/ns1.1b.jpg','  Count, read, and write whole numbers to 1,000 and identify the place value for each digit');
messages[3] = new Array('2nd/pix/ns1.2.jpg','  Use words, models, and expanded forms (e.g., 45 = 4 tens = 5) to represent numbers to 1,000');
messages[4] = new Array('2nd/pix/ns1.3.jpg','  Order and compare whole numbers to 1,000 by using the symbols <, =, and >');
messages[5] = new Array('2nd/pix/ns1.3a.jpg','  Order and compare whole numbers to 1,000 by using the symbols <, =, and >');
messages[6] = new Array('2nd/pix/ns1.3c.jpg','  Order and compare whole numbers to 1,000 by using the symbols <, =, and >');
messages[7] = new Array('2nd/pix/ns1.3d.jpg','  Order and compare whole numbers to 1,000 by using the symbols <, =, and >');
messages[8] = new Array('2nd/pix/ns1.3e.jpg','  Order and compare whole numbers to 1,000 by using the symbols <, =, and >');
messages[9] = new Array('2nd/pix/ns1.3f.jpg','  Order and compare whole numbers to 1,000 by using the symbols <, =, and >');
messages[10] = new Array('2nd/pix/ns2.1.jpg','  Understand and use the inverse relationship between addition and subtraction (e.g., an opposite number sentence for 8 + 6 = 14 is 14 - 6 = 8) to solve problems and check solutions');
messages[11] = new Array('2nd/pix/ns2.1a.jpg','  Understand and use the inverse relationship between addition and subtraction (e.g., an opposite number sentence for 8 + 6 = 14 is 14 - 6 = 8) to solve problems and check solutions');
messages[12] = new Array('2nd/pix/ns2.2.jpg','  Find the sum or difference of whole numbers up tp three digits long');
messages[13] = new Array('2nd/pix/ns2.2b.jpg','  Find the sum or difference of whole numbers up tp three digits long');
messages[14] = new Array('2nd/pix/ns2.2c.jpg','  Find the sum or difference of whole numbers up tp three digits long');
messages[15] = new Array('2nd/pix/ns2.2d.jpg','  Find the sum or difference of whole numbers up tp three digits long');
messages[16] = new Array('2nd/pix/ns3.1.jpg','  Use repeated addition, arrays, and counting by multiples to do multiplication');
messages[17] = new Array('2nd/pix/ns3.1a.jpg','  Use repeated addition, arrays, and counting by multiples to do multiplication');
messages[18] = new Array('2nd/pix/ns3.2.jpg','  Use repeated subtraction, equal sharing, and forming equal  groups with remainders to do division');
messages[19] = new Array('2nd/pix/ns3.2a.jpg','  Use repeated subtraction, equal sharing, and forming equal  groups with remainders to do division');
messages[20] = new Array('2nd/pix/ns3.2b.jpg',' Use repeated subtraction, equal sharing, and forming equal  groups with remainders to do division');
messages[21] = new Array('2nd/pix/ns3.3.jpg','  Know the multiplication tables of 2s, 5s and 10s (to "times 10") and commit them to memory');
messages[22] = new Array('2nd/pix/ns3.3a.jpg','  Know the multiplication tables of 2s, 5s and 10s (to "times 10") and commit them to memory');
messages[23] = new Array('2nd/pix/ns3.3b.jpg','  Know the multiplication tables of 2s, 5s and 10s (to "times 10") and commit them to memory');
messages[24] = new Array('2nd/pix/ns4.1.jpg','  Recognize, name, and compare unit fractions from 1/12 to 1/2');
messages[25] = new Array('2nd/pix/ns4.1c.jpg','  Recognize, name, and compare unit fractions from 1/12 to 1/2');
messages[26] = new Array('2nd/pix/ns4.2.jpg','  Recognize fractions of a whole and parts of a group (e.g., one-fourth of a pie, two-thirds of 15 balls)');
messages[27] = new Array('2nd/pix/ns4.2a.jpg','  Recognize fractions of a whole and parts of a group (e.g., one-fourth of a pie, two-thirds of 15 balls)');
messages[28] = new Array('2nd/pix/ns4.2b.jpg','  Recognize fractions of a whole and parts of a group (e.g., one-fourth of a pie, two-thirds of 15 balls)');
messages[29] = new Array('2nd/pix/ns4.3.jpg','  Know that when all fractional parts are included, such as four-fourths, the result is equal to the whole and to one');
messages[30] = new Array('2nd/pix/ns4.3a.jpg','   Know that when all fractional parts are included, such as four-fourths, the result is equal to the whole and to one');
messages[31] = new Array('2nd/pix/ns5.1.jpg','  Solve problems using combinations of coins and bills');
messages[32] = new Array('2nd/pix/ns5.1a.jpg','  Solve problems using combinations of coins and bills');
messages[33] = new Array('2nd/pix/ns5.1b.jpg','  Solve problems using combinations of coins and bills');
messages[34] = new Array('2nd/pix/ns5.2.jpg','  Know and use the decimal notation and the dollar and cent symbols for money');
messages[35] = new Array('2nd/pix/ns5.2a.jpg','  Know and use the decimal notation and the dollar and cent symbols for money');
messages[36] = new Array('2nd/pix/ns5.2b.jpg','  Know and use the decimal notation and the dollar and cent symbols for money');
messages[37] = new Array('2nd/pix/mg1.3.jpg','  Measure the length of an object to the nearest inch');
messages[38] = new Array('2nd/pix/mg1.4.jpg','  Tell time to the nearest quarter hour and know relationships of time (e.g., minutes in an hour, days in a month, weeks in a year)');
messages[39] = new Array('2nd/pix/mg1.4a.jpg','  Tell time to the nearest quarter hour and know relationships of time (e.g., minutes in an hour, days in a month, weeks in a year)');
messages[40] = new Array('2nd/pix/mg2.1.jpg','  Describe and classify plane and solid goemetric shapes (e.g., circle, triangle, square, sphere, pyramid, cube, rectangular prism) according to the number and shape of faces, edges, and vertices');
messages[41] = new Array('2nd/pix/mg2.2.jpg','  Put shapes together and take them apart to form other shapes (e.g., two congruent right triangles can be arranged to form a rectangle)');
messages[42] = new Array('2nd/pix/mg2.2a.jpg','Put shapes together and take them apart to form other shapes (e.g., two congruent right triangles can be arranged to form a rectangle)');
messages[43] = new Array('2nd/pix/mg2.2b.jpg','  Put shapes together and take them apart to form other shapes (e.g., two congruent right triangles can be arranged to form a rectangle)');
messages[44] = new Array('2nd/pix/af1.1.jpg','  Use the commutative rules to simplify mental calculations and to check results');
messages[45] = new Array('2nd/pix/af1.1a.jpg','  Use the commutative rules to simplify mental calculations and to check results');
messages[46] = new Array('2nd/pix/af1.1b.jpg','  Use the commutative rules to simplify mental calculations and to check results');
messages[47] = new Array('2nd/pix/sdp1.1.jpg','  Record numerical data in systematic ways, keeping track of what has been counted');
messages[48] = new Array('2nd/pix/sdp1.1a.jpg','  Record numerical data in systematic ways, keeping track of what has been counted');
messages[49] = new Array('2nd/pix/sdp1.2.jpg','  Represent the same data in more than one way (e.g., bar graphs and charts with tallies)');
messages[50] = new Array('2nd/pix/sdp1.2a.jpg','  Represent the same data in more than one way (e.g., bar graphs and charts with tallies)');
messages[51] = new Array('2nd/pix/sdp1.3.jpg','  Identify features of data sets (range');
messages[52] = new Array('2nd/pix/sdp1.3a.jpg','  Identify features of data sets (range');
messages[53] = new Array('2nd/pix/af1_2.jpg','  Relate problem situations to number sentences involving addition and subtraction');



if (document.images) {
	var theImgs = new Array();
	for (var i=0; i<messages.length; i++) {
  	theImgs[i] = new Image();
		theImgs[i].src = messages[i][0];
  }
}


var startStr = '<table width="' + tipWidth + '"><tr><td align="center" width="100%"><img src="';
var midStr = '" border="0"></td></tr><tr><td valign="top">';
var endStr = '</td></tr></table>';


var tooltip, tipcss;
function initTip() {
	if (nodyn) return;
	tooltip = (ie4)? document.all['tipDiv']: (ie5||ns5)? document.getElementById('tipDiv'): null;
	tipcss = tooltip.style;
	if (ie4||ie5||ns5) {	
		tipcss.width = tipWidth+"px";
		tipcss.fontFamily = tipFontFamily;
		tipcss.fontSize = tipFontSize;
		tipcss.color = tipFontColor;
		tipcss.backgroundColor = tipBgColor;
		tipcss.borderColor = tipBorderColor;
		tipcss.borderWidth = tipBorderWidth+"px";
		tipcss.padding = tipPadding+"px";
		tipcss.borderStyle = tipBorderStyle;
	}
	if (tooltip&&tipFollowMouse) {
		document.onmousemove = trackMouse;
	}
}

window.onload = initTip;


var t1,t2;	
var tipOn = false;	
function doTooltip(evt,num) {
	if (!tooltip) return;
	if (t1) clearTimeout(t1);	if (t2) clearTimeout(t2);
	tipOn = true;
	
	if (messages[num][2])	var curBgColor = messages[num][2];
	else curBgColor = tipBgColor;
	if (messages[num][3])	var curFontColor = messages[num][3];
	else curFontColor = tipFontColor;
	if (ie4||ie5||ns5) {
		var tip = startStr + messages[num][0] + midStr + '<span style="font-family:' + tipFontFamily + '; font-size:' + tipFontSize + '; color:' + curFontColor + ';">' + messages[num][1] + '</span>' + endStr;
		tipcss.backgroundColor = curBgColor;
	 	tooltip.innerHTML = tip;
	}
	if (!tipFollowMouse) positionTip(evt);
	else t1=setTimeout("tipcss.visibility='visible'",100);
}

var mouseX, mouseY;
function trackMouse(evt) {
	standardbody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body 
	mouseX = (ns5)? evt.pageX: window.event.clientX + standardbody.scrollLeft;
	mouseY = (ns5)? evt.pageY: window.event.clientY + standardbody.scrollTop;
	if (tipOn) positionTip(evt);
}


function positionTip(evt) {
	if (!tipFollowMouse) {
		standardbody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body
		mouseX = (ns5)? evt.pageX: window.event.clientX + standardbody.scrollLeft;
		mouseY = (ns5)? evt.pageY: window.event.clientY + standardbody.scrollTop;
	}
	
	var tpWd = (ie4||ie5)? tooltip.clientWidth: tooltip.offsetWidth;
	var tpHt = (ie4||ie5)? tooltip.clientHeight: tooltip.offsetHeight;

	var winWd = (ns5)? window.innerWidth-20+window.pageXOffset: standardbody.clientWidth+standardbody.scrollLeft;
	var winHt = (ns5)? window.innerHeight-20+window.pageYOffset: standardbody.clientHeight+standardbody.scrollTop;

	if ((mouseX+offX+tpWd)>winWd) 
		tipcss.left = mouseX-(tpWd+offX)+"px";
	else tipcss.left = mouseX+offX+"px";
	if ((mouseY+offY+tpHt)>winHt) 
		tipcss.top = winHt-(tpHt+offY)+"px";
	else tipcss.top = mouseY+offY+"px";
	if (!tipFollowMouse) t1=setTimeout("tipcss.visibility='visible'",100);
}

function hideTip() {
	if (!tooltip) return;
	t2=setTimeout("tipcss.visibility='hidden'",100);
	tipOn = false;
}

document.write('<div id="tipDiv" style="position:absolute; visibility:hidden; z-index:100"></div>')



