var loadT = new Array();
loadT['NeTi'] = 'NeTiFeSiNiTeFiSe';
loadT['NeFi'] = 'NeFiTeSiNiFeTiSe';
loadT['TeNi'] = 'TeNiSeFiTiNeSiFe';
loadT['TeSi'] = 'TeSiNeFiTiSeNiFe';
loadT['FeNi'] = 'FeNiSeTiFiNeSiTe';
loadT['FeSi'] = 'FeSiNeTiFiSeNiTe';
loadT['SeTi'] = 'SeTiFeNiSiTeFiNe';
loadT['SeFi'] = 'SeFiTeNiSiFeTiNe';

loadT['NiTe'] = 'NiTeFiSeNeTiFeSi';
loadT['NiFe'] = 'NiFeTiSeNeFiTeSi';
loadT['TiNe'] = 'TiNeSiFeTeNiSeFi';
loadT['TiSe'] = 'TiSeNiFeTeSiNeFi';

loadT['FiNe'] = 'FiNeSiTeFeNiSeTi';
loadT['FiSe'] = 'FiSeNiTeFeSiNeTi';
loadT['SiTe'] = 'SiTeFiNeSeTiFeNi';
loadT['SiFe'] = 'SiFeTiNeSeFiTeNi';

Type_name = "";

typeBar="";

typeBar+='<form name="the_form">';
typeBar+='<select name="choose_category" onChange="TYPE (window.document.the_form.choose_category.options[selectedIndex].value);">';
typeBar+='<option selected value="">TYPE<option>';
typeBar+='<option value="NeTiFeSiNiTeFiSe">ENTp</option>';
typeBar+='<option value="NeFiTeSiNiFeTiSe">ENFp</option>';
typeBar+='<option value="TeNiSeFiTiNeSiFe">ENTj</option>';
typeBar+='<option value="TeSiNeFiTiSeNiFe">ESTj</option>';
typeBar+='<option value="FeNiSeTiFiNeSiTe">ENFj</option>';
typeBar+='<option value="FeSiNeTiFiSeNiTe">ESFj</option>';
typeBar+='<option value="SeTiFeNiSiTeFiNe">ESTp</option>';
typeBar+='<option value="SeFiTeNiSiFeTiNe">ESFp</option>';
typeBar+='<option value="NiTeFiSeNeTiFeSi">INTp</option>';
typeBar+='<option value="NiFeTiSeNeFiTeSi">INFp</option>';
typeBar+='<option value="TiNeSiFeTeNiSeFi">INTj</option>';
typeBar+='<option value="TiSeNiFeTeSiNeFi">ISTj</option>';
typeBar+='<option value="FiNeSiTeFeNiSeTi">INFj</option>';
typeBar+='<option value="FiSeNiTeFeSiNeTi">ISFj</option>';
typeBar+='<option value="SiTeFiNeSeTiFeNi">ISTp</option>';
typeBar+='<option value="SiFeTiNeSeFiTeNi">ISFp</option>';
typeBar+='</select></form>';


f_str ='function is stimulated by interaction with the following types:';

var tNames = new Array();

