var ssCountries = new Array();
ssCountries['morocco']="Morocco";
ssCountries['sahara']="Western Sahara";
ssCountries['mauritania']="Mauritania";
ssCountries['egypt']="Egypt";
ssCountries['libya']="Libya";
ssCountries['algeria']="Algeria";
ssCountries['tunisia']="Tunisia";
ssCountries['kuwait']="Kuwait";
ssCountries['iraq']="Iraq";
ssCountries['turkey']="Turkey";
ssCountries['jordan']="Jordan";
ssCountries['cyprus']="Cyprus";
ssCountries['ethiopia']="Ethiopia";
ssCountries['somalia']="Somalia";
ssCountries['israel']="Israel";
ssCountries['qatar']="Qatar";
ssCountries['uae']="United Arab Emirates";
ssCountries['oman']="Oman";

var ssFactoidsmorocco = new Array();
ssFactoidsmorocco[0]= "In 2004, the Government of Morocco implemented measures to boost Foreign Direct Investment and trade by signing a free trade agreement with the United States.  The agreement went live in January of 2006. The government also sold shares in the state telecommunications company and in the largest state-owned bank. ";
ssFactoidsmorocco[1]= "Morocco's foreign investment laws are liberal and offer generous incentives for Joint Ventures, Production Contracts, Licensing Agreements, and Direct Investment.";
ssFactoidsmorocco[2]= "The geographic context for Morocco is ideal for private investment. Located eight miles from Europe, Morocco offers foreign investors excellent prospects in developing export platforms to the European Community, U.S. East Coast, Africa, and the Middle East.";

var ssFactoidsturkey = new Array();
ssFactoidsturkey[0]= "Prospective membership in the European Union and ongoing judicial reforms are both expected to help boost Foreign Direct Investment in Turkey.  In 2007, privatization sales approached $21 billion.";
ssFactoidsturkey[1]= "Overlying Europe and Asia with a natural strategic location between East and West, Turkey provides convenience and great opportunity to new and foreign emerging Markets in the Middle East and Central Asia.";
ssFactoidsturkey[2]= "Turkey has been considered to be a booming country with a cumulative GDP increase of 187% between 2002-2007 reaching USD 663 billion. It also has the 4th largest labor force compared to 27 European countries with over 24.7 million people.";

var ssFactoidsuae = new Array();
ssFactoidsuae[0]= "Dubai's Jebel Ali Free Zone Area (JAFZA) offers 100 percent foreign ownership, tax exemptions, repatriation of profits, and all the other standard free trade zone incentives.";
ssFactoidsuae[1]= "According to the UAE Ministry of Economy, triggered by increase in finance, construction, domestic trade and manufacturing- foreign direct investments (FDI) in the UAE rose 10.8% to 68.63 billion dirham ($18.69 billion) in 2006.";
ssFactoidsuae[2]= "UAE has investment incentives including advantages of zero personal and corporate taxes, no foreign exchange controls, no trade barriers, and modern infrastructure, 100% repatriation of capital and profits, and Freedom from foreign exchange controls.";

var ssFactoidsisrael = new Array();
ssFactoidsisrael[0]= "With twenty-four percent of Israel's workforce holding university degrees, Israel ranks third in the industrialized world, after the United States and Holland.";
ssFactoidsisrael[1]= "Israel ranks second in the world for venture capital funds.  Who's in first?  The USA.";
ssFactoidsisrael[2]= "Israel has the largest number of biotech start-ups, per capita, in the world.";
ssFactoidsisrael[3]= "Israel leads the world with the number of technicians and scientists in the workforce with 145/10,000 workers.";

