
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= 410;
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('/4th/pix/ns1.1.jpg','  Read and write whole numbers in the millions');
messages[1] = new Array('/4th/pix/ns1.1b.jpg','  Read and write whole numbers in the millions');
messages[2] = new Array('/4th/pix/ns1.1a.jpg','  Read and write whole numbers in the millions');
messages[3] = new Array('/4th/pix/ns1.2.jpg','  Order and compare whole numbers and decimals to two decimal places');
messages[4] = new Array('/4th/pix/ns1.2a.jpg','  Order and compare whole numbers and decimals to two decimal places');
messages[5] = new Array('/4th/pix/ns1.3.jpg','  Round whole numbers through the millions to the nearest ten, hundred, thousand, ten thousand, or hundred thousand');
messages[6] = new Array('/4th/pix/ns1.3a.jpg','  Round whole numbers through the millions to the nearest ten, hundred, thousand, ten thousand, or hundred thousand');
messages[7] = new Array('/4th/pix/ns1.5.jpg','  Explain different interpretations of fractions, for example, parts of a whole, parts of a set, and division of whole numbers by whole numbers; explain equivalents of fractions');
messages[8] = new Array('/4th/pix/ns1.6.jpg','  Write tenths and hundredths in decimal and fraction notations, and know the fraction and decimal equivalents for halves and fourths (e.g., 1/2 = 0.5 or .50; 7/4 = 1 3/4 = 1.75)');
messages[9] = new Array('/4th/pix/ns1.8.jpg','  Use concepts of negative numbers (e.g., on a number line, in counting, in temperature, in "owing")');
messages[10] = new Array('/4th/pix/ns1.8b.jpg','  Use concepts of negative numbers (e.g., on a number line, in counting, in temperature, in "owing")');
messages[11] = new Array('/4th/pix/ns1.8a.jpg','  Use concepts of negative numbers (e.g., on a number line, in counting, in temperature, in "owing")');
messages[12] = new Array('/4th/pix/ns1.9a.jpg','  Identify on a number line the relative position of positive fractions, positive mixed numbers, and positive decimals to two decimal places');
messages[13] = new Array('/4th/pix/ns1.9.jpg','  Identify on a number line the relative position of positive fractions, positive mixed numbers, and positive decimals to two decimal places');
messages[14] = new Array('/4th/pix/ns1.9b.jpg','  Identify on a number line the relative position of positive fractions, positive mixed numbers, and positive decimals to two decimal places');
messages[15] = new Array('/4th/pix/ns3.1.jpg',' Demonstrate an understanding of, and the ability to use, standard algorithms for the addition and subtraction of multidigit numbers');
messages[16] = new Array('/4th/pix/ns3.1a.jpg','  Demonstrate an understanding of, and the ability to use, standard algorithms for the addition and subtraction of multidigit numbers');
messages[17] = new Array('/4th/pix/ns3.1b.jpg','  Demonstrate an understanding of, and the ability to use, standard algorithms for the addition and subtraction of multidigit numbers');
messages[18] = new Array('/4th/pix/ns3.2.jpg','  Demonstrate an understanding of, and the ability to use, standard algorithms for multiplying a multidigit number by a two-digit number and for dividing a multidigit number by a one-digit number; use relationships between them to simplify computations and to check results');
messages[19] = new Array('/4th/pix/ns3.2a.jpg','  Demonstrate an understanding of, and the ability to use, standard algorithms for multiplying a multidigit number by a two-digit number and for dividing a multidigit number by a one-digit number; use relationships between them to simplify computations and to check results');
messages[20] = new Array('/4th/pix/ns3.2b.jpg','  Demonstrate an understanding of, and the ability to use, standard algorithms for multiplying a multidigit number by a two-digit number and for dividing a multidigit number by a one-digit number; use relationships between them to simplify computations and to check results');
messages[21] = new Array('/4th/pix/ns3.3.jpg','  Solve problems involving multiplication of multidigit numbers by two-digit numbers');
messages[22] = new Array('/4th/pix/ns3.3a.jpg','  Solve problems involving multiplication of multidigit numbers by two-digit numbers');
messages[23] = new Array('/4th/pix/ns3.3b.jpg','  Solve problems involving multiplication of multidigit numbers by two-digit numbers');
messages[24] = new Array('/4th/pix/ns3.4.jpg','  Solve problems involving division of multidigit numbers by one-digit numbers');
messages[25] = new Array('/4th/pix/ns3.4a.jpg','  Solve problems involving division of multidigit numbers by one-digit numbers');
messages[26] = new Array('/4th/pix/ns3.4b.jpg','  Solve problems involving division of multidigit numbers by one-digit numbers');
messages[27] = new Array('/4th/pix/ns4.2.jpg','  Know that numbers such as 2, 3, 5, 7, and 11 do not have any factorsexcept 1 and themselves and that such numbers are called prine numbers');
messages[28] = new Array('/4th/pix/ns4.2a.jpg','  Know that numbers such as 2, 3, 5, 7, and 11 do not have any factors except 1 and themselves and that such numbers are called prime numbers');
messages[29] = new Array('/4th/pix/af1.1.jpg','  Use letters, boxes, or other symbols to stand for any number in simple expressions or equations (e.g., demonstrate an understanding and the use of the concept of a variable)');
messages[30] = new Array('/4th/pix/af1.2.jpg','  Interpret and evaluate mathematical expressions that now use parentheses');
messages[31] = new Array('/4th/pix/af1.2a.jpg','  Interpret and evaluate mathematical expressions that now use parentheses');
messages[32] = new Array('/4th/pix/af1.2b.jpg','  Interpret and evaluate mathematical expressions that now use parentheses');
messages[33] = new Array('/4th/pix/af1.3.jpg','  Use parentheses to indicate which operation to perform first when writing expressions containing more than two terms and different operations');
messages[34] = new Array('/4th/pix/af1.3a.jpg','  Use parentheses to indicate which operation to perform first when writing expressions containing more than two terms and different operations');
messages[35] = new Array('/4th/pix/af1.3b.jpg','  Use parentheses to indicate which operation to perform first when writing expressions containing more than two terms and different operations');
messages[36] = new Array('/4th/pix/af1.5.jpg','  Understand that an equation such as y = 3x + 5 is a prescription for determining a second number when a first number is given');
messages[37] = new Array('/4th/pix/af1.5a.jpg','  Understand that an equation such as y = 3x + 5 is a prescription for determining a second number when a first number is given');
messages[38] = new Array('/4th/pix/af2.1.jpg','  Know and understand that equals added to equals are equal');
messages[39] = new Array('/4th/pix/af2.1a.jpg','  Know and understand that equals added to equals are equal');
messages[40] = new Array('/4th/pix/af2.1b.jpg','  Know and understand that equals added to equals are equal');
messages[41] = new Array('/4th/pix/af2.2.jpg','  Know and understand that equals multiplied by equals are equal');
messages[42] = new Array('/4th/pix/af2.2a.jpg','  Know and understand that equals multiplied by equals are equal');
messages[43] = new Array('/4th/pix/af2.2b.jpg','  Know and understand that equals multiplied by equals are equal	');
messages[44] = new Array('/4th/pix/mg2.1.jpg','  Draw the points corresponding to linear relationships on graph paper (e.g., draw 10 points on the graph of the equation y = 3x and connect them by using a straight line)');
messages[45] = new Array('/4th/pix/mg2.2a.jpg','  Understand that the length of a horizontal line segment equals the difference of the x-coordinates');
messages[46] = new Array('/4th/pix/mg2.3a.jpg','  Understand that the length of a vertical line segment equals the difference of the y-coordinates');

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>')