tNames['NeTi'] = 'Intuitive-Logical Extratim (<img src="images/Nes.gif"><img src="images/Tis.gif">) a.k.a. ILE a.k.a. ENTp (with lower case "p") a.k.a. "The Inventor"'; 
tNames['NiTe'] = 'Intuitive-Logical Intratim (<img src="images/Nis.gif"><img src="images/Tes.gif">) a.k.a. ILI a.k.a. INTp (with lower case "p") a.k.a. "The Observer"'; 
tNames['SeTi'] = 'Sensory-Logical Extratim (<img src="images/Ses.gif"><img src="images/Tis.gif">) a.k.a. SLE a.k.a. ESTp (with lower case "p") a.k.a. "The Conqueror"'; 
tNames['SiTe'] = 'Sensory-Logical Intratim (<img src="images/Sis.gif"><img src="images/Tes.gif">) a.k.a. SLI a.k.a. ISTp (with lower case "p") a.k.a. "The Artisan"'; 
tNames['NeFi'] = 'Intuitive-Ethical Extratim (<img src="images/Nes.gif"><img src="images/Fis.gif">) a.k.a. IEE a.k.a. ENFp (with lower case "p") a.k.a. "The Reporter"'; 
tNames['NiFe'] = 'Intuitive-Ethical Intratim (<img src="images/Nis.gif"><img src="images/Fes.gif">) a.k.a. IEI a.k.a. INFp (with lower case "p") a.k.a. "The Romantic"'; 
tNames['SeFi'] = 'Sensory-Ethical Extratim (<img src="images/Ses.gif"><img src="images/Fis.gif">) a.k.a. SEE a.k.a. ESFp (with lower case "p") a.k.a. "The Ambassador"'; 
tNames['SiFe'] = 'Sensory-Ethical Intratim (<img src="images/Sis.gif"><img src="images/Fes.gif">) a.k.a. SEI a.k.a. ISFp (with lower case "p") a.k.a. "The Peacemaker"'; 
tNames['TiNe'] = 'Logical-Intuitive Intratim (<img src="images/Tis.gif"><img src="images/Nes.gif">) a.k.a. LII a.k.a. INTj (with lower case "j") a.k.a. "The Analyst"'; 
tNames['TeNi'] = 'Logical-Intuitive Extratim (<img src="images/Tes.gif"><img src="images/Nis.gif">) a.k.a. LIE a.k.a. ENTj (with lower case "j") a.k.a. "The Pioneer"'; 
tNames['TiSe'] = 'Logical-Sensory Intratim (<img src="images/Tis.gif"><img src="images/Ses.gif">) a.k.a. LSI a.k.a. ISTj (with lower case "j") a.k.a. "The Pragmatist"'; 
tNames['TeSi'] = 'Logical-Sensory Extratim (<img src="images/Tes.gif"><img src="images/Sis.gif">) a.k.a. LSE a.k.a. ESTj (with lower case "j") a.k.a. "The Director"'; 
tNames['FiSe'] = 'Ethical-Sensory Intratim (<img src="images/Fis.gif"><img src="images/Ses.gif">) a.k.a. ESI a.k.a. ISFj (with lower case "j") a.k.a. "The Guardian"'; 
tNames['FeSi'] = 'Ethical-Sensory Extratim (<img src="images/Fes.gif"><img src="images/Sis.gif">) a.k.a. ESE a.k.a. ESFj (with lower case "j") a.k.a. "The Enthusiast"'; 
tNames['FiNe'] = 'Ethical-Intuitive Intratim (<img src="images/Fis.gif"><img src="images/Nes.gif">) a.k.a. EII a.k.a. INFj (with lower case "j") a.k.a. "The Empath"'; 
tNames['FeNi'] = 'Ethical-Intuitive Extratim (<img src="images/Fes.gif"><img src="images/Nis.gif">) a.k.a. EIE a.k.a. ENFj (with lower case "j") a.k.a. "The Actor"'; 


var tC = new Array();

