/*****
Copyright © 2009 UC Regents and ALEKS Corporation
ALEKS® is a registered trademark of ALEKS Corporation.
*****/
var w_KP = 0;var w_d3 = 0;var w_7q = 0;var w_50 = 0;function w_gN(){var d=document; if(d.images){ if(!d.PI_p) d.PI_p=new Array();var i,j=d.PI_p.length,a=w_gN.arguments; for(i=0; i<a.length; i++)if (a[i].indexOf("#")!=0){ d.PI_p[j]=new Image; d.PI_p[j++].src=a[i];}}}function cap(){w_KP = Math.ceil(Math.random()*13);w_d3=w_WU('he',w_KP);w_7q=w_WU('k12',w_KP);w_50=w_WU('iu',w_KP);w_gN('/aleks/website/gdot_blue.gif','/aleks/website/Round-Button.gif','/aleks/website/gdot_gray.gif','/website/pict/M'+w_KP+'.jpg','/website/pict/he/HE'+w_d3+'.jpg','/website/pict/k12/K'+w_7q+'.jpg','/website/pict/iu/IU'+w_50+'.jpg');
}cap();function uap(){var mURL = '/website/pict/M'+w_KP+'.jpg';di('pic_table').style.backgroundImage = 'url("'+mURL+'")';di('pic_table').className='main_tb';var hURL = '/website/pict/he/HE'+w_d3+'.jpg';di('he_img').style.backgroundImage = "url('"+hURL+"')";var kURL = '/website/pict/k12/K'+w_7q+'.jpg';di('k12_img').style.backgroundImage = "url('"+kURL+"')";var iURL = '/website/pict/iu/IU'+w_50+'.jpg';di('iu_img').style.backgroundImage = "url('"+iURL+"')";}function w_WU(type,w_if){var w_pO = 6;if(type=='he'){
w_pO=8;}else if(type=='k12'){w_pO=8;}var rand = Math.ceil(Math.random()*w_pO);var max_test=0;while(w_if==1 && rand==7 && type=='he' && max_test<10){max_test++;rand = Math.ceil(Math.random()*w_pO);}while(w_if==2 && rand==2 && type=='he' && max_test<10){max_test++;rand = Math.ceil(Math.random()*w_pO);}while(w_if==3 && rand==1 && type=='k12' && max_test<10){max_test++;rand = Math.ceil(Math.random()*w_pO);}while(w_if==4 && rand==3 && type=='he' && max_test<10){max_test++;rand = Math.ceil(Math.random()*w_pO);
}while(w_if==5 && rand==2 && type=='k12' && max_test<10){max_test++;rand = Math.ceil(Math.random()*w_pO);}while(w_if==6 && rand==1 && type=='iu' && max_test<10){max_test++;rand = Math.ceil(Math.random()*w_pO);}while(w_if==7 && rand==3 && type=='k12' && max_test<10){max_test++;rand = Math.ceil(Math.random()*w_pO);}while(w_if==9 && rand==5 && type=='he' && max_test<10){max_test++;rand = Math.ceil(Math.random()*w_pO);}while(w_if==10 && rand==7 && type=='k12' && max_test<10){max_test++;rand = Math.ceil(Math.random()*w_pO);
}while(w_if==11 && rand==3 && type=='iu' && max_test<10){max_test++;rand = Math.ceil(Math.random()*w_pO);}while(w_if==16 && rand==2 && type=='iu' && max_test<10){max_test++;rand = Math.ceil(Math.random()*w_pO);}while(w_if==13 && rand==4 && type=='iu' && max_test<10){max_test++;rand = Math.ceil(Math.random()*w_pO);}return rand;}