var ssFactoidsegypt = new Array();
ssFactoidsegypt[0]= "Egypt's population of 72 million people, growing at the rate of 2% per annum, represents a large domestic market for any investor. In fact, the globalization of manufacturing services have already significantly benefited from this market.";
ssFactoidsegypt[1]= "Located at the crossroads of Europe, Asia and Africa, Egypt is strategically situated to support world trade and bring together different markets.";
ssFactoidsegypt[2]= "Egypt leads the growth in tourism throughout the Middle East region with 25% market share.  WTO 20/20 Vision predicts that Egypt will remain the most popular tourist destination in the region with over 17 million international tourist arrivals.";

var ssFactoidsalgeria = new Array();
ssFactoidsalgeria[0]= "US-Algeria trade volume expanded to record levels at $20 billion US dollars in 2007.";
ssFactoidsalgeria[1]= "Algeria continues to attract more and more major investments from well known global businesses; this mainly due to the country's efforts to improve its telecom infrastructure and expand services across the country.";
ssFactoidsalgeria[2]= "Algeria is the United States' 3rd-largest market in the Middle East/North African region. U.S. exports to Algeria totaled $1.2 billion in 2005, an increase of more than 50% since 2003.";

var ssFactoidsiraq = new Array();
ssFactoidsiraq[0]= "Iraq has an estimated 115 billion barrels of crude oil reserves, the third largest in the world. Oil export revenues are critical to Iraq's reconstruction, accounting for over 90 percent of the Iraqi government's revenues. &ndash; U.S. GAO";
ssFactoidsiraq[1]= "Since fiscal year 2003, the United States appropriated about $48 billion for stabilization and reconstruction efforts in Iraq; it had obligated about $42 billion of that amount as of June 2008. U.S. agencies spent about $23.2 billion on the critical security, oil, electricity, and water sectors. From 2005 through April 2008, Iraq spent about $3.9 billion on these sectors. &ndash; U.S. GAO";
ssFactoidsiraq[2]= "Iraq's government is actively pursuing a strategy encouraging foreign participation in joint ventures with State-owned enterprises, while Iraq's Provincial Councils are investing their own budgets to promote and facilitate private investment at the local level.";

function getFactoid(whichCountry){
switch(whichCountry){
	case "morocco": {
	randno = Math.floor ( Math.random() * ssFactoidsmorocco.length );
	return ": "+ssFactoidsmorocco[randno];
	break; }

	case "iraq": {
	randno = Math.floor ( Math.random() * ssFactoidsiraq.length );
	return ": "+ssFactoidsiraq[randno];
	break; }

	case "turkey": {
	randno = Math.floor ( Math.random() * ssFactoidsturkey.length );
	return ": "+ssFactoidsturkey[randno];
	break; }

	case "uae": {
	randno = Math.floor ( Math.random() * ssFactoidsuae.length );
	return ": "+ssFactoidsuae[randno];
	break; }

	case "israel": {
	randno = Math.floor ( Math.random() * ssFactoidsisrael.length );
	return ": "+ssFactoidsisrael[randno];
	break; }

	case "egypt": {
	randno = Math.floor ( Math.random() * ssFactoidsegypt.length );
	return ": "+ssFactoidsegypt[randno];
	break; }

	case "algeria": {
	randno = Math.floor ( Math.random() * ssFactoidsalgeria.length );
	return ": "+ssFactoidsalgeria[randno];
	break; }

	default: {
	return "";
	break; }
}
}

	
function ucwords( str ) {
    return (str+'').replace(/^(.)|\s(.)/g, function ( $1 ) { return $1.toUpperCase ( ); } );
}

function updateMap(whichCountry){

	$("#mapwrap").addClass("map-"+whichCountry);
	$("#mapcaption").html("<b>"+ssCountries[whichCountry]+"</b>"+getFactoid(whichCountry));
	$("#mapimage").fadeTo("fast", 0.0);
}

function clearMap(whichCountry){
	$("#mapwrap").removeClass("map-"+whichCountry);
	$("#mapcaption").html("<b> </b>");
}
$(document).ready(function(){
$("#mapcaption").fadeTo("fast", 0.75);
});