tC['Ne'] = f_str+' <a href="wheel.html?'+loadT['NeTi']+'"><img border="0" src="images/Nes.gif"><img border="0" src="images/Tis.gif"></a>, <a href="wheel.html?'+loadT['NeFi']+'"><img border="0" src="images/Nes.gif"><img border="0" src="images/Fis.gif"></a>, <a href="wheel.html?'+loadT['TiNe']+'"><img border="0" src="images/Tis.gif"><img border="0" src="images/Nes.gif"></a>, <a href="wheel.html?'+loadT['FiNe']+'"><img border="0" src="images/Fis.gif"><img border="0" src="images/Nes.gif"></a> when they make full use of their <img src="images/Nes.gif">, ';
tC['Ni'] = f_str+' <a href="wheel.html?'+loadT['NiTe']+'"><img border="0" src="images/Nis.gif"><img border="0" src="images/Tes.gif"></a>, <a href="wheel.html?'+loadT['NiFe']+'"><img border="0" src="images/Nis.gif"><img border="0" src="images/Fes.gif"></a>, <a href="wheel.html?'+loadT['TeNi']+'"><img border="0" src="images/Tes.gif"><img border="0" src="images/Nis.gif"></a>, <a href="wheel.html?'+loadT['FeNi']+'"><img border="0" src="images/Fes.gif"><img border="0" src="images/Nis.gif"></a> when they make full use of their <img src="images/Nis.gif">, ';
tC['Se'] = f_str+' <a href="wheel.html?'+loadT['SeTi']+'"><img border="0" src="images/Ses.gif"><img border="0" src="images/Tis.gif"></a>, <a href="wheel.html?'+loadT['SeFi']+'"><img border="0" src="images/Ses.gif"><img border="0" src="images/Fis.gif"></a>, <a href="wheel.html?'+loadT['TiSe']+'"><img border="0" src="images/Tis.gif"><img border="0" src="images/Ses.gif"></a>, <a href="wheel.html?'+loadT['FiSe']+'"><img border="0" src="images/Fis.gif"><img border="0" src="images/Ses.gif"></a> when they make full use of their <img src="images/Ses.gif">, ';
tC['Si'] = f_str+' <a href="wheel.html?'+loadT['SiTe']+'"><img border="0" src="images/Sis.gif"><img border="0" src="images/Tes.gif"></a>, <a href="wheel.html?'+loadT['SiFe']+'"><img border="0" src="images/Sis.gif"><img border="0" src="images/Fes.gif"></a>, <a href="wheel.html?'+loadT['TeSi']+'"><img border="0" src="images/Tes.gif"><img border="0" src="images/Sis.gif"></a>, <a href="wheel.html?'+loadT['FeSi']+'"><img border="0" src="images/Fes.gif"><img border="0" src="images/Sis.gif"></a> when they make full use of their <img src="images/Sis.gif">, ';
tC['Te'] = f_str+' <a href="wheel.html?'+loadT['TeNi']+'"><img border="0" src="images/Tes.gif"><img border="0" src="images/Nis.gif"></a>, <a href="wheel.html?'+loadT['TeSi']+'"><img border="0" src="images/Tes.gif"><img border="0" src="images/Sis.gif"></a>, <a href="wheel.html?'+loadT['NiTe']+'"><img border="0" src="images/Nis.gif"><img border="0" src="images/Tes.gif"></a>, <a href="wheel.html?'+loadT['SiTe']+'"><img border="0" src="images/Sis.gif"><img border="0" src="images/Tes.gif"></a> when they make full use of their <img src="images/Tes.gif">, ';
tC['Ti'] = f_str+' <a href="wheel.html?'+loadT['TiNe']+'"><img border="0" src="images/Tis.gif"><img border="0" src="images/Nes.gif"></a>, <a href="wheel.html?'+loadT['TiSe']+'"><img border="0" src="images/Tis.gif"><img border="0" src="images/Ses.gif"></a>, <a href="wheel.html?'+loadT['NeTi']+'"><img border="0" src="images/Nes.gif"><img border="0" src="images/Tis.gif"></a>, <a href="wheel.html?'+loadT['SeTi']+'"><img border="0" src="images/Ses.gif"><img border="0" src="images/Tis.gif"></a> when they make full use of their <img src="images/Tis.gif">, ';
tC['Fe'] = f_str+' <a href="wheel.html?'+loadT['FeNi']+'"><img border="0" src="images/Fes.gif"><img border="0" src="images/Nis.gif"></a>, <a href="wheel.html?'+loadT['FeSi']+'"><img border="0" src="images/Fes.gif"><img border="0" src="images/Sis.gif"></a>, <a href="wheel.html?'+loadT['NiFe']+'"><img border="0" src="images/Nis.gif"><img border="0" src="images/Fes.gif"></a>, <a href="wheel.html?'+loadT['SiFe']+'"><img border="0" src="images/Sis.gif"><img border="0" src="images/Fes.gif"></a> when they make full use of their <img src="images/Fes.gif">, ';
tC['Fi'] = f_str+' <a href="wheel.html?'+loadT['FiNe']+'"><img border="0" src="images/Fis.gif"><img border="0" src="images/Nes.gif"></a>, <a href="wheel.html?'+loadT['FiSe']+'"><img border="0" src="images/Fis.gif"><img border="0" src="images/Ses.gif"></a>, <a href="wheel.html?'+loadT['NeFi']+'"><img border="0" src="images/Nes.gif"><img border="0" src="images/Fis.gif"></a>, <a href="wheel.html?'+loadT['SeFi']+'"><img border="0" src="images/Ses.gif"><img border="0" src="images/Fis.gif"></a> when they make full use of their <img src="images/Fis.gif">, ';


type_= document.location.search.substring(1);

img_f1d = new Image(86,86);
img_f1d.src = "images/f1d.gif";
img_f1d_str = '<img border="0" src="' + img_f1d.src + '">';

img_f2d = new Image(86,86);
img_f2d.src = "images/f2d.gif";
img_f2d_str = '<img border="0" src="' + img_f2d.src + '">';

img_f3d = new Image(86,86);
img_f3d.src = "images/f3d.gif";
img_f3d_str = '<img border="0" src="' + img_f3d.src + '">';

img_f4d = new Image(86,86);
img_f4d.src = "images/f4d.gif";
img_f4d_str = '<img border="0" src="' + img_f4d.src + '">';

img_f5d = new Image(86,86);
img_f5d.src = "images/f5d.gif";
img_f5d_str = '<img border="0" src="' + img_f5d.src + '">';

img_f6d = new Image(86,86);
img_f6d.src = "images/f6d.gif";
img_f6d_str = '<img border="0" src="' + img_f6d.src + '">';

img_f7d = new Image(86,86);
img_f7d.src = "images/f7d.gif";
img_f7d_str = '<img border="0" src="' + img_f7d.src + '">';

