
var list1  = new Array("Please Select Area","Africa","America","Asia","C.I.S.","Europe","Middle East");

// txt
var list2	= new Array();
list2[0]	= new Array("Please Select Area");
list2[1]	= new Array("EGYPT","SOUTH AFRICA"); 

list2[2]	= new Array("ARGENTINA","BOLIVIA","BRAZIL","CANADA","CHILE",
						"COLOMBIA","COSTA RICA","CUBA","DOMINICAN REP.","ECUADOR",
						"EL SALVADOR","MEXICO","NICARAGUA","PANAMA","PARAGUAY",
						"PERU","URUGUAY","U.S.A.");

list2[3]	= new Array("BANGLADESH","CHINA","HONG KONG","INDONESIA","MALAYSIA","MYANMAR",
						"PHILIPPINES","SINGAPORE","TAIWAN","THAILAND","VIETNAM");

list2[4]	= new Array("BELARUS","GEORGIA","KAZAKHSTAN","MOLDOVA","RUSSIA","UKRAINE"); 

list2[5]	= new Array("AUSTRIA","BULGARIA","CYPRUS","CZECH REP.","FINLAND",
						"FRANCE","GERMANY","GREECE","HUNGARY","ICELAND",
						"ISRAEL","ITALY","LATVIA","LITHUANIA","THE NETHERLANDS",
						"POLAND","PORTUGAL","ROMANIA","SPAIN","TURKEY");

list2[6]	= new Array("IRAN","IRAQ","JORDAN","KUWAIT","LEBANON",
						"QATAR","SAUDI ARABIA","SULTANATE OF OMAN","SYRIA","UNITED ARAB EMIRATES",
						"YEMEN ARAB REP.");


// uri
var list3	= new Array();
list3[0]	= new Array("dummy.html"); 
list3[1]	= new Array("africa/egypt.html","africa/south_africa.html"); 

list3[2]	= new Array("america/argentina.html","america/bolivia.html","america/brazil.html","america/canada.html","america/chile.html",
						"america/colombia.html","america/costa_rica.html","america/cuba.html","america/dominica_rep.html","america/ecuador.html",
						"america/el_salvador.html","america/mexico.html","america/nicaragua.html","america/panama.html","america/paraguay.html",
						"america/peru.html","america/uruguay.html","america/usa.html");

list3[3]	= new Array("asia/bangladesh.html","asia/china.html","asia/hong_kong.html","asia/indonesia.html","asia/malaysia.html","asia/myanmar.html",
						"asia/philippines.html","asia/singapore.html","asia/taiwan.html","asia/thailand.html","asia/vetnam.html");

list3[4]	= new Array("cis/belarus.html","cis/georgia.html","cis/kazakhstan.html","cis/moldova.html","cis/russia.html","cis/ukraine.html");

list3[5]	= new Array("europe/austria.html","europe/bulgaria.html","europe/cyprus.html","europe/czech_rep.html","europe/finland.html",
						"europe/france.html","europe/germany.html","europe/greece.html","europe/hungary.html","europe/iceland.html",
						"europe/israel.html","europe/italy.html","europe/latvia.html","europe/lithuania.html","europe/netherlands.html",
						"europe/poland.html","europe/portugal.html","europe/romania.html","europe/spain.html","europe/turkey.html");


list3[6]	= new Array("middle_east/iran.html","middle_east/iraq.html","middle_east/jordan.html","middle_east/kuwait.html","middle_east/lebanon.html",
						"middle_east/qatar.html","middle_east/saudi_arabia.html","middle_east/oman.html","middle_east/syria.html","middle_east/uae.html",
						"middle_east/yemen_arab_rep.html");


list2[1].unshift("Please Select Country");
list2[2].unshift("Please Select Country");
list2[3].unshift("Please Select Country");
list2[4].unshift("Please Select Country");
list2[5].unshift("Please Select Country");
list2[6].unshift("Please Select Country");

list3[1].unshift("dummy.html");
list3[2].unshift("dummy.html");
list3[3].unshift("dummy.html");
list3[4].unshift("dummy.html");
list3[5].unshift("dummy.html");
list3[6].unshift("dummy.html");




function CreateList(){
    Create(document.getElementById('list1'), list1); 
    Create(document.getElementById('list2'), list2[0]);
} 
function CreateList2(myFORM){
	Create(document.getElementById('list2'), list2[myFORM.list1.options.selectedIndex]);
}
function Create(objList, objArray){ 

	var nMax = objArray.length;
    var nLoop = 0; 
    for (nLoop = 0; nLoop < nMax; nLoop++){ 
        oAdd = document.createElement('option');
        if(objList.childNodes[nLoop]  != undefined){
            objList.removeChild(objList.childNodes[nLoop]);
		}

        objList.appendChild(oAdd);
        objList.childNodes[nLoop].setAttribute('value',objArray[nLoop]);

        oAddx= document.createTextNode(objArray[nLoop]);
        if(objList.childNodes[nLoop].firstChild  != undefined){
            objList.childNodes[nLoop].removeChild(objList.childNodes[nLoop].firstChild);
		}
        objList.childNodes[nLoop].appendChild(oAddx);
    }
    objList.length=nLoop;
    objList.options.selectedIndex = 0;
}
function selectedout(myFORM){
	loc=list3[myFORM.list1.options.selectedIndex][myFORM.list2.options.selectedIndex];
	iAdd = document.getElementById('ifrm');
	iAdd.setAttribute('src','distributors/'+loc);
}

function changeFrm(loc) {
	iAdd = document.getElementById('ifrm');
	iAdd.setAttribute('src','distributors/'+loc);
}

function changIfream(newSrc){
	iAdd = document.getElementById('ifrm');
	iAdd.setAttribute('src',newSrc+"/index.html");
}

function setSwf(){
	var so = new SWFObject("swf/distributors.swf", "distributors", "560", "300", "8");  
	so.addParam("quality", "autohigh");
	so.addParam("wmode", "opaque");
	so.write("swf_img");
}

addEvent(window,'load',CreateList,false);
addEvent(window,'load',setSwf,false);