img_f8d = new Image(86,86);
img_f8d.src = "images/f8d.gif";
img_f8d_str = '<img border="0" src="' + img_f8d.src + '">';



on_img_1 = img_f1d_str;
on_img_2 = img_f2d_str;
on_img_3 = img_f3d_str;
on_img_4 = img_f4d_str;
on_img_5 = img_f5d_str;
on_img_6 = img_f6d_str;
on_img_7 = img_f7d_str;
on_img_8 = img_f8d_str;




if (type_ != '') {

FPos(type_);

img_wNe = new Image(86,86);
img_wNe.src = "images/wNe.gif";
img_wNe_str = '<img border="0" src="' + img_wNe.src + '" onMouseOver="this.src=img_f' + Pos['Ne'] + 'd.src;" onMouseOut="this.src=img_wNe.src;">';

img_wTe = new Image(86,86);
img_wTe.src = "images/wTe.gif";
img_wTe_str = '<img border="0" src="' + img_wTe.src + '" onMouseOver="this.src=img_f' + Pos['Te'] + 'd.src;" onMouseOut="this.src=img_wTe.src;">';

img_wFe = new Image(86,86);
img_wFe.src = "images/wFe.gif";
img_wFe_str = '<img border="0" src="' + img_wFe.src + '" onMouseOver="this.src=img_f' + Pos['Fe'] + 'd.src;" onMouseOut="this.src=img_wFe.src;">';

img_wSe = new Image(86,86);
img_wSe.src = "images/wSe.gif";
img_wSe_str = '<img border="0" src="' + img_wSe.src + '" onMouseOver="this.src=img_f' + Pos['Se'] + 'd.src;" onMouseOut="this.src=img_wSe.src;">';


img_wNi = new Image(86,86);
img_wNi.src = "images/wNi.gif";
img_wNi_str = '<img border="0" src="' + img_wNi.src + '" onMouseOver="this.src=img_f' + Pos['Ni'] + 'd.src;" onMouseOut="this.src=img_wNi.src;">';

img_wTi = new Image(86,86);
img_wTi.src = "images/wTi.gif";
img_wTi_str = '<img border="0" src="' + img_wTi.src + '" onMouseOver="this.src=img_f' + Pos['Ti'] + 'd.src;" onMouseOut="this.src=img_wTi.src;">';

img_wFi = new Image(86,86);
img_wFi.src = "images/wFi.gif";
img_wFi_str = '<img border="0" src="' + img_wFi.src + '" onMouseOver="this.src=img_f' + Pos['Fi'] + 'd.src;" onMouseOut="this.src=img_wFi.src;">';

img_wSi = new Image(86,86);
img_wSi.src = "images/wSi.gif";
img_wSi_str = '<img border="0" src="' + img_wSi.src + '" onMouseOver="this.src=img_f' + Pos['Si'] + 'd.src;" onMouseOut="this.src=img_wSi.src;">';



if (type_ != ""){Type_name = '<table style="width:100%;"><tr><td style="background-color:#eeeeee; padding-left:100px;padding-right:100px; padding-top:10px;padding-bottom:10px;"><center>'+tNames[type_.substring(0,4)]+'</center></td></tr></table>';}
else {Type_name = "";}


ShowType(type_);
}
else {Default();}


function FPos (pt){
Pos = new Array();
Pos[pt.substring(0,2)]=1; 
Pos[pt.substring(6,8)]=2;
Pos[pt.substring(2,4)]=3; 
Pos[pt.substring(4,6)]=4; 
Pos[pt.substring(8,10)]=5; 
Pos[pt.substring(14,16)]=6;
Pos[pt.substring(10,12)]=7;
Pos[pt.substring(12,14)]=8;
}


function Default() {
off_img_1 = on_img_1;
off_img_2 = on_img_2;
off_img_3 = on_img_3;
off_img_4 = on_img_4;
off_img_5 = on_img_5;
off_img_6 = on_img_6;
off_img_7 = on_img_7;
off_img_8 = on_img_8;
}



function ShowType (st) {


off_img_1 = eval('img_w'+st.substring(0,2)+'_str'); 
off_img_2 = eval('img_w'+st.substring(6,8)+'_str');
off_img_3 = eval('img_w'+st.substring(2,4)+'_str'); 
off_img_4 = eval('img_w'+st.substring(4,6)+'_str'); 
off_img_5 = eval('img_w'+st.substring(8,10)+'_str'); 
off_img_6 = eval('img_w'+st.substring(14,16)+'_str');
off_img_7 = eval('img_w'+st.substring(10,12)+'_str');
off_img_8 = eval('img_w'+st.substring(12,14)+'_str');

}



function TYPE(t) {
	document.location.href = 'wheel.html?'+t;
}
