(function(){var a="sproutcore/standard_theme";if(!SC.BUNDLE_INFO){throw"SC.BUNDLE_INFO is not defined!"
}if(SC.BUNDLE_INFO[a]){return}SC.BUNDLE_INFO[a]={requires:["sproutcore/empty_theme"],styles:["/static/sproutcore/standard_theme/en/b4869f7b9eeffc5329d81aacf274ab3027e23f3d/stylesheet-packed.css","/static/sproutcore/standard_theme/en/b4869f7b9eeffc5329d81aacf274ab3027e23f3d/stylesheet.css"],scripts:["/static/sproutcore/standard_theme/en/b4869f7b9eeffc5329d81aacf274ab3027e23f3d/javascript-packed.js"]}
})();SC.stringsFor("English",{__INTL__:"en",_KlbTitle:"Kiva Translated",_OK:"OK",_Edit:"Edit",_About:"About",_Projects:"Projects",_Learn_More:"Learn More",_Register:"Register",_Demo:"Demo",_Choose_A_Loan:"Choose A Loan","_Get started now by finding an entrepreneur and making a loan!":"Get started now by finding an entrepreneur and making a loan!",_Checkout:"Checkout",_Sort_by:"Sort by",_Loan_Amount:"Loan Amount",_Amount_Remaining:"Amount Remaining","_sb:Expiring Soon":"Expiring Soon",_Most_Recent:"Most Recent",_List_Grid:"List Grid",_List:"List",_Explore:"Explore","_Getting Started":"Getting Started","_Browse All Loans":"Browse All Loans","_Sample Filters":"Sample Filters","_African Farmers":"African Farmers","_African Women":"African Women","_Educational Loans":"Educational Loans","_Francophone Countries":"Francophone Countries","_Expiring Soon":"Expiring Soon","_Filter Options":"Filter Options",_Search:"Search (coming soon)",_Countries:"Countries",_Sectors:"Sectors",_Gender:"Gender",_Female:"Female",_Male:"Male",_Gender:"Gender",_Sector:"Sector",_Borrowers:"Borrowers",_Partner_Rating:"Minimum Partner Rating",_Groups:"Groups",_Individuals:"Individuals",_Reset:"Reset",_Save:"Save",_All:"All","_Choose Countries":"Choose Countries","_Choose Sectors":"Choose Sectors","_loans found":"loans found","_loan found":"loan found","_Finding Available Loans":"Finding Available Loans…","_No Loans Matched Your Criteria":"No Loans Matched Your Criteria","_Please choose another filter or change your filter options.":"Please choose another filter or change your filter options.",_Loan_Use:"Loan Use",_Country:"Country",_Rating:"Rating",_Needed_Out_Of:"needed out of","_Lend $25":"Lend $25",_AFGHANISTAN:"Afghanistan","_ÅLAND_ISLANDS":"Åland Islands",_ALBANIA:"Albania",_ALGERIA:"Algeria",_AMERICAN_SAMOA:"American Samoa",_ANDORRA:"Andorra",_ANGOLA:"Angola",_ANGUILLA:"Anguilla",_ANTARCTICA:"Antarctica","_ANTIGUA_AND BARBUDA":"Antigua And Barbuda",_ARGENTINA:"Argentina",_ARMENIA:"Armenia",_ARUBA:"Aruba",_AUSTRALIA:"Australia",_AUSTRIA:"Austria",_AZERBAIJAN:"Azerbaijan",_BAHAMAS:"Bahamas",_BAHRAIN:"Bahrain",_BANGLADESH:"Bangladesh",_BARBADOS:"Barbados",_BELARUS:"Belarus",_BELGIUM:"Belgium",_BELIZE:"Belize",_BENIN:"Benin",_BERMUDA:"Bermuda",_BHUTAN:"Bhutan","_BOLIVIA,_PLURINATIONAL STATE OF":"Bolivia","_BOSNIA_AND HERZEGOVINA":"Bosnia And Herzegovina",_BOTSWANA:"Botswana",_BOUVET_ISLAND:"Bouvet Island",_BRAZIL:"Brazil","_BRITISH_INDIAN OCEAN TERRITORY":"British Indian Ocean Territory",_BRUNEI_DARUSSALAM:"Brunei Darussalam",_BULGARIA:"Bulgaria",_BURKINA_FASO:"Burkina Faso",_BURUNDI:"Burundi",_CAMBODIA:"Cambodia",_CAMEROON:"Cameroon",_CANADA:"Canada",_CAPE_VERDE:"Cape Verde",_CAYMAN_ISLANDS:"Cayman Islands","_CENTRAL_AFRICAN REPUBLIC":"Central African Republic",_CHAD:"Chad",_CHILE:"Chile",_CHINA:"China",_CHRISTMAS_ISLAND:"Christmas Island","_COCOS_(KEELING)_ISLANDS":"Cocos Islands",_COLOMBIA:"Colombia",_COMOROS:"Comoros",_CONGO:"Congo","_CONGO,_THE DEMOCRATIC REPUBLIC OF THE":"Congo",_COOK_ISLANDS:"Cook Islands",_COSTA_RICA:"Costa Rica","_CÔTE_D'IVOIRE":"Ivory Coast",_CROATIA:"Croatia",_CUBA:"Cuba",_CYPRUS:"Cyprus",_CZECH_REPUBLIC:"Czech Republic",_DENMARK:"Denmark",_DJIBOUTI:"Djibouti",_DOMINICA:"Dominica",_DOMINICAN_REPUBLIC:"Dominican Republic",_ECUADOR:"Ecuador",_EGYPT:"Egypt",_EL_SALVADOR:"El Salvador",_EQUATORIAL_GUINEA:"Equatorial Guinea",_ERITREA:"Eritrea",_ESTONIA:"Estonia",_ETHIOPIA:"Ethiopia","_FALKLAND_ISLANDS_(MALVINAS)":"Falkland Islands",_FAROE_ISLANDS:"Faroe Islands",_FIJI:"Fiji",_FINLAND:"Finland",_FRANCE:"France",_FRENCH_GUIANA:"French Guiana",_FRENCH_POLYNESIA:"French Polynesia","_FRENCH_SOUTHERN TERRITORIES":"French Southern Territories",_GABON:"Gabon",_GAMBIA:"Gambia",_GEORGIA:"Georgia",_GERMANY:"Germany",_GHANA:"Ghana",_GIBRALTAR:"Gibraltar",_GREECE:"Greece",_GREENLAND:"Greenland",_GRENADA:"Grenada",_GUADELOUPE:"Guadeloupe",_GUAM:"Guam",_GUATEMALA:"Guatemala",_GUERNSEY:"Guernsey",_GUINEA:"Guinea","_GUINEA-BISSAU":"Guinea-Bissau",_GUYANA:"Guyana",_HAITI:"Haiti","_HEARD_ISLAND AND MCDONALD ISLANDS":"Heard Island And Mcdonald Islands",_HONDURAS:"Honduras",_HONG_KONG:"Hong Kong",_HUNGARY:"Hungary",_ICELAND:"Iceland",_INDIA:"India",_INDONESIA:"Indonesia","_IRAN,_ISLAMIC REPUBLIC OF":"Iran",_IRAQ:"Iraq",_IRELAND:"Ireland","_ISLE_OF MAN":"Isle Of Man",_ISRAEL:"Israel",_ITALY:"Italy",_JAMAICA:"Jamaica",_JAPAN:"Japan",_JERSEY:"Jersey",_JORDAN:"Jordan",_KAZAKHSTAN:"Kazakhstan",_KENYA:"Kenya",_KIRIBATI:"Kiribati","_KOREA,_DEMOCRATIC PEOPLE'S REPUBLIC OF":"South Korea","_KOREA,_REPUBLIC OF":"North Korea",_KUWAIT:"Kuwait",_KYRGYZSTAN:"Kyrgyzstan","_LAO_PEOPLE'S DEMOCRATIC REPUBLIC":"Laos",_LATVIA:"Latvia",_LEBANON:"Lebanon",_LESOTHO:"Lesotho",_LIBERIA:"Liberia","_LIBYAN_ARAB JAMAHIRIYA":"Libyan Arab Jamahiriya",_LIECHTENSTEIN:"Liechtenstein",_LITHUANIA:"Lithuania",_LUXEMBOURG:"Luxembourg",_MACAO:"Macao","_MACEDONIA,_THE FORMER YUGOSLAV REPUBLIC OF":"Macedonia",_MADAGASCAR:"Madagascar",_MALAWI:"Malawi",_MALAYSIA:"Malaysia",_MALDIVES:"Maldives",_MALI:"Mali",_MALTA:"Malta",_MARSHALL_ISLANDS:"Marshall Islands",_MARTINIQUE:"Martinique",_MAURITANIA:"Mauritania",_MAURITIUS:"Mauritius",_MAYOTTE:"Mayotte",_MEXICO:"Mexico","_MICRONESIA,_FEDERATED STATES OF":"Micronesia","_MOLDOVA,_REPUBLIC OF":"Moldova",_MONACO:"Monaco",_MONGOLIA:"Mongolia",_MONTENEGRO:"Montenegro",_MONTSERRAT:"Montserrat",_MOROCCO:"Morocco",_MOZAMBIQUE:"Mozambique",_MYANMAR:"Myanmar",_NAMIBIA:"Namibia",_NAURU:"Nauru",_NEPAL:"Nepal",_NETHERLANDS:"Netherlands",_NETHERLANDS_ANTILLES:"Netherlands Antilles",_NEW_CALEDONIA:"New Caledonia",_NEW_ZEALAND:"New Zealand",_NICARAGUA:"Nicaragua",_NIGER:"Niger",_NIGERIA:"Nigeria",_NIUE:"Niue",_NORFOLK_ISLAND:"Norfolk Island","_NORTHERN_MARIANA ISLANDS":"Northern Mariana Islands",_NORWAY:"Norway",_OMAN:"Oman",_PAKISTAN:"Pakistan",_PALAU:"Palau","_PALESTINIAN_TERRITORY, OCCUPIED":"Palestine",_PANAMA:"Panama","_PAPUA_NEW GUINEA":"Papua New Guinea",_PARAGUAY:"Paraguay",_PERU:"Peru",_PHILIPPINES:"Philippines",_PITCAIRN:"Pitcairn",_POLAND:"Poland",_PORTUGAL:"Portugal",_PUERTO_RICO:"Puerto Rico",_QATAR:"Qatar","_RÉUNION":"RÉUnion",_ROMANIA:"Romania",_RUSSIAN_FEDERATION:"Russian Federation",_RWANDA:"Rwanda","_SAINT_BARTHÉLEMY":"Saint BarthÉLemy","_SAINT_HELENA, ASCENSION AND TRISTAN DA CUNHA":"Saint Helena, Ascension And Tristan Da Cunha","_TTS_AND NEVIS":"Tts And Nevis",_SAINT_LUCIA:"Saint Lucia",_SAINT_MARTIN:"Saint Martin","_SAINT_PIERRE AND MIQUELON":"Saint Pierre And Miquelon","_SAINT_VINCENT AND THE GRENADINES":"Saint Vincent And The Grenadines",_SAMOA:"Samoa",_SAN_MARINO:"San Marino","_SAO_TOME AND PRINCIPE":"Sao Tome And Principe",_SAUDI_ARABIA:"Saudi Arabia",_SENEGAL:"Senegal",_SERBIA:"Serbia",_SEYCHELLES:"Seychelles",_SIERRA_LEONE:"Sierra Leone",_SINGAPORE:"Singapore",_SLOVAKIA:"Slovakia",_SLOVENIA:"Slovenia",_SOLOMON_ISLANDS:"Solomon Islands",_SOMALIA:"Somalia",_SOUTH_AFRICA:"South Africa","_SOUTH_GEORGIA AND THE SOUTH SANDWICH ISLANDS":"South Georgia And The South Sandwich Islands",_SPAIN:"Spain",_SRI_LANKA:"Sri Lanka",_SUDAN:"Sudan",_SURINAME:"Suriname","_SVALBARD_AND JAN MAYEN":"Svalbard And Jan Mayen",_SWAZILAND:"Swaziland",_SWEDEN:"Sweden",_SWITZERLAND:"Switzerland","_SYRIAN_ARAB REPUBLIC":"Syrian Arab Republic","_TAIWAN,_PROVINCE OF CHINA":"Taiwan",_TAJIKISTAN:"Tajikistan","_TANZANIA,_UNITED_REPUBLIC_OF":"Tanzania",_THAILAND:"Thailand","_TIMOR-LESTE":"Timor-Leste",_TOGO:"Togo",_TOKELAU:"Tokelau",_TONGA:"Tonga","_TRINIDAD_AND TOBAGO":"Trinidad And Tobago",_TUNISIA:"Tunisia",_TURKEY:"Turkey",_TURKMENISTAN:"Turkmenistan","_TURKS_AND CAICOS ISLANDS":"Turks And Caicos Islands",_TUVALU:"Tuvalu",_UGANDA:"Uganda",_UKRAINE:"Ukraine","_UNITED_ARAB EMIRATES":"United Arab Emirates",_UNITED_KINGDOM:"United Kingdom",_UNITED_STATES:"United States","_UNITED_STATES MINOR OUTLYING ISLANDS":"United States Minor Outlying Islands",_URUGUAY:"Uruguay",_UZBEKISTAN:"Uzbekistan",_VANUATU:"Vanuatu","_VATICAN_CITY STATE":"Vatican City","_VENEZUELA,_BOLIVARIAN REPUBLIC OF":"Venezuela",_VIET_NAM:"Viet Nam","_VIRGIN_ISLANDS, BRITISH":"Virgin Islands, British","_VIRGIN_ISLANDS, U.S.":"Virgin Islands, U.S.","_WALLIS_AND FUTUNA":"Wallis And Futuna",_WESTERN_SAHARA:"Western Sahara",_YEMEN:"Yemen",_ZAMBIA:"Zambia",_ZIMBABWE:"Zimbabwe","_SOUTHERN_SUDAN_TERRITORY,_PROVISIONAL":"Southern Sudan",_Agriculture:"Agriculture","_Air Conditioning":"Air Conditioning","_Animal Sales":"Animal Sales",_Arts:"Arts","_Auto Repair":"Auto Repair",_Bakery:"Bakery","_Balut-Making":"Balut-Making","_Barber Shop":"Barber Shop","_Beauty Salon":"Beauty Salon","_Bicycle Repair":"Bicycle Repair","_Bicycle Sales":"Bicycle Sales",_Biofuels:"Biofuels",_Blacksmith:"Blacksmith",_Bookbinding:"Bookbinding",_Bookstore:"Bookstore",_Bricks:"Bricks","_Butcher Shop":"Butcher Shop",_Cafe:"Cafe","_Call Center":"Call Center",_Carpentry:"Carpentry",_Catering:"Catering",_Cattle:"Cattle",_Cement:"Cement",_Cereals:"Cereals","_Charcoal Sales":"Charcoal Sales","_Cheese Making":"Cheese Making","_Child Care":"Child Care","_Cloth & Dressmaking Supplies":"Cloth & Dressmaking Supplies",_Clothing:"Clothing","_Clothing Sales":"Clothing Sales",_Cobbler:"Cobbler",_Computers:"Computers",_Construction:"Construction","_Construction Supplies":"Construction Supplies","_Consumer Goods":"Consumer Goods","_Cosmetics Sales":"Cosmetics Sales",_Crafts:"Crafts",_Dairy:"Dairy","_Decorations Sales":"Decorations Sales",_Dental:"Dental","_Electrical Goods":"Electrical Goods",_Electrician:"Electrician","_Electronics Repair":"Electronics Repair","_Electronics Sales":"Electronics Sales",_Embroidery:"Embroidery","_Energy Efficiency":"Energy Efficiency",_Entertainment:"Entertainment","_Farm Supplies":"Farm Supplies",_Farming:"Farming",_Film:"Film","_Fish Selling":"Fish Selling",_Fishing:"Fishing",_Flowers:"Flowers",_Food:"Food","_Food Market":"Food Market","_Food Production/Sales":"Food Production/Sales","_Food Stall":"Food Stall","_Fruits & Vegetables":"Fruits & Vegetables","_Fuel/Firewood":"Fuel/Firewood","_Funeral Expenses":"Funeral Expenses","_Furniture Making":"Furniture Making",_Games:"Games","_General Store":"General Store","_Goods Distribution":"Goods Distribution",_Green:"Green","_Grocery Store":"Grocery Store",_Hardware:"Hardware",_Health:"Health","_Home Appliances":"Home Appliances","_Home Products Sales":"Home Products Sales",_Hotel:"Hotel","_Internet Cafe":"Internet Cafe",_Jewelry:"Jewelry",_Knitting:"Knitting","_Land Rental":"Land Rental",_Laundry:"Laundry","_Liquor Store / Off-License":"Liquor Store / Off-License",_Livestock:"Livestock","_Machine Shop":"Machine Shop","_Machinery Rental":"Machinery Rental",_Manufacturing:"Manufacturing","_Medical Clinic":"Medical Clinic","_Metal Shop":"Metal Shop","_Milk Sales":"Milk Sales","_Mobile Phones":"Mobile Phones","_Motorcycle Repair":"Motorcycle Repair","_Motorcycle Transport":"Motorcycle Transport","_Movie Tapes and DVDs":"Movie Tapes and DVDs","_Music Discs and Tapes":"Music Discs and Tapes","_Musical Instruments":"Musical Instruments","_Musical Performance":"Musical Performance","_Natural Medicines":"Natural Medicines","_Office Supplies":"Office Supplies","_Paper Sales":"Paper Sales","_Party Supplies":"Party Supplies",_Patchwork:"Patchwork",_Perfumes:"Perfumes","_Family Education Expenses":"Family Education Expenses","_Personal Education Expenses":"Personal Education Expenses","_Personal Student Loan":"Personal Student Loan","_Personal Housing Expenses":"Personal Housing Expenses","_Personal Medical Expenses":"Personal Medical Expenses","_Personal Products Sales":"Personal Products Sales","_Personal Purchases":"Personal Purchases",_Pharmacy:"Pharmacy","_Phone Accessories":"Phone Accessories","_Phone Repair":"Phone Repair","_Phone Use Sales":"Phone Use Sales",_Photography:"Photography",_Pigs:"Pigs","_Plastics Sales":"Plastics Sales",_Poultry:"Poultry",_Printing:"Printing",_Property:"Property",_Pub:"Pub",_Quarrying:"Quarrying",_Recycling:"Recycling","_Religious Articles":"Religious Articles",_Restaurant:"Restaurant",_Retail:"Retail",_Rickshaw:"Rickshaw","_Secretarial Services":"Secretarial Services",_Services:"Services",_Sewing:"Sewing","_Shoe Sales":"Shoe Sales","_Soft Drinks":"Soft Drinks","_Solar Power":"Solar Power","_Souvenir Sales":"Souvenir Sales","_Spare Parts":"Spare Parts","_Sporting Good Sales":"Sporting Good Sales",_Tailoring:"Tailoring",_Taxi:"Taxi","_Teaching and Schools":"Teaching and Schools",_Textiles:"Textiles","_Timber Sales":"Timber Sales",_Tourism:"Tourism",_Transportation:"Transportation","_Traveling Sales":"Traveling Sales",_Upholstery:"Upholstery","_Used Clothing":"Used Clothing",_Utilities:"Utilities",_Vehicle:"Vehicle","_Vehicle Repairs":"Vehicle Repairs","_Veterinary Sales":"Veterinary Sales","_Waste Management":"Waste Management","_Water Distribution":"Water Distribution",_Weaving:"Weaving","_Wedding Expenses":"Wedding Expenses","_Well digging":"Well digging",_Wholesale:"Wholesale",_Agriculture:"Agriculture",_Arts:"Arts",_Clothing:"Clothing",_Construction:"Construction",_Education:"Education",_Entertainment:"Entertainment",_Food:"Food",_Green:"Green",_Health:"Health",_Housing:"Housing",_Manufacturing:"Manufacturing",_Personal_Use:"Personal Use",_Retail:"Retail",_Services:"Services",_Transportation:"Transportation",_Wholesale:"Wholesale","_The Situation":"The Situation","_In Numbers":"In Numbers","_something about why to click the browse CTA":"","_Kiva. Make a loan, change a life.":"Kiva. Make a loan, change a life.","_An entrepreneur needs a loan to grow her business":"An entrepreneur needs a loan to grow her business","*borrower_story_detail_1":"Choose an entrepreneur. Lend. Help her to create a business all while improving her quality of life.","_Kiva works with local partners who specialize in microcredit":"Kiva works with local partners who specialize in microcredit","*borrower_story_detail_2":"98% of all funds are paid back. Then, you can reinvest your funds in other projects.","_People from all over the world become lenders, helping in big ways with small amounts of money":"People from all over the world become lenders, helping in big ways with small amounts of money","*borrower_story_detail_3":"Meet and engage with other lenders all over the world. Invite your friends to lend a hand in changing lives.","_Make the choice to change a life":"Make the choice to change a life","_Get repaid":"Get repaid","_Become part of the Kiva community":"Become part of the Kiva community","_How Microfinance Began":"How Microfinance Began","_What Is Kiva?":"What Is Kiva?","_Why Kiva en Français?":"Why Kiva en Français?",_Contact:"Contact","_Our Partners":"Our Partners","_in loans":"in loans","_entrepreneurs helped":"entrepreneurs helped",_countries:"countries",_partners:"partners","_Kiva connects people through lending to alleviate poverty.":"Kiva connects people through lending to alleviate poverty.","*about_captionYunus1":"“Give a man a fish, you feed him for a day… Teach a man to fish and you feed him for a lifetime.”","*about_captionYunus2":"But, what if he can‘t afford a net?","*mfHow_para_1":"Microfinance was developed in Bangladesh by economics professor Muhammad Yunus, recipient of the 2006 Nobel Peace Prize.","*mfHow_para_2":"The concept is to make small loans available to entrepreneurs who are not able to access loans from traditional banks.","*mfHow_para_3":"It has allowed millions of people in developing countries to lift themselves out of poverty, making their proposed projects a reality and creating wealth.","*mfHow_para_4":"This grand social innovation is now spreading itself to other developing countries and areas of simlar transition.","*kivaWhat_para_1":"Kiva.org is the first online microfinance organization in the world, financing loans for over 500 projects a day.","*kivaWhat_para_2":"This success story, founded in San Francisco in 2005, has already raised over 100M€ in loans in over 55 different countries.","*kivaWhat_para_3":"Kiva has rigourously selected over 100 microfinance institutions (MFI) who are its partners in the field and together have an average repayment rate of over 98%.","*kivaWhat_para_4":"Over the course of the loan, the lenders are repaid which allows them to withdraw this money or reinvest it in new projects.","*kefWhy_para_1":"The idea is to promote microfinance thanks to the fancophile community, creating a website in French allowing the selection of projects to finance on Kiva","*kefWhy_para_2":"The creators of the french website are friends and alumni of Kiva who wish to share their enthusiasm.","*kefWhy_para_3":"Once you select the rpojects you wish to support, your loan is finalized on the Kiva website.","*reg_disclaimer_text1":"Pour valider votre investissement, vous devez avoir un compte d’utilisateur Kiva. Ce processus est en anglais mais un accompagnement en français est à votre disposition à gauche de l’écran. Une fois votre compte ouvert, vous serez redirigé sur kiva.org pour compléter votre paiement.","*reg_disclaimer_text2":"Si vous possédez déjà un compte kiva, vous serez redirigé sur le site kiva.org où vous pourrez vous connecter à votre compte pour compléter votre paiement.","_Loading Kiva Website":"Loading Kiva Website…",_Help:"Help","_Use of the english site":"Use of the english site","_Enter your first name":"Enter your first name","_Enter your last name":"Enter your last name","_Enter your email address":"Enter your email address","_Re-enter your email address":"Re-enter your email address","_Choose a password between 6 and 12 characters":"Choose a password between 6 and 12 characters","_Confirm the password you chose":"Confirm the password you chose","_If your friend recommended you to loan on Kiva, please enter their email address so that Kiva can thank them!":"If your friend recommended you to loan on Kiva, please enter their email address so that Kiva can thank them!","_The Pedro Story":"The Pedro Story","_Demos coming soon… for now, enjoy this introduction to Kiva through the story of Pedro, a farmer in Boliva:":"Demos coming soon… for now, enjoy this introduction to Kiva through the story of Pedro, a farmer in Boliva:"});
var Typekit=(function(ab){var au={safari:"b",chrome:"a",ff35:"b",chromewin:"b",ff36:"d",ie:"c"};
var ac={ua:function(d){if(d){for(var c=0;c<this.enabledMatchers.length;c++){var a=this.enabledMatchers[c][1];
if(a.call(null,d)){var b=this.enabledMatchers[c][0];return{fonts:(!!b),format:b}}}return{fonts:false}
}},enabledMatchers:[],enable:function(b){this.enabledMatchers=[];for(var d=0;d<this.matchers.length;
d++){var a=this.matchers[d];for(var c=0;c<b.length;c++){if(a[0]==b[c]){this.enabledMatchers.push([a[1],a[2]]);
break}}}},matchers:[],add:function(c,b,a){this.matchers.push([b,c,a])}};var Q={};
ac.add(au.ff36,"ff36",function(c){var d=c.match(/rv:(\d+\.\d+)\.(\d+).*Gecko\//);
if(d){var a=parseFloat(d[1]);var b=parseInt(d[2]);if(a>=1.9&&b>1){return true}else{return false
}}});ac.add(au.ff35,"ff35",function(b){var a=b.match(/rv:1\.9\.1.*Gecko\//);if(b.match(/rv:1.9.1b[123]{1}/)){return false
}if(a){return true}else{return false}});Q.isMobileOSX=function(b){var a=b.match(/OS.(\d)_(\d)/);
if(a){if(a[1]=="3"){return parseInt(a[2])>0}else{if(parseInt(a[1])>3){return true
}}}return false};ac.add(au.iphone,"iphone",function(a){if(!a.match(/(iPhone|iPod)/)){return false
}return Q.isMobileOSX(a)});ac.add(au.ipad,"ipad",function(a){if(!a.match(/iPad/)){return false
}return Q.isMobileOSX(a)});Q.isSafari=function(b){if(b.match(/Chrome/)){return false
}if(b.match(/(iPhone|iPad|iPod)/)){return false}if(b.match(/webOS/)){return false
}if(b.match(/Android/)){return false}var c=b.match(/AppleWebKit\/(\d+\.\d+)/);if(c){var a=c[1];
return parseFloat(a)>=525.13}};Q.isChrome=function(d){var f;if(d.match(/Chrome/)){f=d.match(/Chrome\/(\d+\.\d+)\.(\d+)\.(\d+)/);
if(f){var a=parseFloat(f[1]);var c=parseInt(f[2]);var b=parseInt(f[3]);if(a>4){return true
}else{if(a==4&&c>249){return true}else{if(a==4&&c==249&&b>=4){return true}else{return false
}}}}}};ac.add(au.chromewin,"chromewin",function(a){if(!a.match(/Windows/)){return false
}return Q.isChrome(a)});ac.add(au.safari,"safari",Q.isSafari);ac.add(au.chrome,"chrome",Q.isChrome);
ac.add(au.ie,"ie",function(b){var c=b.match(/MSIE\s(\d+\.\d+)/);if(c){var a=c[1];
return parseFloat(a)>=6}});var ar=(function(){var g=document.defaultView||{};var d=false;
var b=false;var c=[];function a(){if(!d){d=true;for(var h=0;h<c.length;h++){c[h].call(null)
}}}function f(){if(b){return}b=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);
a()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);
a()}});if(document.documentElement.doScroll&&window==window.top){(function(){if(d){return
}try{document.documentElement.doScroll("left")}catch(j){setTimeout(arguments.callee,0);
return}a()})()}}}if(window.onload){var h=window.onload;window.onload=function(){h();
a()}}else{window.onload=a}}return{ready:function(h){f();if(d){h()}else{c.push(h)}},insertInto:function(j,h){var k=document.getElementsByTagName(j)[0];
if(k&&k.lastChild){k.insertBefore(h,k.lastChild);return true}else{return false}},createStyleElement:function(j){var h=document.createElement("style");
h.setAttribute("type","text/css");if(h.styleSheet){h.styleSheet.cssText=j}else{h.appendChild(document.createTextNode(j))
}return h},createCssLink:function(h){var j=document.createElement("link");j.setAttribute("rel","stylesheet");
j.setAttribute("type","text/css");j.setAttribute("href",h);return j},css:function(j,h){if(g.getComputedStyle){var k=g.getComputedStyle(j,null);
return k?k.getPropertyValue(h):null}else{if(j.currentStyle){return j.currentStyle[h]
}}},loadScript:function(h,j){var k=document.getElementsByTagName("head")[0];if(k){var l=document.createElement("script");
l.src=h;var m=false;l.onload=l.onreadystatechange=function(){if(!m&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){m=true;
if(j){j()}l.onload=l.onreadystatechange=null;if(l.parentNode.tagName=="HEAD"){k.removeChild(l)
}}};k.appendChild(l)}},appendClassName:function(h,k){var j=" "+h.className+" ";if(!j.match("\\s+"+k+"\\s+")){h.className=h.className+" "+k
}},removeClassName:function(h,l){var j=" "+h.className+" ";if(j.match("\\s+"+l+"\\s+")){var m=j.split(/\s+/);
var k=0;var n=[];for(k=0;k<m.length;k++){if(m[k]!=l&&m[k]!=""){n.push(m[k])}}h.className=n.join(" ")
}}}})();function Z(){return"/k"}function aq(){return"http://"}var R={};var aj={};
var Y={};var V=[];var aw={};var ag={};var al=[];if(window.tkKitsTracked==undefined){window.tkKitsTracked=0
}function ao(b){for(var a in b){aj[a]=b[a]}av("setOptions",aj)}function ax(b){ac.enable(b.supportedBrowsers);
var c=aj.ua;if(c){var a=ac.ua(c);aj.fonts=a.fonts;aj.compatibility=a.format;av("detectUA",aj.fonts,aj.compatibility)
}}function av(a){if(aj.debug&&window.console&&window.console.log){window.console.log(arguments)
}}function P(a,b){if(!aw[a]){aw[a]=[]}if(b){aw[a].push(b);av("addCallback",a,aw[a].length,b)
}}function ai(a){var b=document.getElementsByTagName("html")[0];if(b){ar.appendClassName(b,a)
}}function S(a){var b=document.getElementsByTagName("html")[0];if(b){ar.removeClassName(b,a)
}}function aa(b){var a=new Date().getTime();P(b,function(c){O(b).time=(new Date().getTime())-a
})}function W(a,b){av("executeCallbacks",a);var c=aw[a];if(c){for(var d=0;d<c.length;
d++){c[d](b)}}}function ay(f,b,c,d,g,a,h){av("addDataSet",f,b,c,d,g,a,h);V.push(f);
Y[f]={kitId:f,securityToken:b,supportedBrowsers:c,badgeOptions:d,kitOptions:g,fontData:a,selectorData:h};
Y[f]["callbackData"]=a;Y[f]["callbackData"]["kitId"]=f}function af(a,b){if(a){av("loading kit",a);
T(Y[a],b)}else{for(var c=0;c<V.length;c++){var a=V[c];var d=Y[a];av("loading kit",a);
T(d,b)}}}function T(a,b){ax(a);if(a&&a.kitId){av("loadKit",a);al.push(a);an(a.selectorData);
if(b["kit-initialized"]){b["kit-initialized"](a.callbackData)}if(aj.fonts){aa(a.kitId);
S("wf-inactive");ai("wf-loading");if(b.loading){b.loading(a.callbackData)}P(a.kitId,function(){S("wf-loading");
ai("wf-active");if(b.active){b.active(a.callbackData)}});N(a.kitId,a.securityToken,aj.compatibility)
}else{S("wf-loading");ai("wf-inactive");if(b.inactive){b.inactive(a.callbackData)
}}if(b["kit-loaded"]){b["kit-loaded"](a.callbackData)}}else{av("loadKit","data is invalid",a)
}}function an(h){if(h&&h.selectors){var c=h.selectors;var f=[];for(var g=0;g<c.length;
g++){var k=c[g];if(k){var a=k.selectors;var d=k.declarations;if(a&&d){var b=[];for(var j=0;
j<d.length;j++){b.push(d[j]["name"]+":"+d[j]["value"]+";")}f.push(a+"{"+b.join("")+"}")
}}}ar.insertInto("head",ar.createStyleElement(f.join("")))}}function N(b,a,d){var c=aq()+aj.host+Z()+"/"+b+"-"+d+".css?"+a;
av("loadKitStyle",c);if(ar.insertInto("head",ar.createCssLink(c))){am(b)}}function am(c){av("waitForStyleLoaded",c);
var g=function(h){var j=document.createElement("span");j.setAttribute("class","wf-font-watcher");
j.setAttribute("style","position:absolute;left:-999px;font-size:200px;font-family:"+h+",NONE");
j.innerHTML="Mm";return j};var b=function(l,n){var m=g("NONE");var h=g(l);ar.insertInto("html",m);
ar.insertInto("html",h);var j=m.offsetWidth;var k=function(){if(h.offsetWidth!=j){n()
}else{setTimeout(k,aj.styleLoadIntervalTime)}};k()};var a=Y[c].fontData.fonts;if(a&&a.length>0){var d=a.length;
for(var f=0;f<a.length;f++){b(a[f].family_name,function(){if(--d==0){if(Y[c]){W(c,Y[c].callbackData)
}}})}}else{W(c,Y[c].callbackData)}}function O(b){var a=ag[b];if(!a){a=ag[b]={time:0}
}return a}function at(b,a){R[b]=a}function ad(){if(!aj.fonts){return}for(var c=0;
c<al.length;c++){var d=al[c];var a=d.badgeOptions;if(a&&a.enabled){var b=R["default"];
if(b){var f=b(d.kitId,a,aj);if(f){f.setAttribute("id","typekit-badge-"+d.kitId);ar.insertInto("body",f)
}}}}}function ak(){if(window.tkKitsTracked>0){return}for(var d=0;d<al.length;d++){var f=al[d];
var c=f.kitOptions;if(c&&c.ga){if(window._gat){ae()}else{var a=aq();var b=a.match(/https/)?"ssl":"www";
ar.loadScript(a+b+".google-analytics.com/ga.js",ae)}break}}}function ae(){try{window._gat._getTracker("UA-8850781-3")._trackPageview()
}catch(a){}window.tkKitsTracked++}ar.ready(ad);ar.ready(ak);ao({host:"",root:"",assetHost:"",assetRoot:"",colophonHost:"typekit.com",ua:navigator.userAgent,styleLoadIntervalTime:50,bodyWaitIntervalTime:20,debug:false});
function X(){return{addDataSet:ay,clearDataSets:function(){V=[];Y={};al=[]},insertBadges:ad,optionallyCallGoogleAnalytics:ak}
}function ap(){return{configure:ao,load:function(a){var b,c;if(typeof arguments[0]=="string"){b=arguments[0];
c=arguments[1]}else{b=null;c=arguments[0]}af(b,c||{})},stats:O}}at("default",function(c,d,a){function b(k,l){var m=0,j=0;
if(document.documentElement&&(document.documentElement[k]||document.documentElement[l])){m=document.documentElement[k];
j=document.documentElement[l]}else{if(document.body&&(document.body[k]||document.body[l])){m=document.body[k];
j=document.body[l]}}return[m,j]}function f(){return b("clientWidth","clientHeight")
}function h(){return b("scrollLeft","scrollTop")}function g(j,k,l){if(j.attachEvent){j["e"+k+l]=l;
j[k+l]=function(){j["e"+k+l](window.event)};j.attachEvent("on"+k,j[k+l])}else{j.addEventListener(k,l,false)
}}});ao({host:"use.typekit.com",root:"/",assetHost:"use.typekit.com",assetRoot:"/"});
ay("qek5aly","3bb2a6e53c9684ffdc9a9bf6195b2a62173cbd03ca8deaa4c4329a86dd530b375ddd9884ba5df2f08f387cca0b14acf3004aabb7039a5fdb0006ed8cac7e8554f09eb6bf6ee8824d9d85061a67601ff7e9c01893e8c0536c44508766cf8310b9c1a6dcb3c30fcb",["chrome","chromewin","ff35","ff36","ie","safari"],{enabled:true},{ga:false},{fonts:[{family_name:'"museo-slab-1","museo-slab-2"',variations:{a:["n1","i1","n3","i3","n5","i5","n7","i7","n8","i8","n9","i9"],b:["n1","i1","n3","i3","n5","i5","n7","i7","n8","i8","n9","i9"],c:["n5"],d:["n1","i1","n3","i3","n5","i5","n7","i7","n8","i8","n9","i9"],f:["n1","i1","n3","i3","n5","i5","n7","i7","n8","i8","n9","i9"]}}]},{selectors:[{selectors:".kef-branded-font,.tk-museo-slab",declarations:[{value:'"museo-slab-1","museo-slab-2","Arial","sans-serif"',name:"font-family"}]}]});
if(window.__webfonttypekitmodule__){for(var U=0;U<V.length;U++){var ah=V[U];var az=window.__webfonttypekitmodule__[ah];
if(az){az(function(a,k,b){ao(k.configure||{});af(ah,{});var d=Y[ah];var h=[];var c={};
for(var g=0;g<d.fontData.fonts.length;g++){var j=d.fontData.fonts[g];var f=j.family_name;
h.push(f);c[f]=j.variations[aj.compatibility]}var l=aj.fonts;b(l,h,c)})}}}return ap()
})();var _gaq=_gaq||[];_gaq.push(["_setAccount","UA-17184074-1"]);_gaq.push(["_setDomainName",".kivaenfrancais.org"]);
_gaq.push(["_trackPageview"]);(function(){var b=document.createElement("script");
b.type="text/javascript";b.async=true;b.src=("https:"==document.location.protocol?"https://ssl":"http://www")+".google-analytics.com/ga.js";
var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(b,a)})();
sc_require("utils/typekit");try{Typekit.load()}catch(e){console.log("TYPEKIT failed to load.")
}sc_require("utils/ga_loader");Klb=SC.Application.create({NAMESPACE:"Klb",VERSION:"0.5.0",store:SC.Store.create(),trace:YES,currentPane:null,pickerPanes:{}});
Klb.staticImagePath="images/ratingStar_full.png";Klb.absStaticImagePath="/static/klb/en/b4869f7b9eeffc5329d81aacf274ab3027e23f3d/resources/images/ratingStar_full.png";
Klb.imageByName=function(a){var b=Klb.absStaticImagePath.substring(0,Klb.absStaticImagePath.indexOf(Klb.staticImagePath));
return b+a};Klb.AVAILABLE_PARTNERS_QUERY=SC.Query.local(Klb.Partner,{conditions:"rating > 0"});
Klb.AVAILABLE_LOANS_REMOTE_QUERY=SC.Query.remote(Klb.Loan,{conditions:'loanStatus = "fundraising"',orderBy:["postedDate"]});
Klb.AVAILABLE_LOANS_QUERY=SC.Query.local(Klb.Loan,{conditions:'loanStatus = "fundraising"',orderBy:["postedDate"]});
Klb.Demo=SC.Record.extend({primaryKey:"id",name:SC.Record.attr(String)});sc_require("models/demo");
Klb.demosController=SC.ArrayController.create({primeData:function(){}});Klb.detailController=SC.ObjectController.create({largeImage:function(){if(this.get("image")){return"https://s3.amazonaws.com/s3.kiva.org/img/w450h360/"+this.get("image").id+".jpg"
}else{return""}}.property("image"),smallImage:function(){if(this.get("image")){return"https://s3.amazonaws.com/s3.kiva.org/img/w200h200/"+this.get("image").id+".jpg"
}else{return""}}.property()});Klb.filtersController=SC.TreeController.create(SC.CollectionViewDelegate,{collectionViewShouldSelectIndexes:function(b,c,d){var a=b.get("content").objectAt(c.firstObject());
if(a&&a.get("isEnabled")){return c}return null}});Klb.lendingController=SC.ObjectController.create({currentScene:"loansLoading"});
Klb.Loan=SC.Record.extend({primaryKey:"id",loanStatus:SC.Record.attr(String,{key:"status"}),fundedAmount:SC.Record.attr(Number,{key:"funded_amount",defaultValue:0}),loanAmount:SC.Record.attr(Number,{key:"loan_amount",defaultValue:0}),basketAmount:SC.Record.attr(Number,{key:"basket_amount",defaultValue:0}),name:SC.Record.attr(String),use:SC.Record.attr(String),sector:SC.Record.attr(String),partner:SC.Record.toOne("Klb.Partner",{key:"partner_id",defaultValue:0}),country:SC.Record.toOne("Klb.Country",{key:"loc_country_code",defaultValue:"XX"}),loc_country_code:SC.Record.attr(String,{key:"loc_country_code",defaultValue:"XX"}),img:SC.Record.attr(Object,{key:"image"}),postedDate:SC.Record.attr(SC.DateTime,{key:"posted_date"}),gender:SC.Record.attr(String,{key:"gender"}),borrowers:SC.Record.attr(Array,{key:"borrowers"}),fundedName:function(){return this.get("name")+" "+this.get("fundedAmount")
}.property("name","fundedAmount").cacheable(),remainingAmount:function(){return this.get("loanAmount")-this.get("fundedAmount")
}.property("fundedAmount","loanAmount").cacheable(),fundedPercentage:function(){return 100*this.get("fundedAmount")/this.get("loanAmount")
}.property("fundedAmount","loanAmount").cacheable(),borrowerCount:function(){if(!this.get("borrowers")){return 0
}return this.get("borrowers").get("length")}.property("borrowers").cacheable(),gender:function(){var c=false,b=false,a,d;
if(!this.get("borrowers")){return"X"}d=this.get("borrowers").get("length");for(a=0;
a<d;a++){if(this.get("borrowers").objectAt(a).gender==="F"){b=true}else{if(this.get("borrowers").objectAt(a).gender==="M"){c=true
}}}if(c&&b){return"X"}if(c){return"M"}if(b){return"F"}return"X"}.property("borrowers").cacheable()});
require("models/loan");SC.Query.registerQueryExtension("ANY_COUNTRY",{reservedWord:true,leftType:"PRIMITIVE",rightType:"PRIMITIVE",evalType:"BOOLEAN",evaluate:function(d,a){var g=this.leftSide.evaluate(d,a);
var b=this.rightSide.evaluate(d,a);var f=false;var c=0;while(f===false&&c<b.length){if(g===b[c]){f=true
}c++}return f}});Klb.loansController=SC.ArrayController.create(SC.CollectionViewDelegate,{searchControllerQueryDidChange:function(){console.log("search control query did change");
var a=Klb.getPath("searchController.query");if(a){console.log("current query");SC.Logger.dir(a);
this.set("content",Klb.store.find(SC.Query.create({location:SC.Query.LOCAL,recordType:Klb.Loan,conditions:a.conditions,parameters:a.parameters,orderBy:a.orderBy})))
}}.observes("Klb.searchController.query"),searchResultsCountDidChange:function(){Klb.sendAction("updateStateForResultCount",this,null)
}.observes("Klb.loansController.length"),lengthNamedForDisplay:function(){return this.get("length")+" "+"_loans found".loc()
}.property("length").cacheable(),collectionViewShouldSelectIndexes:function(a,b,c){return null
}});Klb.Search=SC.Object.extend(SC.Copyable,{id:"_none",male:true,female:true,groups:true,queryString:"",countries:[],sectors:[],sortOrder:"postedDate DESC",copy:function(){return this.constructor.create({id:this.get("id"),male:this.get("male"),female:this.get("female"),groups:this.get("groups"),queryString:this.get("queryString"),countries:this.get("countries").slice(),sectors:this.get("sectors").slice(),sortOrder:this.get("sortOrder")})
}});require("models/search");require("controllers/loans");Klb.searchController=SC.ObjectController.create({availableCountries:[],selectedCountries:[],availableSectors:[],selectedSectors:[],availablePartners:[],showMale:true,showFemale:true,showGroups:true,kivaHasLoans:true,storeIsReadyForSearch:false,sortOptions:[{name:"_Most_Recent".loc(),value:"postedDate DESC"},{name:"_Amount_Remaining".loc(),value:"remainingAmount"},{name:"_Loan_Amount".loc(),value:"loanAmount"},{name:"_Sector".loc(),value:"sector"},{name:"_sb:Expiring Soon".loc(),value:"postedDate ASC"}],currentSortOrder:"postedDate DESC",currentSearch:Klb.Search.create(),canCheckout:NO,query:function(){var c=[],g={},b,f,a,j,h,d;
c.push('loanStatus="fundraising"');this.currentSearch.set("male",this.get("showMale"));
this.currentSearch.set("female",this.get("showFemale"));this.currentSearch.set("groups",this.get("showGroups"));
this.currentSearch.set("sortOrder",this.get("currentSortOrder"));j=this.get("currentSearch");
h=j.get("countries");d=j.get("sectors");if(h&&h.get("length")>0){c.push("loc_country_code ANY {countries}");
g.countries=h}if(d&&d.get("length")>0){c.push("sector ANY {sectors}");g.sectors=d.getEach("value")
}f="(gender='M')";b="(gender='F')";if(!j.get("groups")){c.push("borrowerCount = 1")
}if(j.get("male")&&j.get("female")){}else{if(j.get("female")){c.push(b)}else{if(j.get("male")){c.push(f)
}else{if(j.get("groups")){c.push("borrowerCount >= 2")}else{c.push("borrowerCount = 0")
}}}}console.log("MY JOINS: "+c.join(" AND "));return{conditions:c.join(" AND "),parameters:g,orderBy:j.get("sortOrder")}
}.property("showMale","showFemale","showGroups","currentSortOrder"),availableCountries:function(){var b=this.get("availablePartners");
var a=[];b.forEach(function(f,d,c){a.pushObjects(f.get("countries"))});return a.uniq().sortProperty("name")
}.property("availablePartners").cacheable(),formattedCountries:function(){var c=this.get("currentSearch").get("countries"),a=c.get("length"),b;
if(a===0){return"_All".loc()}b=Klb.store.find(SC.Query.create({location:SC.Query.LOCAL,recordType:Klb.Country,conditions:"id ANY {country}",parameters:{country:c},orderBy:"name"}));
return b.mapProperty("name").sort().join(", ")}.property("currentSearch","currentSearch.countries").cacheable(),formattedSectors:function(){var b=this.get("currentSearch").get("sectors"),a=b.get("length");
return a===0?"_All".loc():b.mapProperty("name").sort().join(", ")}.property("currentSearch","currentSearch.sectors").cacheable(),currentFilters:SC.Object.extend({treeItemIsExpanded:YES,title:"Root",isEnabled:YES,value:null,treeItemChildren:function(){var a,b=[];
b.push(Klb.searchController.browseFilters.create());b.push(Klb.searchController.sampleFilters.create());
return b}.property().cacheable()}),browseFilters:SC.Object.extend({treeItemIsExpanded:YES,title:"_Explore".loc(),isEnabled:NO,treeItemChildren:function(){var a,b=[];
b.push(Klb.searchController.currentFilters.create({title:"_Browse All Loans".loc(),value:Klb.Search.create(),treeItemIsExpanded:NO,treeItemChildren:null}));
return b}.property().cacheable()}),sampleFilters:SC.Object.extend({treeItemIsExpanded:YES,title:"_Sample Filters".loc(),isEnabled:NO,treeItemChildren:function(){var a,b=[];
b.push(Klb.searchController.currentFilters.create({title:"_African Women".loc(),value:Klb.Search.create({countries:["BJ","BI","CM","GH","ML","MZ","UG","GQ","NG","CD","CG","_S","RW","SN","TG","TD","CI","SL","TZ"],female:true,male:false,groups:true}),treeItemIsExpanded:NO,treeItemChildren:null}));
b.push(Klb.searchController.currentFilters.create({title:"_Educational Loans".loc(),value:Klb.Search.create({sectors:[{name:"_Education".loc(),value:"Education",isSelected:false}]}),treeItemIsExpanded:NO,treeItemChildren:null}));
b.push(Klb.searchController.currentFilters.create({title:"_Francophone Countries".loc(),value:Klb.Search.create({countries:["BJ","BI","CM","HT","LB","ML","CD","CG","RW","SN","TG","TD","CI"]}),treeItemIsExpanded:NO,treeItemChildren:null}));
b.push(Klb.searchController.currentFilters.create({title:"_Expiring Soon".loc(),value:Klb.Search.create({sortOrder:"postedDate ASC"}),treeItemIsExpanded:NO,treeItemChildren:null}));
return b}.property().cacheable()}),primeData:function(){var a=[{name:"_Agriculture".loc(),value:"Agriculture",isSelected:false},{name:"_Transportation".loc(),value:"Transportation",isSelected:false},{name:"_Services".loc(),value:"Services",isSelected:false},{name:"_Clothing".loc(),value:"Clothing",isSelected:false},{name:"_Health".loc(),value:"Health",isSelected:false},{name:"_Retail".loc(),value:"Retail",isSelected:false},{name:"_Manufacturing".loc(),value:"Manufacturing",isSelected:false},{name:"_Arts".loc(),value:"Arts",isSelected:false},{name:"_Housing".loc(),value:"Housing",isSelected:false},{name:"_Food".loc(),value:"Food",isSelected:false},{name:"_Wholesale".loc(),value:"Wholesale",isSelected:false},{name:"_Construction".loc(),value:"Construction",isSelected:false},{name:"_Education".loc(),value:"Education",isSelected:false},{name:"_Personal_Use".loc(),value:"Personal Use",isSelected:false},{name:"_Entertainment".loc(),value:"Entertainment",isSelected:false},{name:"_Green".loc(),value:"Green",isSelected:false}];
this.set("availableSectors",a);Klb.store.loadRecords(Klb.Country,Klb.COUNTRIES_ISO);
this.set("availableCountries",Klb.store.find(SC.Query.local(Klb.Country)));this.set("availablePartners",Klb.store.find(Klb.AVAILABLE_PARTNERS_QUERY));
Klb.filtersController.set("content",Klb.searchController.currentFilters.create());
Klb.filtersController.selectObject(Klb.filtersController.get("arrangedObjects").objectAt(1));
this.set("currentSearch",Klb.Search.create());this.notifyPropertyChange("query")},selectSidebarItem:function(a){var b=a.get("selection").firstObject().get("value").copy();
this.set("currentSearch",b);this.notifyPropertyChange("query");this.notifyPropertyChange("formattedSectors");
this.notifyPropertyChange("formattedCountries")},availablePartnersDidChange:function(b){var a=this.get("availablePartners").get("length");
console.log("Observed availablePartners change w/ "+a);if(this.get("availablePartners").get("length")>0){Klb.sendAction("checkLoadingState",this,null)
}}.observes("*availablePartners.length"),updateLocalBindingsForNewCurrentSearch:function(){var a=this.get("currentSearch");
this.beginPropertyChanges();this.set("showMale",a.get("male"));this.set("showFemale",a.get("female"));
this.set("showGroups",a.get("groups"));this.set("currentSortOrder",a.get("sortOrder"));
this.endPropertyChanges()}.observes("currentSearch"),showCountryPicker:function(a){Klb.getPath("pickerPanes.countryPicker.mainPane").append()
},chooseCountries:function(c){var b=c.getPath("parentView.buttonGridView.optionButtons"),a=[];
b.forEach(function(d){if(d.isSelected){a.push(d.get("content").get("id"))}});this.get("currentSearch").set("countries",a);
Klb.getPath("pickerPanes.countryPicker.mainPane").remove();Klb.filtersController.set("selection",SC.SelectionSet.EMPTY);
this.notifyPropertyChange("query");this.notifyPropertyChange("formattedCountries")
},showSectorPicker:function(a){Klb.getPath("pickerPanes.sectorPicker.mainPane").append()
},chooseSectors:function(b){var a=b.getPath("parentView.scrollView.contentView.selection");
this.get("currentSearch").set("sectors",a);Klb.getPath("pickerPanes.sectorPicker.mainPane").remove();
Klb.filtersController.set("selection",SC.SelectionSet.EMPTY);this.notifyPropertyChange("query");
this.notifyPropertyChange("formattedSectors")},lendNow:function(b){var f=b.parentView.get("content").get("id"),d,c,g,a;
d=document.createElement("FORM");d.setAttribute("action","http://www.kiva.org/basket/set/");
d.setAttribute("method","post");d.setAttribute("id","kivaBasketPostForm");d.setAttribute("target","_kivaBasketFrame");
c=document.createElement("INPUT");c.setAttribute("name","loans");c.setAttribute("value",'[{"id":'+f+', "amount":25}]');
g=document.createElement("INPUT");g.setAttribute("name","donation");g.setAttribute("value","2.5");
a=document.createElement("INPUT");a.setAttribute("name","app_id");a.setAttribute("value","org.kivaenfrancais");
d.appendChild(c);d.appendChild(g);d.appendChild(a);document.getElementById("invisible_form_view").appendChild(d);
d.submit();_gaq.push(["_trackEvent","conversion","lendOne","loan_id:"+f])}});sc_require("models/loan");
Klb.KivaDataSource=SC.DataSource.extend({allLoans:null,lastCachedLoanIndex:0,loanLoadThreshold:0,loanLoadQueue:[],storedLoanTotal:0,totalLoanVolume:0,preFetchLoanObjects:function(){var a=[],c=this.get("lastCachedLoanIndex"),b;
if(!this.get("totalLoanVolume")){b=Klb.get("allLoans").storeKeys.get("length");this.set("totalLoanVolume",b)
}if(this.get("totalLoanVolume")<=c){return}a=Klb.get("allLoans").storeKeys.map(function(d){return Klb.store.idFor(d)
},this);if(c===0){Klb.store.retrieveRecords(Klb.Loan,a.slice(0,20),null,YES);this.set("lastCachedLoanIndex",20);
this.set("loanLoadThreshold",10)}else{Klb.store.retrieveRecords(Klb.Loan,a.slice(c,c+200),null,YES);
this.set("lastCachedLoanIndex",c+200)}},fetch:function(a,c){var b;if(c===Klb.AVAILABLE_PARTNERS_QUERY){SC.Request.getUrl("/proxy/api_proxy.rb?method=partners").json().notify(this,"didFetchPartners",a,c).send();
return YES}else{if(c===Klb.AVAILABLE_LOANS_REMOTE_QUERY){SC.Request.getUrl("/a/loans/fundraising/ids.json").json().notify(this,"didFetchAvailableLoans",a,c).send();
return YES}else{if(c===Klb.AVAILABLE_LOANS_QUERY){for(b=0;b<=10;b++){SC.Request.getUrl("/proxy/api_proxy.rb?method=loans&page=%@".fmt(b)).json().notify(this,"didFetchNewestLoans",a,c).send();
c=null}return YES}}}return NO},didFetchAvailableLoans:function(b,a,d){console.log("AVAILABLE LOANS fetch did complete.");
if(SC.ok(b)&&b.get("body")){var c=b.get("body").map(function(f){return Klb.Loan.storeKeyFor(f)
},this);a.loadQueryResults(d,c);if(d){a.dataSourceDidFetchQuery(d)}if(c.get("length")<=0){Klb.searchController.set("kivaHasLoans",false);
console.log("NO KIVA LOANS")}else{this.preFetchLoanObjects();console.log("*** confirmed kiva has lons")
}Klb.sendAction("checkLoadingState",this,null)}else{a.dataSourceDidErrorQuery(d,b)
}console.log("END didFetchAvailableLoans.")},didFetchPartners:function(b,a,c){console.log("PARTNERS fetch did complete.");
if(SC.ok(b)){b.get("body").partners.forEach(function(g,f,d){if(g.countries[0].name==="South Sudan"){console.log("plugged one SS entry for "+g.name);
g.countries[0].iso_code="_S"}g.country_codes=g.countries.mapProperty("iso_code")});
a.loadRecords(Klb.Partner,b.get("body").partners);a.dataSourceDidFetchQuery(c)}else{a.dataSourceDidErrorQuery(c,b)
}console.log("END didFetchPartners.")},retrieveRecords:function(a,f,d){console.log("******** Called retrieveRecords()");
var c=SC.Set.create(),g={},b=null;f.forEach(function(k){var m=SC.Store.recordTypeFor(k);
c.add(m);var h=SC.guidFor(m);var j=g[h];if(!j){j=g[h]=[]}var l=a.idFor(k);j.push(l)
},this);c.forEach(function(p){var n;if(p===Klb.Loan){n="/a/loans/%@.json"}else{}if(n){var o=g[SC.guidFor(p)],h=o.get("length"),m=0,j=100,l;
for(m=0;m<h;m+=j){l=o.slice(m,m+j);SC.Request.getUrl(n.fmt(l.join(","))).json().notify(this,this.didRetrieveRecords,{store:a,recordType:p,storeKeys:f}).send()
}b=(b===NO)?SC.MIXED_STATE:(b===null?YES:b)}else{b=(b===null)?NO:SC.MIXED_STATE}},this);
return b},didRetrieveRecords:function(d,h){var c=h.store,j=h.recordType,g=h.storeKeys,a,f,b;
if(SC.ok(d)&&d.get("body")){a=d.get("body").get("length");for(b=0;b<a;b++){f=d.get("body").objectAt(b);
if(f.location.country==="South Sudan"){f.location.country_code="_S"}f.loc_country_code=f.location.country_code;
f.loan_amount=f.terms.loan_amount;f.description="";f.terms=null;this.get("loanLoadQueue").push(f)
}console.log("***got the records back. queue total: "+this.get("loanLoadQueue").length);
if(this.get("loanLoadQueue").get("length")>=this.get("loanLoadThreshold")||this.get("loanLoadQueue").get("length")+this.get("storedLoanTotal")>=this.get("totalLoanVolume")){this.storeRecordsFromQueuedResults(j,c)
}this.preFetchLoanObjects()}else{console.log("***ERROR on retrieve");c.dataSourceDidError(g,d.get("body"))
}},storeRecordsFromQueuedResults:function(b,a){console.log("storing records to the STORE of size"+this.get("loanLoadQueue").length);
a.loadRecords(b,this.get("loanLoadQueue"));this.set("storedLoanTotal",this.get("storedLoanTotal")+this.get("loanLoadQueue").length);
this.set("loanLoadQueue",[]);this.set("loanLoadThreshold",200);Klb.searchController.set("storeIsReadyForSearch",true)
},createRecord:function(a,b){return NO},updateRecord:function(a,b){return NO},destroyRecord:function(a,b){return NO
}});Klb.Country=SC.Record.extend({primaryKey:"iso_code",name:SC.Record.attr(String),iso_code:SC.Record.attr(String),region_code:SC.Record.attr(String),iconBySize:function(a){return"http://kivaenfrancais.org/rez_static/flags_iso/%@/%@.png".fmt(a,this.get("iso_code").toLowerCase())
}});Klb.Partner=SC.Record.extend({primaryKey:"id",id:SC.Record.attr(Number),name:SC.Record.attr(String),partnerStatus:SC.Record.attr(String,{key:"status"}),countries:SC.Record.toMany("Klb.Country",{key:"country_codes"}),start_date:SC.Record.attr(SC.DateTime),imageUrl:SC.Record.attr(String),rating:SC.Record.attr(Number),delinquency_rate:SC.Record.attr(Number),default_rate:SC.Record.attr(Number),amount_raised:SC.Record.attr(Number,{key:"total_amount_raised"}),loans_posted:SC.Record.attr(Number)});
Klb.COUNTRIES_ISO=[{iso_code:"AF",iso_name:"AFGHANISTAN",name:"_AFGHANISTAN".loc(),region:"xx"},{iso_code:"AX",iso_name:"ÅLAND ISLANDS",name:"_ÅLAND_ISLANDS".loc(),region:"xx"},{iso_code:"AL",iso_name:"ALBANIA",name:"_ALBANIA".loc(),region:"xx"},{iso_code:"DZ",iso_name:"ALGERIA",name:"_ALGERIA".loc(),region:"af"},{iso_code:"AS",iso_name:"AMERICAN SAMOA",name:"_AMERICAN_SAMOA".loc(),region:"xx"},{iso_code:"AD",iso_name:"ANDORRA",name:"_ANDORRA".loc(),region:"xx"},{iso_code:"AO",iso_name:"ANGOLA",name:"_ANGOLA".loc(),region:"xx"},{iso_code:"AI",iso_name:"ANGUILLA",name:"_ANGUILLA".loc(),region:"xx"},{iso_code:"AQ",iso_name:"ANTARCTICA",name:"_ANTARCTICA".loc(),region:"xx"},{iso_code:"AG",iso_name:"ANTIGUA AND BARBUDA",name:"_ANTIGUA_AND BARBUDA".loc(),region:"xx"},{iso_code:"AR",iso_name:"ARGENTINA",name:"_ARGENTINA".loc(),region:"xx"},{iso_code:"AM",iso_name:"ARMENIA",name:"_ARMENIA".loc(),region:"xx"},{iso_code:"AW",iso_name:"ARUBA",name:"_ARUBA".loc(),region:"xx"},{iso_code:"AU",iso_name:"AUSTRALIA",name:"_AUSTRALIA".loc(),region:"xx"},{iso_code:"AT",iso_name:"AUSTRIA",name:"_AUSTRIA".loc(),region:"xx"},{iso_code:"AZ",iso_name:"AZERBAIJAN",name:"_AZERBAIJAN".loc(),region:"xx"},{iso_code:"BS",iso_name:"BAHAMAS",name:"_BAHAMAS".loc(),region:"xx"},{iso_code:"BH",iso_name:"BAHRAIN",name:"_BAHRAIN".loc(),region:"xx"},{iso_code:"BD",iso_name:"BANGLADESH",name:"_BANGLADESH".loc(),region:"xx"},{iso_code:"BB",iso_name:"BARBADOS",name:"_BARBADOS".loc(),region:"xx"},{iso_code:"BY",iso_name:"BELARUS",name:"_BELARUS".loc(),region:"xx"},{iso_code:"BE",iso_name:"BELGIUM",name:"_BELGIUM".loc(),region:"xx"},{iso_code:"BZ",iso_name:"BELIZE",name:"_BELIZE".loc(),region:"xx"},{iso_code:"BJ",iso_name:"BENIN",name:"_BENIN".loc(),region:"xx"},{iso_code:"BM",iso_name:"BERMUDA",name:"_BERMUDA".loc(),region:"xx"},{iso_code:"BT",iso_name:"BHUTAN",name:"_BHUTAN".loc(),region:"xx"},{iso_code:"BO",iso_name:"BOLIVIA, PLURINATIONAL STATE OF",name:"_BOLIVIA,_PLURINATIONAL STATE OF".loc(),region:"xx"},{iso_code:"BA",iso_name:"BOSNIA AND HERZEGOVINA",name:"_BOSNIA_AND HERZEGOVINA".loc(),region:"xx"},{iso_code:"BW",iso_name:"BOTSWANA",name:"_BOTSWANA".loc(),region:"xx"},{iso_code:"BV",iso_name:"BOUVET ISLAND",name:"_BOUVET_ISLAND".loc(),region:"xx"},{iso_code:"BR",iso_name:"BRAZIL",name:"_BRAZIL".loc(),region:"xx"},{iso_code:"IO",iso_name:"BRITISH INDIAN OCEAN TERRITORY",name:"_BRITISH_INDIAN OCEAN TERRITORY".loc(),region:"xx"},{iso_code:"BN",iso_name:"BRUNEI DARUSSALAM",name:"_BRUNEI_DARUSSALAM".loc(),region:"xx"},{iso_code:"BG",iso_name:"BULGARIA",name:"_BULGARIA".loc(),region:"xx"},{iso_code:"BF",iso_name:"BURKINA FASO",name:"_BURKINA_FASO".loc(),region:"xx"},{iso_code:"BI",iso_name:"BURUNDI",name:"_BURUNDI".loc(),region:"xx"},{iso_code:"KH",iso_name:"CAMBODIA",name:"_CAMBODIA".loc(),region:"xx"},{iso_code:"CM",iso_name:"CAMEROON",name:"_CAMEROON".loc(),region:"xx"},{iso_code:"CA",iso_name:"CANADA",name:"_CANADA".loc(),region:"xx"},{iso_code:"CV",iso_name:"CAPE VERDE",name:"_CAPE_VERDE".loc(),region:"xx"},{iso_code:"KY",iso_name:"CAYMAN ISLANDS",name:"_CAYMAN_ISLANDS".loc(),region:"xx"},{iso_code:"CF",iso_name:"CENTRAL AFRICAN REPUBLIC",name:"_CENTRAL_AFRICAN REPUBLIC".loc(),region:"xx"},{iso_code:"TD",iso_name:"CHAD",name:"_CHAD".loc(),region:"xx"},{iso_code:"CL",iso_name:"CHILE",name:"_CHILE".loc(),region:"xx"},{iso_code:"CN",iso_name:"CHINA",name:"_CHINA".loc(),region:"xx"},{iso_code:"CX",iso_name:"CHRISTMAS ISLAND",name:"_CHRISTMAS_ISLAND".loc(),region:"xx"},{iso_code:"CC",iso_name:"COCOS (KEELING) ISLANDS",name:"_COCOS_(KEELING) ISLANDS".loc(),region:"xx"},{iso_code:"CO",iso_name:"COLOMBIA",name:"_COLOMBIA".loc(),region:"xx"},{iso_code:"KM",iso_name:"COMOROS",name:"_COMOROS".loc(),region:"xx"},{iso_code:"CG",iso_name:"CONGO",name:"_CONGO".loc(),region:"xx"},{iso_code:"CD",iso_name:"CONGO, THE DEMOCRATIC REPUBLIC OF THE",name:"_CONGO,_THE DEMOCRATIC REPUBLIC OF THE".loc(),region:"xx"},{iso_code:"CK",iso_name:"COOK ISLANDS",name:"_COOK_ISLANDS".loc(),region:"xx"},{iso_code:"CR",iso_name:"COSTA RICA",name:"_COSTA_RICA".loc(),region:"xx"},{iso_code:"CI",iso_name:"CÔTE D'IVOIRE",name:"_CÔTE_D'IVOIRE".loc(),region:"xx"},{iso_code:"HR",iso_name:"CROATIA",name:"_CROATIA".loc(),region:"xx"},{iso_code:"CU",iso_name:"CUBA",name:"_CUBA".loc(),region:"xx"},{iso_code:"CY",iso_name:"CYPRUS",name:"_CYPRUS".loc(),region:"xx"},{iso_code:"CZ",iso_name:"CZECH REPUBLIC",name:"_CZECH_REPUBLIC".loc(),region:"xx"},{iso_code:"DK",iso_name:"DENMARK",name:"_DENMARK".loc(),region:"xx"},{iso_code:"DJ",iso_name:"DJIBOUTI",name:"_DJIBOUTI".loc(),region:"xx"},{iso_code:"DM",iso_name:"DOMINICA",name:"_DOMINICA".loc(),region:"xx"},{iso_code:"DO",iso_name:"DOMINICAN REPUBLIC",name:"_DOMINICAN_REPUBLIC".loc(),region:"xx"},{iso_code:"EC",iso_name:"ECUADOR",name:"_ECUADOR".loc(),region:"xx"},{iso_code:"EG",iso_name:"EGYPT",name:"_EGYPT".loc(),region:"xx"},{iso_code:"SV",iso_name:"EL SALVADOR",name:"_EL_SALVADOR".loc(),region:"xx"},{iso_code:"GQ",iso_name:"EQUATORIAL GUINEA",name:"_EQUATORIAL_GUINEA".loc(),region:"xx"},{iso_code:"ER",iso_name:"ERITREA",name:"_ERITREA".loc(),region:"xx"},{iso_code:"EE",iso_name:"ESTONIA",name:"_ESTONIA".loc(),region:"xx"},{iso_code:"ET",iso_name:"ETHIOPIA",name:"_ETHIOPIA".loc(),region:"xx"},{iso_code:"FK",iso_name:"FALKLAND ISLANDS (MALVINAS)",name:"_FALKLAND_ISLANDS (MALVINAS)".loc(),region:"xx"},{iso_code:"FO",iso_name:"FAROE ISLANDS",name:"_FAROE_ISLANDS".loc(),region:"xx"},{iso_code:"FJ",iso_name:"FIJI",name:"_FIJI".loc(),region:"xx"},{iso_code:"FI",iso_name:"FINLAND",name:"_FINLAND".loc(),region:"xx"},{iso_code:"FR",iso_name:"FRANCE",name:"_FRANCE".loc(),region:"xx"},{iso_code:"GF",iso_name:"FRENCH GUIANA",name:"_FRENCH_GUIANA".loc(),region:"xx"},{iso_code:"PF",iso_name:"FRENCH POLYNESIA",name:"_FRENCH_POLYNESIA".loc(),region:"xx"},{iso_code:"TF",iso_name:"FRENCH SOUTHERN TERRITORIES",name:"_FRENCH_SOUTHERN TERRITORIES".loc(),region:"xx"},{iso_code:"GA",iso_name:"GABON",name:"_GABON".loc(),region:"xx"},{iso_code:"GM",iso_name:"GAMBIA",name:"_GAMBIA".loc(),region:"xx"},{iso_code:"GE",iso_name:"GEORGIA",name:"_GEORGIA".loc(),region:"xx"},{iso_code:"DE",iso_name:"GERMANY",name:"_GERMANY".loc(),region:"xx"},{iso_code:"GH",iso_name:"GHANA",name:"_GHANA".loc(),region:"xx"},{iso_code:"GI",iso_name:"GIBRALTAR",name:"_GIBRALTAR".loc(),region:"xx"},{iso_code:"GR",iso_name:"GREECE",name:"_GREECE".loc(),region:"xx"},{iso_code:"GL",iso_name:"GREENLAND",name:"_GREENLAND".loc(),region:"xx"},{iso_code:"GD",iso_name:"GRENADA",name:"_GRENADA".loc(),region:"xx"},{iso_code:"GP",iso_name:"GUADELOUPE",name:"_GUADELOUPE".loc(),region:"xx"},{iso_code:"GU",iso_name:"GUAM",name:"_GUAM".loc(),region:"xx"},{iso_code:"GT",iso_name:"GUATEMALA",name:"_GUATEMALA".loc(),region:"xx"},{iso_code:"GG",iso_name:"GUERNSEY",name:"_GUERNSEY".loc(),region:"xx"},{iso_code:"GN",iso_name:"GUINEA",name:"_GUINEA".loc(),region:"xx"},{iso_code:"GW",iso_name:"GUINEA-BISSAU",name:"_GUINEA-BISSAU".loc(),region:"xx"},{iso_code:"GY",iso_name:"GUYANA",name:"_GUYANA".loc(),region:"xx"},{iso_code:"HT",iso_name:"HAITI",name:"_HAITI".loc(),region:"xx"},{iso_code:"HM",iso_name:"HEARD ISLAND AND MCDONALD ISLANDS",name:"_HEARD_ISLAND AND MCDONALD ISLANDS".loc(),region:"xx"},{iso_code:"VA",iso_name:"HOLY SEE (VATICAN CITY STATE)",name:"_HOLY_SEE (VATICAN CITY STATE)".loc(),region:"xx"},{iso_code:"HN",iso_name:"HONDURAS",name:"_HONDURAS".loc(),region:"xx"},{iso_code:"HK",iso_name:"HONG KONG",name:"_HONG_KONG".loc(),region:"xx"},{iso_code:"HU",iso_name:"HUNGARY",name:"_HUNGARY".loc(),region:"xx"},{iso_code:"IS",iso_name:"ICELAND",name:"_ICELAND".loc(),region:"xx"},{iso_code:"IN",iso_name:"INDIA",name:"_INDIA".loc(),region:"xx"},{iso_code:"ID",iso_name:"INDONESIA",name:"_INDONESIA".loc(),region:"xx"},{iso_code:"IR",iso_name:"IRAN, ISLAMIC REPUBLIC OF",name:"_IRAN,_ISLAMIC REPUBLIC OF".loc(),region:"xx"},{iso_code:"IQ",iso_name:"IRAQ",name:"_IRAQ".loc(),region:"xx"},{iso_code:"IE",iso_name:"IRELAND",name:"_IRELAND".loc(),region:"xx"},{iso_code:"IM",iso_name:"ISLE OF MAN",name:"_ISLE_OF MAN".loc(),region:"xx"},{iso_code:"IL",iso_name:"ISRAEL",name:"_ISRAEL".loc(),region:"xx"},{iso_code:"IT",iso_name:"ITALY",name:"_ITALY".loc(),region:"xx"},{iso_code:"JM",iso_name:"JAMAICA",name:"_JAMAICA".loc(),region:"xx"},{iso_code:"JP",iso_name:"JAPAN",name:"_JAPAN".loc(),region:"xx"},{iso_code:"JE",iso_name:"JERSEY",name:"_JERSEY".loc(),region:"xx"},{iso_code:"JO",iso_name:"JORDAN",name:"_JORDAN".loc(),region:"xx"},{iso_code:"KZ",iso_name:"KAZAKHSTAN",name:"_KAZAKHSTAN".loc(),region:"xx"},{iso_code:"KE",iso_name:"KENYA",name:"_KENYA".loc(),region:"xx"},{iso_code:"KI",iso_name:"KIRIBATI",name:"_KIRIBATI".loc(),region:"xx"},{iso_code:"KP",iso_name:"KOREA, DEMOCRATIC PEOPLE'S REPUBLIC OF",name:"_KOREA,_DEMOCRATIC PEOPLE'S REPUBLIC OF".loc(),region:"xx"},{iso_code:"KR",iso_name:"KOREA, REPUBLIC OF",name:"_KOREA,_REPUBLIC OF".loc(),region:"xx"},{iso_code:"KW",iso_name:"KUWAIT",name:"_KUWAIT".loc(),region:"xx"},{iso_code:"KG",iso_name:"KYRGYZSTAN",name:"_KYRGYZSTAN".loc(),region:"xx"},{iso_code:"LA",iso_name:"LAO PEOPLE'S DEMOCRATIC REPUBLIC",name:"_LAO_PEOPLE'S DEMOCRATIC REPUBLIC".loc(),region:"xx"},{iso_code:"LV",iso_name:"LATVIA",name:"_LATVIA".loc(),region:"xx"},{iso_code:"LB",iso_name:"LEBANON",name:"_LEBANON".loc(),region:"xx"},{iso_code:"LS",iso_name:"LESOTHO",name:"_LESOTHO".loc(),region:"xx"},{iso_code:"LR",iso_name:"LIBERIA",name:"_LIBERIA".loc(),region:"xx"},{iso_code:"LY",iso_name:"LIBYAN ARAB JAMAHIRIYA",name:"_LIBYAN_ARAB JAMAHIRIYA".loc(),region:"xx"},{iso_code:"LI",iso_name:"LIECHTENSTEIN",name:"_LIECHTENSTEIN".loc(),region:"xx"},{iso_code:"LT",iso_name:"LITHUANIA",name:"_LITHUANIA".loc(),region:"xx"},{iso_code:"LU",iso_name:"LUXEMBOURG",name:"_LUXEMBOURG".loc(),region:"xx"},{iso_code:"MO",iso_name:"MACAO",name:"_MACAO".loc(),region:"xx"},{iso_code:"MK",iso_name:"MACEDONIA, THE FORMER YUGOSLAV REPUBLIC OF",name:"_MACEDONIA,_THE FORMER YUGOSLAV REPUBLIC OF".loc(),region:"xx"},{iso_code:"MG",iso_name:"MADAGASCAR",name:"_MADAGASCAR".loc(),region:"xx"},{iso_code:"MW",iso_name:"MALAWI",name:"_MALAWI".loc(),region:"xx"},{iso_code:"MY",iso_name:"MALAYSIA",name:"_MALAYSIA".loc(),region:"xx"},{iso_code:"MV",iso_name:"MALDIVES",name:"_MALDIVES".loc(),region:"xx"},{iso_code:"ML",iso_name:"MALI",name:"_MALI".loc(),region:"xx"},{iso_code:"MT",iso_name:"MALTA",name:"_MALTA".loc(),region:"xx"},{iso_code:"MH",iso_name:"MARSHALL ISLANDS",name:"_MARSHALL_ISLANDS".loc(),region:"xx"},{iso_code:"MQ",iso_name:"MARTINIQUE",name:"_MARTINIQUE".loc(),region:"xx"},{iso_code:"MR",iso_name:"MAURITANIA",name:"_MAURITANIA".loc(),region:"xx"},{iso_code:"MU",iso_name:"MAURITIUS",name:"_MAURITIUS".loc(),region:"xx"},{iso_code:"YT",iso_name:"MAYOTTE",name:"_MAYOTTE".loc(),region:"xx"},{iso_code:"MX",iso_name:"MEXICO",name:"_MEXICO".loc(),region:"xx"},{iso_code:"FM",iso_name:"MICRONESIA, FEDERATED STATES OF",name:"_MICRONESIA,_FEDERATED STATES OF".loc(),region:"xx"},{iso_code:"MD",iso_name:"MOLDOVA, REPUBLIC OF",name:"_MOLDOVA,_REPUBLIC OF".loc(),region:"xx"},{iso_code:"MC",iso_name:"MONACO",name:"_MONACO".loc(),region:"xx"},{iso_code:"MN",iso_name:"MONGOLIA",name:"_MONGOLIA".loc(),region:"xx"},{iso_code:"ME",iso_name:"MONTENEGRO",name:"_MONTENEGRO".loc(),region:"xx"},{iso_code:"MS",iso_name:"MONTSERRAT",name:"_MONTSERRAT".loc(),region:"xx"},{iso_code:"MA",iso_name:"MOROCCO",name:"_MOROCCO".loc(),region:"xx"},{iso_code:"MZ",iso_name:"MOZAMBIQUE",name:"_MOZAMBIQUE".loc(),region:"xx"},{iso_code:"MM",iso_name:"MYANMAR",name:"_MYANMAR".loc(),region:"xx"},{iso_code:"NA",iso_name:"NAMIBIA",name:"_NAMIBIA".loc(),region:"xx"},{iso_code:"NR",iso_name:"NAURU",name:"_NAURU".loc(),region:"xx"},{iso_code:"NP",iso_name:"NEPAL",name:"_NEPAL".loc(),region:"xx"},{iso_code:"NL",iso_name:"NETHERLANDS",name:"_NETHERLANDS".loc(),region:"xx"},{iso_code:"AN",iso_name:"NETHERLANDS ANTILLES",name:"_NETHERLANDS_ANTILLES".loc(),region:"xx"},{iso_code:"NC",iso_name:"NEW CALEDONIA",name:"_NEW_CALEDONIA".loc(),region:"xx"},{iso_code:"NZ",iso_name:"NEW ZEALAND",name:"_NEW_ZEALAND".loc(),region:"xx"},{iso_code:"NI",iso_name:"NICARAGUA",name:"_NICARAGUA".loc(),region:"xx"},{iso_code:"NE",iso_name:"NIGER",name:"_NIGER".loc(),region:"xx"},{iso_code:"NG",iso_name:"NIGERIA",name:"_NIGERIA".loc(),region:"xx"},{iso_code:"NU",iso_name:"NIUE",name:"_NIUE".loc(),region:"xx"},{iso_code:"NF",iso_name:"NORFOLK ISLAND",name:"_NORFOLK_ISLAND".loc(),region:"xx"},{iso_code:"MP",iso_name:"NORTHERN MARIANA ISLANDS",name:"_NORTHERN_MARIANA ISLANDS".loc(),region:"xx"},{iso_code:"NO",iso_name:"NORWAY",name:"_NORWAY".loc(),region:"xx"},{iso_code:"OM",iso_name:"OMAN",name:"_OMAN".loc(),region:"xx"},{iso_code:"PK",iso_name:"PAKISTAN",name:"_PAKISTAN".loc(),region:"xx"},{iso_code:"PW",iso_name:"PALAU",name:"_PALAU".loc(),region:"xx"},{iso_code:"PS",iso_name:"PALESTINIAN TERRITORY, OCCUPIED",name:"_PALESTINIAN_TERRITORY, OCCUPIED".loc(),region:"xx"},{iso_code:"PA",iso_name:"PANAMA",name:"_PANAMA".loc(),region:"xx"},{iso_code:"PG",iso_name:"PAPUA NEW GUINEA",name:"_PAPUA_NEW GUINEA".loc(),region:"xx"},{iso_code:"PY",iso_name:"PARAGUAY",name:"_PARAGUAY".loc(),region:"xx"},{iso_code:"PE",iso_name:"PERU",name:"_PERU".loc(),region:"xx"},{iso_code:"PH",iso_name:"PHILIPPINES",name:"_PHILIPPINES".loc(),region:"xx"},{iso_code:"PN",iso_name:"PITCAIRN",name:"_PITCAIRN".loc(),region:"xx"},{iso_code:"PL",iso_name:"POLAND",name:"_POLAND".loc(),region:"xx"},{iso_code:"PT",iso_name:"PORTUGAL",name:"_PORTUGAL".loc(),region:"xx"},{iso_code:"PR",iso_name:"PUERTO RICO",name:"_PUERTO_RICO".loc(),region:"xx"},{iso_code:"QA",iso_name:"QATAR",name:"_QATAR".loc(),region:"xx"},{iso_code:"RE",iso_name:"RÉUNION",name:"_RÉUNION".loc(),region:"xx"},{iso_code:"RO",iso_name:"ROMANIA",name:"_ROMANIA".loc(),region:"xx"},{iso_code:"RU",iso_name:"RUSSIAN FEDERATION",name:"_RUSSIAN_FEDERATION".loc(),region:"xx"},{iso_code:"RW",iso_name:"RWANDA",name:"_RWANDA".loc(),region:"xx"},{iso_code:"BL",iso_name:"SAINT BARTHÉLEMY",name:"_SAINT_BARTHÉLEMY".loc(),region:"xx"},{iso_code:"SH",iso_name:"SAINT HELENA, ASCENSION AND TRISTAN DA CUNHA",name:"_SAINT_HELENA, ASCENSION AND TRISTAN DA CUNHA".loc(),region:"xx"},{iso_code:"KN",iso_name:"TTS AND NEVIS",name:"_TTS_AND NEVIS".loc(),region:"xx"},{iso_code:"LC",iso_name:"SAINT LUCIA",name:"_SAINT_LUCIA".loc(),region:"xx"},{iso_code:"MF",iso_name:"SAINT MARTIN",name:"_SAINT_MARTIN".loc(),region:"xx"},{iso_code:"PM",iso_name:"SAINT PIERRE AND MIQUELON",name:"_SAINT_PIERRE AND MIQUELON".loc(),region:"xx"},{iso_code:"VC",iso_name:"SAINT VINCENT AND THE GRENADINES",name:"_SAINT_VINCENT AND THE GRENADINES".loc(),region:"xx"},{iso_code:"WS",iso_name:"SAMOA",name:"_SAMOA".loc(),region:"xx"},{iso_code:"SM",iso_name:"SAN MARINO",name:"_SAN_MARINO".loc(),region:"xx"},{iso_code:"ST",iso_name:"SAO TOME AND PRINCIPE",name:"_SAO_TOME AND PRINCIPE".loc(),region:"xx"},{iso_code:"SA",iso_name:"SAUDI ARABIA",name:"_SAUDI_ARABIA".loc(),region:"xx"},{iso_code:"SN",iso_name:"SENEGAL",name:"_SENEGAL".loc(),region:"xx"},{iso_code:"RS",iso_name:"SERBIA",name:"_SERBIA".loc(),region:"xx"},{iso_code:"SC",iso_name:"SEYCHELLES",name:"_SEYCHELLES".loc(),region:"xx"},{iso_code:"SL",iso_name:"SIERRA LEONE",name:"_SIERRA_LEONE".loc(),region:"xx"},{iso_code:"SG",iso_name:"SINGAPORE",name:"_SINGAPORE".loc(),region:"xx"},{iso_code:"SK",iso_name:"SLOVAKIA",name:"_SLOVAKIA".loc(),region:"xx"},{iso_code:"SI",iso_name:"SLOVENIA",name:"_SLOVENIA".loc(),region:"xx"},{iso_code:"SB",iso_name:"SOLOMON ISLANDS",name:"_SOLOMON_ISLANDS".loc(),region:"xx"},{iso_code:"SO",iso_name:"SOMALIA",name:"_SOMALIA".loc(),region:"xx"},{iso_code:"ZA",iso_name:"SOUTH AFRICA",name:"_SOUTH_AFRICA".loc(),region:"xx"},{iso_code:"GS",iso_name:"SOUTH GEORGIA AND THE SOUTH SANDWICH ISLANDS",name:"_SOUTH_GEORGIA AND THE SOUTH SANDWICH ISLANDS".loc(),region:"xx"},{iso_code:"ES",iso_name:"SPAIN",name:"_SPAIN".loc(),region:"xx"},{iso_code:"LK",iso_name:"SRI LANKA",name:"_SRI_LANKA".loc(),region:"xx"},{iso_code:"SD",iso_name:"SUDAN",name:"_SUDAN".loc(),region:"xx"},{iso_code:"SR",iso_name:"SURINAME",name:"_SURINAME".loc(),region:"xx"},{iso_code:"SJ",iso_name:"SVALBARD AND JAN MAYEN",name:"_SVALBARD_AND_JAN_MAYEN".loc(),region:"xx"},{iso_code:"SZ",iso_name:"SWAZILAND",name:"_SWAZILAND".loc(),region:"xx"},{iso_code:"SE",iso_name:"SWEDEN",name:"_SWEDEN".loc(),region:"xx"},{iso_code:"CH",iso_name:"SWITZERLAND",name:"_SWITZERLAND".loc(),region:"xx"},{iso_code:"SY",iso_name:"SYRIAN ARAB REPUBLIC",name:"_SYRIAN_ARAB_REPUBLIC".loc(),region:"xx"},{iso_code:"TW",iso_name:"TAIWAN, PROVINCE OF CHINA",name:"_TAIWAN,_PROVINCE_OF_CHINA".loc(),region:"xx"},{iso_code:"TJ",iso_name:"TAJIKISTAN",name:"_TAJIKISTAN".loc(),region:"xx"},{iso_code:"TZ",iso_name:"TANZANIA, UNITED REPUBLIC OF",name:"_TANZANIA,_UNITED_REPUBLIC_OF".loc(),region:"xx"},{iso_code:"TH",iso_name:"THAILAND",name:"_THAILAND".loc(),region:"xx"},{iso_code:"TL",iso_name:"TIMOR-LESTE",name:"_TIMOR-LESTE".loc(),region:"xx"},{iso_code:"TG",iso_name:"TOGO",name:"_TOGO".loc(),region:"xx"},{iso_code:"TK",iso_name:"TOKELAU",name:"_TOKELAU".loc(),region:"xx"},{iso_code:"TO",iso_name:"TONGA",name:"_TONGA".loc(),region:"xx"},{iso_code:"TT",iso_name:"TRINIDAD AND TOBAGO",name:"_TRINIDAD_AND_TOBAGO".loc(),region:"xx"},{iso_code:"TN",iso_name:"TUNISIA",name:"_TUNISIA".loc(),region:"xx"},{iso_code:"TR",iso_name:"TURKEY",name:"_TURKEY".loc(),region:"xx"},{iso_code:"TM",iso_name:"TURKMENISTAN",name:"_TURKMENISTAN".loc(),region:"xx"},{iso_code:"TC",iso_name:"TURKS AND CAICOS ISLANDS",name:"_TURKS_AND_CAICOS_ISLANDS".loc(),region:"xx"},{iso_code:"TV",iso_name:"TUVALU",name:"_TUVALU".loc(),region:"xx"},{iso_code:"UG",iso_name:"UGANDA",name:"_UGANDA".loc(),region:"xx"},{iso_code:"UA",iso_name:"UKRAINE",name:"_UKRAINE".loc(),region:"xx"},{iso_code:"AE",iso_name:"UNITED ARAB EMIRATES",name:"_UNITED_ARAB_EMIRATES".loc(),region:"xx"},{iso_code:"GB",iso_name:"UNITED KINGDOM",name:"_UNITED_KINGDOM".loc(),region:"xx"},{iso_code:"US",iso_name:"UNITED STATES",name:"_UNITED_STATES".loc(),region:"xx"},{iso_code:"UM",iso_name:"UNITED STATES MINOR OUTLYING ISLANDS",name:"_UNITED_STATES_MINOR_OUTLYING_ISLANDS".loc(),region:"xx"},{iso_code:"UY",iso_name:"URUGUAY",name:"_URUGUAY".loc(),region:"xx"},{iso_code:"UZ",iso_name:"UZBEKISTAN",name:"_UZBEKISTAN".loc(),region:"xx"},{iso_code:"VU",iso_name:"VANUATU",name:"_VANUATU".loc(),region:"xx"},{iso_code:"see HOLY SEE",iso_name:"VATICAN CITY STATE",name:"_VATICAN_CITY_STATE".loc(),region:"xx"},{iso_code:"VE",iso_name:"VENEZUELA, BOLIVARIAN REPUBLIC OF",name:"_VENEZUELA,_BOLIVARIAN_REPUBLIC_OF".loc(),region:"xx"},{iso_code:"VN",iso_name:"VIET NAM",name:"_VIET_NAM".loc(),region:"xx"},{iso_code:"VG",iso_name:"VIRGIN ISLANDS, BRITISH",name:"_VIRGIN_ISLANDS, BRITISH".loc(),region:"xx"},{iso_code:"VI",iso_name:"VIRGIN ISLANDS, U.S.",name:"_VIRGIN_ISLANDS,_U.S.".loc(),region:"xx"},{iso_code:"WF",iso_name:"WALLIS AND FUTUNA",name:"_WALLIS_AND_FUTUNA".loc(),region:"xx"},{iso_code:"EH",iso_name:"WESTERN SAHARA",name:"_WESTERN_SAHARA".loc(),region:"xx"},{iso_code:"YE",iso_name:"YEMEN",name:"_YEMEN".loc(),region:"xx"},{iso_code:"ZM",iso_name:"ZAMBIA",name:"_ZAMBIA".loc(),region:"xx"},{iso_code:"ZW",iso_name:"ZIMBABWE",name:"_ZIMBABWE".loc(),region:"xx"},{iso_code:"_S",iso_name:"SOUTHERN SUDAN TERRITORY, PROVISIONAL",name:"_SOUTHERN_SUDAN_TERRITORY,_PROVISIONAL".loc(),region:"xx"}];
Klb.GridView=SC.View.extend({awake:function(){arguments.callee.base.apply(this,arguments);
this.invokeLast(this.generateButtons)},generateButtons:function(){var h=this.get("content");
if(h){console.log("CONTENT DEFINED");var j=[];var l,g=h.get("length"),d=0,c=d,k=d,a=180,m=this.get("frame").width,f,n,b;
this.optionButtons=[];for(f=0;f<g;++f){n=h.objectAt(f);b=n.get("name");l=SC.ButtonView.create({layout:{top:k,left:c,width:a,height:36},classNames:"align-left".w(),icon:n.iconBySize(24),title:b,buttonBehavior:SC.TOGGLE_BEHAVIOR,content:n});
j.push(l);this.optionButtons.push(l);c+=a+16;if(c+a+d>m){c=d;k+=25+16}}this.replaceAllChildren(j)
}}});require("views/grid");Klb.pickerPanes.countryPicker=SC.Page.design({mainPane:SC.PanelPane.design({layout:{width:1010,height:550,centerX:0,centerY:0},contentView:SC.View.design({childViews:"selectButton label buttonGridView".w(),label:SC.LabelView.design({layout:{top:10,left:20,right:20,height:24},value:"_Choose Countries".loc(),controlSize:SC.LARGE_CONTROL_SIZE}),buttonGridView:Klb.GridView.design({layout:{top:40,left:18,bottom:18+24+18,right:18},contentBinding:"Klb.searchController.availableCountries",classNames:"buttonGridView".w()}),selectButton:SC.ButtonView.design({layout:{centerX:0,width:150,height:24,bottom:18},title:"_OK".loc(),isDefault:YES,action:"chooseCountries",target:"Klb.searchController"})})})});
Klb.pickerPanes.sectorPicker=SC.Page.design({mainPane:SC.PanelPane.design({layout:{width:300,height:300,centerX:0,centerY:0},contentView:SC.View.design({childViews:"selectButton label scrollView".w(),label:SC.LabelView.design({layout:{top:20,left:20,right:20,height:30},value:"_Choose Sectors".loc()+":"}),scrollView:SC.ScrollView.design({layout:{top:40,left:18,bottom:18+24+18,right:18},hasHorizontalScroller:NO,borderStyle:SC.BORDER_GRAY,contentView:SC.ListView.design({contentBinding:"Klb.searchController.availableSectors",contentValueKey:"name",rowHeight:24})}),selectButton:SC.ButtonView.design({layout:{centerX:0,width:150,height:24,bottom:18},title:"_OK".loc(),isDefault:YES,action:"chooseSectors",target:"Klb.searchController"})})})});
Klb.READY=SC.Responder.create({selectLoan:function(a,b){if(!Klb.searchController.get("hasContent")){return NO
}if(b&&b.isEnumerable){b=b.firstObject()}Klb.detailController.set("content",b);if(b){Klb.makeFirstResponder(Klb.READY_DETAIL)
}else{Klb.makeFirstResponder(Klb.READY_LIST)}return null},selectSidebarItem:function(a,b){},back:function(){Klb.detailController.set("content",null);
Klb.makeFirstResponder(Klb.READY_LIST)},checkLoadingState:function(){if(Klb.searchController.get("availablePartners").get("length")>0&&(!Klb.searchController.get("kivaHasLoans")||Klb.searchController.get("storeIsReadyForSearch"))){Klb.makeFirstResponder(Klb.READY_LIST)
}}});sc_require("states/ready");Klb.NO_LOANS=SC.Responder.create({nextResponder:Klb.READY,didBecomeFirstResponder:function(){Klb.lendingController.set("currentScene","noTargets")
},willLoseFirstResponder:function(){Klb.lendingController.set("currentScene",null)
},updateStateForResultCount:function(){if(Klb.loansController.get("length")>0){Klb.makeFirstResponder(Klb.READY_LIST)
}}});sc_require("states/ready");Klb.READY_DETAIL=SC.Responder.create({nextResponder:Klb.READY,didBecomeFirstResponder:function(){Klb.lendingController.set("currentScene","loanDetail")
},willLoseFirstResponder:function(){Klb.lendingController.set("currentScene",null)
},back:function(){Klb.detailController.set("content",null);Klb.makeFirstResponder(Klb.READY_LIST)
}});sc_require("states/ready");Klb.READY_LIST=SC.Responder.create({nextResponder:Klb.READY,didBecomeFirstResponder:function(){Klb.lendingController.set("currentScene","searchListView");
Klb.sendAction("updateStateForResultCount",this,null)},willLoseFirstResponder:function(){Klb.lendingController.set("currentScene",null)
},updateStateForResultCount:function(){if(Klb.loansController.get("length")<=0){Klb.makeFirstResponder(Klb.NO_LOANS)
}}});sc_require("states/ready");Klb.READY_LOADING=SC.Responder.create({nextResponder:Klb.READY,didBecomeFirstResponder:function(){Klb.lendingController.set("currentScene","loansLoading")
},willLoseFirstResponder:function(){Klb.lendingController.set("currentScene",null)
}});Klb.READY_NO_LOANS=SC.Responder.create({nextResponder:Klb.READY,didBecomeFirstResponder:function(){Klb.lendingController.set("currentScene","noTargets")
},willLoseFirstResponder:function(){Klb.lendingController.set("currentScene",null)
}});Klb.START=SC.Responder.create({didBecomeFirstResponder:function(){var a=Klb.getPath("prehomePage.mainView");
if(Klb.mainController.checkPrehomeBypassCookie()){a=Klb.getPath("lendingPage.mainView")
}Klb.mainController.set("currentSection",a);Klb.makeFirstResponder(Klb.READY_LOADING)
},willLoseFirstResponder:function(){_gaq.push(["_trackEvent","navigation","beginVisit"]);
Klb.mainController.set("shouldTrackNavigation",true)}});var Typekit=(function(ab){var au={safari:"b",chromewin:"b",chrome:"a",ff35:"b",ff36:"d",ie:"c"};
var ac={ua:function(d){if(d){for(var c=0;c<this.enabledMatchers.length;c++){var a=this.enabledMatchers[c][1];
if(a.call(null,d)){var b=this.enabledMatchers[c][0];return{fonts:(!!b),format:b}}}return{fonts:false}
}},enabledMatchers:[],enable:function(b){this.enabledMatchers=[];for(var d=0;d<this.matchers.length;
d++){var a=this.matchers[d];for(var c=0;c<b.length;c++){if(a[0]==b[c]){this.enabledMatchers.push([a[1],a[2]]);
break}}}},matchers:[],add:function(c,b,a){this.matchers.push([b,c,a])}};var Q={};
ac.add(au.ff36,"ff36",function(c){var d=c.match(/rv:(\d+\.\d+)\.(\d+).*Gecko\//);
if(d){var a=parseFloat(d[1]);var b=parseInt(d[2]);if(a>=1.9&&b>1){return true}else{return false
}}});ac.add(au.ff35,"ff35",function(b){var a=b.match(/rv:1\.9\.1.*Gecko\//);if(b.match(/rv:1.9.1b[123]{1}/)){return false
}if(a){return true}else{return false}});Q.isMobileOSX=function(b){var a=b.match(/OS.(\d)_(\d)/);
if(a){if(a[1]=="3"){return parseInt(a[2])>0}else{if(parseInt(a[1])>3){return true
}}}return false};ac.add(au.iphone,"iphone",function(a){if(!a.match(/(iPhone|iPod)/)){return false
}return Q.isMobileOSX(a)});ac.add(au.ipad,"ipad",function(a){if(!a.match(/iPad/)){return false
}return Q.isMobileOSX(a)});Q.isSafari=function(b){if(b.match(/Chrome/)){return false
}if(b.match(/(iPhone|iPad|iPod)/)){return false}if(b.match(/webOS/)){return false
}if(b.match(/Android/)){return false}var c=b.match(/AppleWebKit\/(\d+\.\d+)/);if(c){var a=c[1];
return parseFloat(a)>=525.13}};Q.isChrome=function(d){var f;if(d.match(/Chrome/)){f=d.match(/Chrome\/(\d+\.\d+)\.(\d+)\.(\d+)/);
if(f){var a=parseFloat(f[1]);var c=parseInt(f[2]);var b=parseInt(f[3]);if(a>4){return true
}else{if(a==4&&c>249){return true}else{if(a==4&&c==249&&b>=4){return true}else{return false
}}}}}};ac.add(au.chromewin,"chromewin",function(a){if(!a.match(/Windows/)){return false
}return Q.isChrome(a)});ac.add(au.safari,"safari",Q.isSafari);ac.add(au.chrome,"chrome",Q.isChrome);
ac.add(au.ie,"ie",function(b){var c=b.match(/MSIE\s(\d+\.\d+)/);if(c){var a=c[1];
return parseFloat(a)>=6}});var ar=(function(){var g=document.defaultView||{};var d=false;
var b=false;var c=[];function a(){if(!d){d=true;for(var h=0;h<c.length;h++){c[h].call(null)
}}}function f(){if(b){return}b=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);
a()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);
a()}});if(document.documentElement.doScroll&&window==window.top){(function(){if(d){return
}try{document.documentElement.doScroll("left")}catch(j){setTimeout(arguments.callee,0);
return}a()})()}}}if(window.onload){var h=window.onload;window.onload=function(){h();
a()}}else{window.onload=a}}return{ready:function(h){f();if(d){h()}else{c.push(h)}},insertInto:function(j,h){var k=document.getElementsByTagName(j)[0];
if(k&&k.lastChild){k.insertBefore(h,k.lastChild);return true}else{return false}},createStyleElement:function(j){var h=document.createElement("style");
h.setAttribute("type","text/css");if(h.styleSheet){h.styleSheet.cssText=j}else{h.appendChild(document.createTextNode(j))
}return h},createCssLink:function(h){var j=document.createElement("link");j.setAttribute("rel","stylesheet");
j.setAttribute("type","text/css");j.setAttribute("href",h);return j},css:function(j,h){if(g.getComputedStyle){var k=g.getComputedStyle(j,null);
return k?k.getPropertyValue(h):null}else{if(j.currentStyle){return j.currentStyle[h]
}}},loadScript:function(h,j){var k=document.getElementsByTagName("head")[0];if(k){var l=document.createElement("script");
l.src=h;var m=false;l.onload=l.onreadystatechange=function(){if(!m&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){m=true;
if(j){j()}l.onload=l.onreadystatechange=null;if(l.parentNode.tagName=="HEAD"){k.removeChild(l)
}}};k.appendChild(l)}},appendClassName:function(h,k){var j=" "+h.className+" ";if(!j.match("\\s+"+k+"\\s+")){h.className=h.className+" "+k
}},removeClassName:function(h,l){var j=" "+h.className+" ";if(j.match("\\s+"+l+"\\s+")){var m=j.split(/\s+/);
var k=0;var n=[];for(k=0;k<m.length;k++){if(m[k]!=l&&m[k]!=""){n.push(m[k])}}h.className=n.join(" ")
}}}})();function Z(){return"/k"}function aq(){return"http://"}var R={};var aj={};
var Y={};var V=[];var aw={};var ag={};var al=[];if(window.tkKitsTracked==undefined){window.tkKitsTracked=0
}function ao(b){for(var a in b){aj[a]=b[a]}av("setOptions",aj)}function ax(b){ac.enable(b.supportedBrowsers);
var c=aj.ua;if(c){var a=ac.ua(c);aj.fonts=a.fonts;aj.compatibility=a.format;av("detectUA",aj.fonts,aj.compatibility)
}}function av(a){if(aj.debug&&window.console&&window.console.log){window.console.log(arguments)
}}function P(a,b){if(!aw[a]){aw[a]=[]}if(b){aw[a].push(b);av("addCallback",a,aw[a].length,b)
}}function ai(a){var b=document.getElementsByTagName("html")[0];if(b){ar.appendClassName(b,a)
}}function S(a){var b=document.getElementsByTagName("html")[0];if(b){ar.removeClassName(b,a)
}}function aa(b){var a=new Date().getTime();P(b,function(c){O(b).time=(new Date().getTime())-a
})}function W(a,b){av("executeCallbacks",a);var c=aw[a];if(c){for(var d=0;d<c.length;
d++){c[d](b)}}}function ay(f,b,c,d,g,a,h){av("addDataSet",f,b,c,d,g,a,h);V.push(f);
Y[f]={kitId:f,securityToken:b,supportedBrowsers:c,badgeOptions:d,kitOptions:g,fontData:a,selectorData:h};
Y[f]["callbackData"]=a;Y[f]["callbackData"]["kitId"]=f}function af(a,b){if(a){av("loading kit",a);
T(Y[a],b)}else{for(var c=0;c<V.length;c++){var a=V[c];var d=Y[a];av("loading kit",a);
T(d,b)}}}function T(a,b){ax(a);if(a&&a.kitId){av("loadKit",a);al.push(a);an(a.selectorData);
if(b["kit-initialized"]){b["kit-initialized"](a.callbackData)}if(aj.fonts){aa(a.kitId);
S("wf-inactive");ai("wf-loading");if(b.loading){b.loading(a.callbackData)}P(a.kitId,function(){S("wf-loading");
ai("wf-active");if(b.active){b.active(a.callbackData)}});N(a.kitId,a.securityToken,aj.compatibility)
}else{S("wf-loading");ai("wf-inactive");if(b.inactive){b.inactive(a.callbackData)
}}if(b["kit-loaded"]){b["kit-loaded"](a.callbackData)}}else{av("loadKit","data is invalid",a)
}}function an(h){if(h&&h.selectors){var c=h.selectors;var f=[];for(var g=0;g<c.length;
g++){var k=c[g];if(k){var a=k.selectors;var d=k.declarations;if(a&&d){var b=[];for(var j=0;
j<d.length;j++){b.push(d[j]["name"]+":"+d[j]["value"]+";")}f.push(a+"{"+b.join("")+"}")
}}}ar.insertInto("head",ar.createStyleElement(f.join("")))}}function N(b,a,d){var c=aq()+aj.host+Z()+"/"+b+"-"+d+".css?"+a;
av("loadKitStyle",c);if(ar.insertInto("head",ar.createCssLink(c))){am(b)}}function am(c){av("waitForStyleLoaded",c);
var g=function(h){var j=document.createElement("span");j.setAttribute("class","wf-font-watcher");
j.setAttribute("style","position:absolute;left:-999px;font-size:200px;font-family:"+h+",NONE");
j.innerHTML="Mm";return j};var b=function(l,n){var m=g("NONE");var h=g(l);ar.insertInto("html",m);
ar.insertInto("html",h);var j=m.offsetWidth;var k=function(){if(h.offsetWidth!=j){n()
}else{setTimeout(k,aj.styleLoadIntervalTime)}};k()};var a=Y[c].fontData.fonts;if(a&&a.length>0){var d=a.length;
for(var f=0;f<a.length;f++){b(a[f].family_name,function(){if(--d==0){if(Y[c]){W(c,Y[c].callbackData)
}}})}}else{W(c,Y[c].callbackData)}}function O(b){var a=ag[b];if(!a){a=ag[b]={time:0}
}return a}function at(b,a){R[b]=a}function ad(){if(!aj.fonts){return}for(var c=0;
c<al.length;c++){var d=al[c];var a=d.badgeOptions;if(a&&a.enabled){var b=R["default"];
if(b){var f=b(d.kitId,a,aj);if(f){f.setAttribute("id","typekit-badge-"+d.kitId);ar.insertInto("body",f)
}}}}}function ak(){if(window.tkKitsTracked>0){return}for(var d=0;d<al.length;d++){var f=al[d];
var c=f.kitOptions;if(c&&c.ga){if(window._gat){ae()}else{var a=aq();var b=a.match(/https/)?"ssl":"www";
ar.loadScript(a+b+".google-analytics.com/ga.js",ae)}break}}}function ae(){try{window._gat._getTracker("UA-8850781-3")._trackPageview()
}catch(a){}window.tkKitsTracked++}ar.ready(ad);ar.ready(ak);ao({host:"",root:"",assetHost:"",assetRoot:"",colophonHost:"typekit.com",ua:navigator.userAgent,styleLoadIntervalTime:50,bodyWaitIntervalTime:20,debug:false});
function X(){return{addDataSet:ay,clearDataSets:function(){V=[];Y={};al=[]},insertBadges:ad,optionallyCallGoogleAnalytics:ak}
}function ap(){return{configure:ao,load:function(a){var b,c;if(typeof arguments[0]=="string"){b=arguments[0];
c=arguments[1]}else{b=null;c=arguments[0]}af(b,c||{})},stats:O}}at("default",function(d,h,a){function b(o,p){var q=0,n=0;
if(document.documentElement&&(document.documentElement[o]||document.documentElement[p])){q=document.documentElement[o];
n=document.documentElement[p]}else{if(document.body&&(document.body[o]||document.body[p])){q=document.body[o];
n=document.body[p]}}return[q,n]}function j(){return b("clientWidth","clientHeight")
}function l(){return b("scrollLeft","scrollTop")}function k(n,o,p){if(n.attachEvent){n["e"+o+p]=p;
n[o+p]=function(){n["e"+o+p](window.event)};n.attachEvent("on"+o,n[o+p])}else{n.addEventListener(o,p,false)
}}var f=document.createElement("img");var m=62;var c=25;f.setAttribute("width",m);
f.setAttribute("height",c);f.setAttribute("src",aq()+a.assetHost+a.assetRoot+"/badges/default.gif");
f.setAttribute("class","typekit-badge");f.setAttribute("alt","Fonts by Typekit");
f.setAttribute("title","Information about the fonts used on this site");f.style.position="fixed";
f.style.zIndex=2000000000;f.style.right=0;f.style.bottom=0;f.style.cursor="pointer";
f.style.border=0;f.style.content="normal";f.style.display="inline";f.style["float"]="none";
f.style.height=c+"px";f.style.left="auto";f.style.margin=0;f.style.maxHeight=c+"px";
f.style.maxWidth=m+"px";f.style.minHeight=c+"px";f.style.minWidth=m+"px";f.style.orphans=2;
f.style.outline="none";f.style.overflow="visible";f.style.padding=0;f.style.pageBreakAfter="auto";
f.style.pageBreakBefore="auto";f.style.pageBreakInside="auto";f.style.tableLayout="auto";
f.style.textIndent=0;f.style.top="auto";f.style.unicodeBidi="normal";f.style.verticalAlign="baseline";
f.style.visibility="visible";f.style.widows=2;f.style.width="65px";k(f,"click",function(){document.location.href="http://"+a.colophonHost+"/colophons/"+d
});if(a.ua.match(/MSIE\s(\d+\.\d+)/)){f.style.position="absolute";function g(){f.style.bottom="auto";
f.style.right="auto";f.style.top=(l()[1]+j()[1]-c)+"px";f.style.left=(l()[0]+j()[0]-3-m)+"px"
}ar.ready(g);k(window,"scroll",g);k(window,"resize",g)}return f});ao({host:"use.typekit.com",root:"/",assetHost:"use.typekit.com",assetRoot:"/"});
ay("qek5aly","3bb2a6e53c9684ffdc9a9bf6195b2a62173cbd03ca8deaa4c4329a86dd530b375ddd9884ba5df2f08f387cca0b14acf3004aabb7039a5fdb0006ed8cac7e8554f09eb6bf6ee8824d9d85061a67601ff7e9c01893e8c0536c44508766cf8310b9c1a6dcb3c30fcb",["chrome","chromewin","ff35","ff36","ie","safari"],{enabled:true},{ga:false},{fonts:[{family_name:'"museo-slab-1","museo-slab-2"',variations:{a:["n1","i1","n3","i3","n5","i5","n7","i7","n8","i8","n9","i9"],b:["n1","i1","n3","i3","n5","i5","n7","i7","n8","i8","n9","i9"],c:["n5"],d:["n1","i1","n3","i3","n5","i5","n7","i7","n8","i8","n9","i9"],f:["n1","i1","n3","i3","n5","i5","n7","i7","n8","i8","n9","i9"]}}]},{selectors:[{selectors:".kef-branded-font,.tk-museo-slab",declarations:[{value:'"museo-slab-1","museo-slab-2",serif',name:"font-family"}]}]});
if(window.__webfonttypekitmodule__){for(var U=0;U<V.length;U++){var ah=V[U];var az=window.__webfonttypekitmodule__[ah];
if(az){az(function(a,k,b){ao(k.configure||{});af(ah,{});var d=Y[ah];var h=[];var c={};
for(var g=0;g<d.fontData.fonts.length;g++){var j=d.fontData.fonts[g];var f=j.family_name;
h.push(f);c[f]=j.variations[aj.compatibility]}var l=aj.fonts;b(l,h,c)})}}}return ap()
})();Klb.DisplayTextView=SC.LabelView.extend({isTextSelectable:YES,escapeHTML:NO,textAlign:null,fontWeight:null,_TEMPORARY_CLASS_HASH:{},render:function(d,a){var m=this.get("displayValue"),l=this.get("icon"),h=this.get("hintValue"),g,f,n,j=false,c=false;
if(l){var b=(l.indexOf("/")>=0)?l:SC.BLANK_IMAGE_URL,k=(b===l)?"":l;l='<img src="'+b+'" alt="" class="icon '+k+'" />';
if(l!==this._iconCache){this._iconCache=l;j=true}}if(h&&(!m||m==="")){n='<span class="sc-hint">'+h+"</span>"
}else{n=m}if(n!==this._textCache){this._textCache=n;c=true}if(a||c||j){d.push(l,n)
}f={};if(this.get("textAlign")){f["text-align"]=this.get("textAlign")}if(this.get("fontWeight")){f["font-weight"]=this.get("fontWeight")
}if(this.get("isEditing")){f.opacity=0}d.addStyle(f);g=this._TEMPORARY_CLASS_HASH;
g.icon=!!this.get("icon");d.setClass(g)}});Klb.DisplayTextView.classNames=["sc-view","sc-display-text-view"];
Klb.FilterItemView=SC.ListItemView.extend({classNames:["klb-filter-item-view"],render:function(c,a){var f=this.get("content"),k=this.displayDelegate,b=this.get("outlineLevel"),d=this.get("outlineIndent"),j,h,g;
if(b<=0){c.addClass("top-level");if(!f.get("isEnabled")){c.setClass("disabled")}}g=c.begin("div").addClass("sc-outline");
if(b>=0&&d>0){g.addStyle("left",d*(b))}j=this.getDelegateProperty("contentValueKey",k);
h=(j&&f)?(f.get?f.get(j):f[j]):f;if(h&&SC.typeOf(h)!==SC.T_STRING){h=h.toString()
}if(this.get("escapeHTML")){h=SC.RenderContext.escapeHTML(h)}this.renderLabel(g,h);
j=this.getDelegateProperty("listItemActionProperty",k);h=(j&&f)?(f.get?f.get(j):f[j]):null;
if(h){this.renderAction(g,h);c.addClass("has-action")}if(!f.get("isEnabled")){c.addClass("disabled")
}c=g.end()}});Klb.LoanListingView=SC.ListItemView.extend({childViews:"lendButton".w(),lendButton:SC.ButtonView.design({layout:{bottom:15,height:20,right:10,width:100},title:"_Lend $25".loc(),action:"lendNow",target:"Klb.searchController",classNames:"picker-button lendButton".w(),controlSize:SC.SMALL_CONTROL_SIZE,titleMinWidth:40}),render:function(c,b){var j=this.get("content"),o,g,l,m,h,n,f,d,a;
console.log("RENDER for "+j.get("id"));d=j.get("image");if(!d){d={id:0,template_id:1}
}if(j.get("use_intl")&&j.get("use_intl").texts.hasOwnProperty("__INTL__".loc())){a=j.get("use_intl").texts["__INTL__".loc()]
}else{a=j.get("use")}if(b===YES){this.renderChildViews(c,b);c.begin("div").addClass("sc-view").addStyle({top:10,left:10,width:100,height:100,backgroundColor:"#dddddd",backgroundImage:"url(http://www.kiva.org/img/w200h200/"+d.id+".jpg)","-moz-background-size":"cover","-webkit-background-size":"cover","-moz-border-radius":6,"-webkit-border-radius":6}).end();
c.begin("div").addClass("sc-view").addStyle({fontSize:"18px",left:120,top:10,height:26,fontWeight:"bold"}).push(j.get("name")).end();
c.begin("div").addClass("sc-view").addStyle({left:120,top:34,height:18}).push(("_"+j.get("activity")).loc()).end();
c.begin("div").addClass("sc-view").addStyle({left:120,top:60,height:18,right:180}).push('<span style="font-weight: bold;">',"_Loan_Use".loc(),": </span>",a).end();
c.begin("div").addClass("sc-view").addStyle({left:120,width:330,top:78,height:24}).begin("div").addStyle({background:"url("+j.get("country").iconBySize(24)+") no-repeat"}).push('<div style="padding:5px 0 3px 30px">',j.get("country").get("name"),"</div>").end().end();
l=c.begin("div").addClass("sc-view").addStyle({right:180,width:160+(17*5),top:83,height:18}).begin("div").addStyle({right:5*17+10,width:150,top:5,height:18,textAlign:"right",fontWeight:"bold"}).push("_Rating".loc()).end();
g=j.get("partner").get("rating");m=Math.floor(g);halfStar=((g-m)*10)>5.4;h=5-m;if(halfStar){h--
}for(f=0;f<h;f++){l.begin("div").addClass("sc-view").addStyle({right:f*17,width:17,bottom:0,height:17,border:"0px",backgroundImage:"url("+Klb.imageByName("images/ratingStar_empty.png")+")"}).end()
}if(halfStar){l.begin("div").addClass("sc-view").addStyle({right:h*17,width:17,bottom:0,height:17,border:"0px",backgroundImage:"url("+Klb.imageByName("images/ratingStar_half.png")+")"}).end();
h++}for(f=0;f<m;f++){l.begin("div").addClass("sc-view").addStyle({right:((h+f)*17),width:17,bottom:0,height:17,border:"0px",backgroundImage:"url("+Klb.imageByName("images/ratingStar_full.png")+")"}).end()
}l.end();c.begin("div").addClass("sc-view").addStyle({right:10,top:10,height:34,width:150,fontSize:"24px",textAlign:"right"}).push("$",j.get("remainingAmount")).end();
c.begin("div").addClass("sc-view").addStyle({right:10,top:43,height:18,width:150,textAlign:"right"}).push("_Needed_Out_Of".loc()," ","$",j.get("loanAmount")).end();
o=j.get("fundedPercentage")+"%";c.begin("div").addClass("sc-view").addStyle({right:10,top:63,height:6,width:75,border:"1px solid #555",backgroundColor:"#ffffff"}).begin("div").addStyle({position:"relative",width:o,height:"100%",background:"rgb(98,133,37)"}).end().end()
}else{}}});Klb.RegSidebarView=SC.View.extend({classNames:["regSidebar"],backgroundColor:"white",render:function(a,c){var b=this.get("content");
a.begin("div").addStyle({top:10,height:30,left:10,right:10}).addClass("sc-view").addClass("regSidebarHeader").push("_Help".loc()).end();
a.begin("div").addStyle({top:50,height:32,left:10,right:10}).addClass("sc-view").addClass("regSidebarCaption").push("_Use of the english site".loc()+":").end();
a.begin("ol").addStyle({top:85,left:10,right:10}).begin("li").push("_Enter your first name".loc()).end().begin("li").push("_Enter your last name".loc()).end().begin("li").push("_Enter your email address".loc()).end().begin("li").push("_Re-enter your email address".loc()).end().begin("li").push("_Choose a password between 6 and 12 characters".loc()).end().begin("li").push("_Confirm the password you chose".loc()).end().begin("li").push("_If your friend recommended you to loan on Kiva, please enter their email address so that Kiva can thank them!".loc()).end().end()
}});Klb.ScrollView=SC.ScrollView.extend({mouseWheel:function(b){var a=1;if(SC.browser.isSafari){a=0.125
}else{if(SC.browser.isIE){a=0.4}}this._scroll_wheelDeltaX+=(b.wheelDeltaX*a);this._scroll_wheelDeltaY+=(b.wheelDeltaY*a);
this.invokeLater(this._scroll_mouseWheel,10);return this.get("canScrollHorizontal")||this.get("canScrollVertical")
}});sc_require("core");SCUI={};SCUI.SimpleButton={target:null,action:null,hasState:NO,hasHover:NO,inState:NO,_hover:NO,stateClass:"state",hoverClass:"hover",activeClass:"active",_isMouseDown:NO,displayProperties:["inState"],mouseDown:function(a){if(!this.get("isEnabledInPane")){return YES
}this._isMouseDown=YES;this.displayDidChange();return YES},mouseExited:function(a){if(this.get("hasHover")){this._hover=NO;
this.displayDidChange()}return YES},mouseEntered:function(a){if(this.get("hasHover")){this._hover=YES;
this.displayDidChange()}return YES},mouseUp:function(a){if(!this.get("isEnabledInPane")){return YES
}this._isMouseDown=false;var c=this.get("target")||null;var b=this.get("action");
if(this._hasLegacyActionHandler()){this._triggerLegacyActionHandler(a)}else{this.getPath("pane.rootResponder").sendAction(b,c,this,this.get("pane"))
}if(this.get("hasState")){this.set("inState",!this.get("inState"))}this.displayDidChange();
return YES},renderMixin:function(c,g){if(this.get("hasHover")){var d=this.get("hoverClass");
c.setClass(d,this._hover&&!this._isMouseDown)}if(this.get("hasState")){var f=this.get("stateClass");
c.setClass(f,this.inState)}var b=this.get("activeClass");c.setClass(b,this._isMouseDown);
var a=this.get("toolTip");if(SC.typeOf(a)===SC.T_STRING){if(this.get("localize")){a=a.loc()
}c.attr("title",a);c.attr("alt",a)}},_hasLegacyActionHandler:function(){var a=this.get("action");
if(a&&(SC.typeOf(a)===SC.T_FUNCTION)){return true}if(a&&(SC.typeOf(a)===SC.T_STRING)&&(a.indexOf(".")!==-1)){return true
}return false},_triggerLegacyActionHandler:function(evt){var target=this.get("target");
var action=this.get("action");if(target===undefined&&SC.typeOf(action)===SC.T_FUNCTION){this.action(evt)
}else{if(target!==undefined&&SC.typeOf(action)===SC.T_FUNCTION){action.apply(target,[evt])
}}if(SC.typeOf(action)===SC.T_STRING){eval("this.action = function(e) { return "+action+"(this, e); };");
this.action(evt)}}};Klb.StaticContentView=SC.View.extend(SC.StaticLayout,{classNames:["sc-static-content-view"],displayProperties:["content"],content:null,contentLayoutDidChange:function(){this.notifyPropertyChange("frame")
},useStaticLayout:YES,frame:function(){var a=this.get("layer"),b;if(!a){return{x:0,y:0,width:0,height:0}
}if(a.getBoundingClientRect){b=a.getBoundingClientRect();return{x:0,y:0,width:b.width,height:b.height}
}else{return{x:0,y:0,width:a.clientWidth,height:a.clientHeight}}}.property("content").cacheable(),parentViewDidResize:function(){this.contentLayoutDidChange()
},didCreateLayer:function(){this.contentLayoutDidChange()},render:function(a,c){var b=this.get("content");
if(b){a.push(b||"")}}});Klb.WebView=SC.WebView.extend({didCreateLayer:function(){var a=this.$("iframe");
SC.Event.add(a,"load",this,this.iframeDidLoad)},iframeDidLoad:function(){}});sc_require("views/static_content");
sc_require("views/display_text");sc_require("views/scroll");Klb.aboutPage=SC.Page.design({mainView:Klb.ScrollView.design({hasHorizontalScroller:NO,layout:{top:0,bottom:0,left:0,right:0},contentView:SC.View.design({layout:{left:0,right:0,top:0,height:2500},childViews:"pageView".w(),classNames:"contentBackdrop",pageView:SC.View.design({layout:{top:0,bottom:50,centerX:0,width:840},childViews:"pageContent".w(),classNames:"contentPage aboutSection".w(),pageContent:SC.View.design({layout:{top:20,bottom:20,left:20,right:20},childViews:"mfHow sep1 kivaWhat sep2 kefWhy sep3 contacts sep4 partners".w(),mfHow:SC.View.design({layout:{top:20,height:640,left:20,right:20},childViews:"title photo content".w(),title:Klb.DisplayTextView.design({layout:{top:0,height:30,left:0,right:0},value:"_How Microfinance Began".loc(),classNames:"aboutSectionHeader"}),photo:SC.ImageView.design({layout:{top:20,height:507,right:0,width:400},value:"/static/klb/en/b4869f7b9eeffc5329d81aacf274ab3027e23f3d/resources/images/muhammad_yunus.jpg"}),content:SC.View.design({layout:{top:40,left:0,right:0},childViews:"detailText caption1 caption2".w(),detailText:SC.View.design({layout:{top:0,left:0,width:330},childViews:"paraText".w(),paraText:Klb.DisplayTextView.design({layout:{top:0,left:0,right:0},value:"<div>"+"*mfHow_para_1".loc()+"</div><div>&nbsp;</div><div>"+"*mfHow_para_2".loc()+"</div><div>&nbsp;</div><div>"+"*mfHow_para_3".loc()+"</div><div>&nbsp;</div><div>"+"*mfHow_para_4".loc()+"</div>"})}),caption1:Klb.DisplayTextView.design({layout:{top:395,height:100,left:0,width:330},classNames:"caption",value:"*about_captionYunus1".loc()}),caption2:Klb.DisplayTextView.design({layout:{top:480,height:80,left:0,width:330},classNames:"caption",value:"*about_captionYunus2".loc()})})}),sep1:SC.View.design({layout:{top:590,height:25,centerX:0,width:680},classNames:"separator"}),kivaWhat:SC.View.design({layout:{top:650,left:0,right:0},childViews:"title content".w(),title:Klb.DisplayTextView.design({layout:{top:0,height:30,left:20,right:20},value:"_What Is Kiva?".loc(),classNames:"aboutSectionHeader"}),content:SC.View.design({layout:{top:40,left:0,right:0},childViews:"infographic detailText caption graphicBox".w(),infographic:SC.View.design({layout:{top:0,height:480,centerX:0,width:785},childViews:"diagram borrowerStory".w(),diagram:SC.ImageView.design({layout:{top:0,height:385,centerX:0,width:785},value:"/static/klb/en/b4869f7b9eeffc5329d81aacf274ab3027e23f3d/images/prehome-illustration.jpg"}),borrowerStory:SC.View.design({layout:{top:385,height:100,centerX:0,width:765},childViews:"step1 step2 step3".w(),step1:Klb.DisplayTextView.design({layout:{top:10,left:15,width:225},value:"_An entrepreneur needs a loan to grow her business".loc(),textAlign:SC.ALIGN_CENTER}),step2:Klb.DisplayTextView.design({layout:{top:10,centerX:0,width:225},value:"_Kiva works with local partners who specialize in microcredit".loc(),textAlign:SC.ALIGN_CENTER}),step3:Klb.DisplayTextView.design({layout:{top:10,right:10,width:225},value:"_People from all over the world become lenders, helping in big ways with small amounts of money".loc(),textAlign:SC.ALIGN_CENTER})})}),caption:Klb.DisplayTextView.design({layout:{top:500,height:80,left:20,width:400},classNames:"caption",value:"_Kiva connects people through lending to alleviate poverty.".loc()}),detailText:SC.View.design({layout:{top:575,left:20,width:400},childViews:"paraText".w(),paraText:Klb.DisplayTextView.design({layout:{top:0},value:"<div>"+"*kivaWhat_para_1".loc()+"</div><div>&nbsp;</div><div>"+"*kivaWhat_para_2".loc()+"</div><div>&nbsp;</div><div>"+"*kivaWhat_para_3".loc()+"</div><div>&nbsp;</div><div>"+"*kivaWhat_para_4".loc()+"</div>"})}),graphicBox:SC.View.design({layout:{top:520,right:20,width:350},childViews:"logo data1 data2 data3 data4".w(),logo:SC.ImageView.design({layout:{top:0,height:90,centerX:0,width:170},value:"http://l3-1.kiva.org/r23214/images/logoLeafy3.gif"}),data1:SC.View.design({layout:{top:110,height:100,left:30,width:175},childViews:"figure label".w(),classNames:"dataFigureHolder",figure:Klb.DisplayTextView.design({layout:{top:0,height:50},classNames:"dataFigure",value:"56",textAlign:SC.ALIGN_CENTER}),label:Klb.DisplayTextView.design({layout:{top:40,height:24},classNames:"dataFigureLabel",value:"_countries".loc(),textAlign:SC.ALIGN_CENTER})}),data2:SC.View.design({layout:{top:110,height:100,right:30,width:175},childViews:"figure label".w(),classNames:"dataFigureHolder",figure:Klb.DisplayTextView.design({layout:{top:0,height:50},classNames:"dataFigure",value:"124",textAlign:SC.ALIGN_CENTER}),label:Klb.DisplayTextView.design({layout:{top:40,height:24},classNames:"dataFigureLabel",value:"_partners".loc(),textAlign:SC.ALIGN_CENTER})}),data3:SC.View.design({layout:{top:190,height:100,centerX:0,width:350},childViews:"figure label".w(),classNames:"dataFigureHolder",figure:Klb.DisplayTextView.design({layout:{top:0,height:50},classNames:"dataFigure",value:"462,826",textAlign:SC.ALIGN_CENTER}),label:Klb.DisplayTextView.design({layout:{top:40,height:24},classNames:"dataFigureLabel",value:"_entrepreneurs helped".loc(),textAlign:SC.ALIGN_CENTER})}),data4:SC.View.design({layout:{top:270,height:100,centerX:0,width:350},childViews:"figure label".w(),classNames:"dataFigureHolder",figure:Klb.DisplayTextView.design({layout:{top:0,height:50},classNames:"dataFigure",value:"$178,320,635",textAlign:SC.ALIGN_CENTER}),label:Klb.DisplayTextView.design({layout:{top:40,height:24},classNames:"dataFigureLabel",value:"_in loans".loc(),textAlign:SC.ALIGN_CENTER})})})})}),sep2:SC.View.design({layout:{top:1570,height:25,centerX:0,width:680},classNames:"separator"}),kefWhy:SC.View.design({layout:{top:1620,left:20,right:20},childViews:"title content".w(),title:Klb.DisplayTextView.design({layout:{top:0,height:30,left:0,right:0},value:"_Why Kiva en Français?".loc(),classNames:"aboutSectionHeader"}),content:SC.View.design({layout:{top:30,height:250,left:0,right:0},childViews:"detailText logo".w(),detailText:SC.View.design({layout:{top:0,bottom:0,left:300,right:0},childViews:"paraText".w(),paraText:Klb.DisplayTextView.design({layout:{top:0},value:"<div>"+"*kefWhy_para_1".loc()+"</div><div>&nbsp;</div><div>"+"*kefWhy_para_2".loc()+"</div><div>&nbsp;</div><div>"+"*kefWhy_para_3".loc()+"</div>"})}),logo:SC.ImageView.design({layout:{centerY:-30,height:250*0.4,left:30,width:500*0.4},value:"/static/klb/en/b4869f7b9eeffc5329d81aacf274ab3027e23f3d/resources/images/kef_logo_500.png"})})}),sep3:SC.View.design({layout:{top:1900,height:25,centerX:0,width:680},classNames:"separator"}),contacts:SC.View.design({layout:{top:1950,left:20,right:20},childViews:"title email twitter".w(),title:Klb.DisplayTextView.design({layout:{top:0,height:30,left:0,right:0},value:"_Contact".loc(),classNames:"aboutSectionHeader"}),email:Klb.DisplayTextView.design({layout:{top:40,height:30,left:10,right:0},classNames:"aboutContactLink",value:'Email: <a href="mailto:info@kivaenfrancais.org">info@kivaenfrancais.org</a>'.loc()}),twitter:Klb.DisplayTextView.design({layout:{top:40,height:30,left:300,right:0},classNames:"aboutContactLink",value:'Twitter: <a href="http://twitter.com/kivaenfrancais" target="_blank">@kivaenfrancais</a>'.loc()})}),sep4:SC.View.design({layout:{top:2020,height:25,centerX:0,width:680},classNames:"separator"}),partners:SC.View.design({layout:{top:2070,left:20,right:20},childViews:"title logo1 logo2 logo3 logo4 logo5".w(),title:Klb.DisplayTextView.design({layout:{top:0,height:30,left:0,right:0},value:"_Our Partners".loc(),classNames:"aboutSectionHeader"}),logo1:SC.ImageView.design({layout:{top:50,height:53,centerX:0,width:449},value:"/static/klb/en/b4869f7b9eeffc5329d81aacf274ab3027e23f3d/resources/images/partner_danoneCommunities.png"}),logo2:SC.ImageView.design({layout:{top:115,height:81,left:120,width:183},value:"/static/klb/en/b4869f7b9eeffc5329d81aacf274ab3027e23f3d/resources/images/partner_laser.png"}),logo3:SC.ImageView.design({layout:{top:120,height:70,right:120,width:224},value:"/static/klb/en/b4869f7b9eeffc5329d81aacf274ab3027e23f3d/resources/images/partner_greenwichConsulting.png"}),logo4:SC.ImageView.design({layout:{top:227,height:52,left:150,width:181},value:"/static/klb/en/b4869f7b9eeffc5329d81aacf274ab3027e23f3d/resources/images/partner_eyeka.png"}),logo5:SC.ImageView.design({layout:{top:210,height:87,right:200,width:111},value:"/static/klb/en/b4869f7b9eeffc5329d81aacf274ab3027e23f3d/resources/images/partner_mtv.png"})})})})})})});
require("views/static_content");Klb.demoPage=SC.Page.design({mainView:SC.View.design({layout:{top:0,bottom:0,left:0,right:0},childViews:"displayArea".w(),displayArea:SC.View.design({layout:{top:10,bottom:0,centerX:0,width:800},childViews:"videoView".w(),videoView:Klb.StaticContentView.design({content:"<p><p>"+"_Demos coming soon… for now, enjoy this introduction to Kiva through the story of Pedro, a farmer in Boliva:".loc()+'</p><div class="klb-static-content"><center><h2>'+"_The Pedro Story".loc()+'</h2><p><object width="601" height="338" style="border:1px solid gray;"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=12893084&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=85B100&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=12893084&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=85B100&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="601" height="338"></embed></object></center></div>'})})})});
sc_require("views/loan_listing");sc_require("views/filter_item");sc_require("views/scroll");
sc_require("controllers/loans");sc_require("controllers/lending");Klb.lendingPage=SC.Page.design({mainView:SC.View.design({layout:{top:0,bottom:0,left:0,right:0},childViews:"sidebarView resultsView".w(),defaultResponder:Klb,bottombarView:SC.View.design({layout:{bottom:0,left:0,right:0,height:40},classNames:"klb-chrome".w(),childViews:"checkoutButton".w(),checkoutButton:SC.ButtonView.design({layout:{right:10,top:10,width:80,height:24},title:"_Checkout".loc(),action:"checkout",isEnabledBinding:"Klb.loansController.canCheckout"})}),sidebarView:SC.SplitView.design({layout:{top:0,left:0,bottom:0,width:300},backgroundColor:"#DDDDDD",layoutDirection:SC.LAYOUT_VERTICAL,defaultThickness:230,autoresizeBehavior:SC.RESIZE_TOP_LEFT,canCollapseViews:YES,classNames:"lendingSidebar",topLeftMinThickness:200,topLeftMaxThickness:800,topLeftView:SC.ScrollView.design({isVisible:NO,hasHorizontalScroller:NO,classNames:"no-border",contentView:SC.SourceListView.design({contentBinding:"Klb.filtersController.arrangedObjects",selectionBinding:"Klb.filtersController.selection",contentValueKey:"title",actOnSelect:YES,action:"selectSidebarItem",target:"Klb.searchController",selectionDelegate:Klb.filtersController,exampleView:Klb.FilterItemView})}),dividerView:SC.SplitDividerView,bottomRightView:SC.View.design({childViews:"filterTitle genderLabel femaleCheckbox maleCheckbox groupCheckbox locationLabel locationContent locationButton sectorLabel sectorContent sectorButton".w(),filterTitle:SC.LabelView.design({layout:{left:5,top:5,right:5,height:32},value:"_Filter Options".loc(),controlSize:SC.LARGE_CONTROL_SIZE,classNames:"filter-header"}),searchField:SC.TextFieldView.design({layout:{left:10,top:37,right:10,height:22},hint:"_Search".loc(),valueBinding:"Klb.searchController.currentQueryString",isEnabled:NO}),genderLabel:SC.LabelView.design({layout:{left:5,top:37,right:5,height:22},value:"_Borrowers".loc(),controlSize:SC.LARGE_CONTROL_SIZE,classNames:"filter-subheader"}),femaleCheckbox:SC.CheckboxView.design({layout:{left:10,top:37+25,width:80,height:24},title:"_Female".loc(),valueBinding:"Klb.searchController.showFemale"}),maleCheckbox:SC.CheckboxView.design({layout:{left:100,top:37+25,width:80,height:24},title:"_Male".loc(),valueBinding:"Klb.searchController.showMale"}),groupCheckbox:SC.CheckboxView.design({layout:{left:190,top:37+25,width:80,height:24},title:"_Groups".loc(),valueBinding:"Klb.searchController.showGroups"}),locationLabel:SC.LabelView.design({layout:{left:5,top:95+(50*0),right:5,height:22},value:"_Countries".loc(),controlSize:SC.LARGE_CONTROL_SIZE,classNames:"filter-subheader"}),locationContent:SC.LabelView.design({layout:{left:10,top:120+(50*0),width:200,height:24},valueBinding:"Klb.searchController.formattedCountries"}),locationButton:SC.ButtonView.design({layout:{right:10,top:120+(50*0),width:65,height:18},title:"_Edit".loc(),action:"showCountryPicker",target:"Klb.searchController",classNames:"picker-button",controlSize:SC.SMALL_CONTROL_SIZE,titleMinWidth:40}),sectorLabel:SC.LabelView.design({layout:{left:5,top:95+(50*1),right:5,height:22},value:"_Sectors".loc(),controlSize:SC.LARGE_CONTROL_SIZE,classNames:"filter-subheader"}),sectorContent:SC.LabelView.design({layout:{left:10,top:120+(50*1),width:200,height:24},valueBinding:"Klb.searchController.formattedSectors"}),sectorButton:SC.ButtonView.design({layout:{right:10,top:120+(50*1),width:65,height:18},title:"_Edit".loc(),action:"showSectorPicker",target:"Klb.searchController",classNames:"picker-button",controlSize:SC.SMALL_CONTROL_SIZE,titleMinWidth:40}),resetButton:SC.ButtonView.design({layout:{centerX:-50,bottom:10,width:90,height:24},title:"_Reset".loc()}),saveButton:SC.ButtonView.design({layout:{centerX:50,bottom:10,width:90,height:24},title:"_Save".loc()})})}),resultsView:SC.SceneView.design({layout:{top:0,bottom:0,left:301,right:0},scenes:"searchListView loanDetail".w(),nowShowingBinding:"Klb.lendingController.currentScene"})}),loansLoading:SC.View.design({layout:{top:0,bottom:0,left:0,right:0},childViews:"loadingLabelView".w(),backgroundColor:"white",loadingLabelView:SC.LabelView.design({layout:{left:0,right:0,centerY:0,height:24},textAlign:SC.ALIGN_CENTER,classNames:"center-label",controlSize:SC.LARGE_CONTROL_SIZE,fontWeight:SC.BOLD_WEIGHT,value:"_Finding Available Loans".loc()})}),noTargets:SC.View.design({layout:{top:0,bottom:0,left:0,right:0},childViews:"labelView sublabelView".w(),backgroundColor:"white",labelView:SC.LabelView.design({layout:{left:0,right:0,centerY:-24,height:24},backgroundColor:"white",textAlign:SC.ALIGN_CENTER,classNames:"center-label",controlSize:SC.LARGE_CONTROL_SIZE,fontWeight:SC.BOLD_WEIGHT,value:"_No Loans Matched Your Criteria".loc()}),sublabelView:SC.LabelView.design({layout:{centerX:0,centerY:0,height:24,width:400},textAlign:SC.ALIGN_CENTER,value:"_Please choose another filter or change your filter options.".loc()})}),loanDetail:SC.View.design({childViews:"navigationView detailView".w(),navigationView:SC.ToolbarView.design({classNames:"navigation-bar",layout:{top:0,left:0,right:0,height:30},childViews:"backButton".w(),backButton:SC.ButtonView.design({layout:{top:5,left:8,width:80,height:24},title:"« Back",action:"back"})}),detailView:SC.View.design({layout:{top:31,left:0,right:0,bottom:0},childViews:"name picture posted statusLabel status loanAmountLabel loanAmount fundedAmountLabel fundedAmount borrowerCountLabel borrowerCount activityLabel activity sectorLabel sectorLabel sector useLabel use loanLabel loan countryLabel country partnerLabel partner".w(),name:SC.LabelView.design({layout:{top:10,left:10,width:230,height:20},valueBinding:"Klb.detailController.name",controlSize:SC.LARGE_CONTROL_SIZE,fontWeight:SC.BOLD_WEIGHT}),posted:SC.LabelView.design({layout:{top:10,left:250,width:150,height:20},valueBinding:"Klb.detailController.posted_date"}),picture:SC.ImageView.design({layout:{top:35,left:10,width:450,height:360},valueBinding:"Klb.detailController.largeImage"}),statusLabel:SC.LabelView.design({layout:{top:35,left:470,width:120,height:20},fontWeight:SC.BOLD_WEIGHT,value:"Status:"}),status:SC.LabelView.design({layout:{top:35,left:600,width:120,height:20},valueBinding:"Klb.detailController.status"}),loanAmountLabel:SC.LabelView.design({layout:{top:60,left:470,width:120,height:20},fontWeight:SC.BOLD_WEIGHT,value:"Loan Amount:"}),loanAmount:SC.LabelView.design({layout:{top:60,left:600,width:120,height:20},valueBinding:"Klb.detailController.loan_amount"}),fundedAmountLabel:SC.LabelView.design({layout:{top:85,left:470,width:120,height:20},fontWeight:SC.BOLD_WEIGHT,value:"Funded Amount:"}),fundedAmount:SC.LabelView.design({layout:{top:85,left:600,width:120,height:20},valueBinding:"Klb.detailController.funded_amount"}),borrowerCountLabel:SC.LabelView.design({layout:{top:110,left:470,width:120,height:20},fontWeight:SC.BOLD_WEIGHT,value:"Borrowers:"}),borrowerCount:SC.LabelView.design({layout:{top:110,left:600,width:120,height:20},valueBinding:"Klb.detailController.borrower_count"}),activityLabel:SC.LabelView.design({layout:{top:135,left:470,width:120,height:20},fontWeight:SC.BOLD_WEIGHT,value:"Activity:"}),activity:SC.LabelView.design({layout:{top:135,left:600,width:120,height:20},valueBinding:"Klb.detailController.activity"}),sectorLabel:SC.LabelView.design({layout:{top:160,left:470,width:120,height:20},fontWeight:SC.BOLD_WEIGHT,value:"Sector:"}),sector:SC.LabelView.design({layout:{top:160,left:600,width:120,height:20},valueBinding:"Klb.detailController.sector"}),useLabel:SC.LabelView.design({layout:{top:185,left:470,width:120,height:20},fontWeight:SC.BOLD_WEIGHT,value:"Use:"}),use:SC.LabelView.design({layout:{top:185,left:600,width:120,height:20},valueBinding:"Klb.detailController.use"}),loanLabel:SC.LabelView.design({layout:{top:210,left:470,width:120,height:20},fontWeight:SC.BOLD_WEIGHT,value:"Loan:"}),loan:SC.LabelView.design({layout:{top:210,left:600,width:120,height:20},valueBinding:"Klb.detailController.loan"}),countryLabel:SC.LabelView.design({layout:{top:235,left:470,width:120,height:20},fontWeight:SC.BOLD_WEIGHT,value:"Country"}),country:SC.LabelView.design({layout:{top:235,left:600,width:120,height:20},valueBinding:"Klb.detailController.country"}),partnerLabel:SC.LabelView.design({layout:{top:260,left:470,width:120,height:20},fontWeight:SC.BOLD_WEIGHT,value:"Partner:"}),partner:SC.LabelView.design({layout:{top:260,left:600,width:120,height:20},valueBinding:"Klb.detailController.partner_id"})})}),searchListView:SC.View.design({layout:{top:0,bottom:0,left:0,right:0},childViews:"loanView loanViewBar".w(),loanView:Klb.ScrollView.design({hasHorizontalScroller:NO,layout:{top:0,bottom:41,left:0,right:0},classNames:"no-border",backgroundColor:"white",contentView:SC.ListView.design({classNames:"loanListView",contentBinding:"Klb.loansController.arrangedObjects",selectionDelegate:Klb.loansController,contentValueKey:"name",exampleView:Klb.LoanListingView,rowHeight:120,actOnSelect:YES,action:"selectLoan"})}),loanViewBar:SC.View.design({layout:{bottom:0,left:0,right:0,height:40},childViews:"resultsLabel sortLabel sortSelectView".w(),classNames:"klb-chrome lendingLoanListBar".w(),layerId:"id-lendingLoanListBar",resultsLabel:SC.LabelView.design({valueBinding:"Klb.loansController.lengthNamedForDisplay",layout:{left:10,top:10,width:180,height:24},controlSize:SC.REGULAR_CONTROL_SIZE,fontWeight:SC.BOLD_WEIGHT}),sortLabel:SC.LabelView.design({layout:{right:140,top:9,width:80,height:24},textAlign:SC.ALIGN_RIGHT,value:"_Sort_by".loc()}),sortSelectView:SC.SelectFieldView.design({layout:{right:5,top:10,width:130,height:24},nameKey:"name",valueKey:"value",objects:Klb.searchController.get("sortOptions"),valueBinding:"Klb.searchController.currentSortOrder",disableSort:true}),viewModeSegmentedView:SC.SegmentedView.design({layout:{right:5,top:5,width:100,height:24},items:"_List_Grid".loc().w(),value:"_List".loc()})})})});
Klb.mainController=SC.ObjectController.create({currentSection:null,shouldTrackNavigation:false,showPrehome:function(){this.set("currentSection",Klb.getPath("prehomePage.mainView"))
},showLending:function(){this.set("currentSection",Klb.getPath("lendingPage.mainView"));
_gaq.push(["_trackEvent","conversion","cta-ChooseProject"])},setPrehomeBypassCookie:function(){var a,b=new Date();
b.setTime(b.getTime());a=new Date(b.getTime()+(1000*60*60*24*120));document.cookie="pv=1;path=/;expires="+a.toGMTString()
},checkPrehomeBypassCookie:function(){var a=SC.Cookie.find("pv");if(a&&a.get("value")){return true
}return false},checkSectionStatus:function(){var a=NO,c=this.get("currentSection"),b="(unknown)";
if(c===Klb.getPath("lendingPage.mainView")&&!this.checkPrehomeBypassCookie()){this.setPrehomeBypassCookie()
}if(c===Klb.getPath("prehomePage.mainView")){a=YES}Klb.getPath("mainPage.appPane.topbarView.rightPromo").set("isVisible",a);
if(this.get("shouldTrackNavigation")&&c!==null){if(c===Klb.getPath("lendingPage.mainView")){b="lending"
}else{if(c===Klb.getPath("aboutPage.mainView")){b="about"}else{if(c===Klb.getPath("prehomePage.mainView")){b="prehome"
}else{if(c===Klb.getPath("registerPage.mainView")||c==="Klb.registerPage.mainView"){b="register"
}else{if(c===Klb.getPath("demoPage.mainView")||c==="Klb.demoPage.mainView"){b="demo"
}}}}}_gaq.push(["_trackEvent","navigation",b])}Klb.getPath("aboutPage.mainView").set("verticalScrollOffset",0);
Klb.getPath("prehomePage.mainView").set("verticalScrollOffset",0)}.observes("currentSection"),getCookie:function(a){var g=document.cookie.split(";");
var b="";var d="";var f="";var c=false;for(i=0;i<g.length;i++){b=g[i].split("=");
d=b[0].replace(/^\s+|\s+$/g,"");if(d==a){c=true;if(b.length>1){f=unescape(b[1].replace(/^\s+|\s+$/g,""))
}return f}b=null;d=""}if(!c){return null}}});require("controllers/main");Klb.mainPage=SC.Page.design({appPane:SC.MainPane.design({childViews:"topbarView mainPaneView invisibleFormView".w(),defaultResponder:Klb.mainController,topbarView:SC.View.design({layout:{top:0,left:0,right:0,height:74},childViews:"logoView buttonBar rightPromo".w(),classNames:"klb-header".w(),logoView:SC.ImageView.extend(SCUI.SimpleButton).design({layout:{left:5,top:5,width:123,height:64},value:"/static/klb/en/b4869f7b9eeffc5329d81aacf274ab3027e23f3d/images/kef_logo_123.png",classNames:"simulatedLogoButton",target:"Klb.mainController",action:"showPrehome"}),buttonBar:SC.SegmentedView.design({layout:{top:5,height:65,left:150,width:102*4},itemTitleKey:"title",valueBinding:"Klb.mainController.currentSection",itemWidthKey:"width",itemValueKey:"value",classNames:"mainNav",items:[{title:"_About".loc(),value:Klb.getPath("aboutPage.mainView"),width:90},{title:"_Projects".loc(),value:Klb.getPath("lendingPage.mainView"),width:90},{title:"_Register".loc(),value:"Klb.registerPage.mainView",width:90},{title:"_Demo".loc(),value:"Klb.demoPage.mainView",width:90}]}),rightPromo:SC.View.design({layout:{centerY:0,height:60,right:20,width:250},childViews:"caption cta".w(),classNames:"brandedFontContent ctaPromo",isVisible:YES,caption:Klb.DisplayTextView.design({layout:{top:0,height:30,left:10,right:10},color:"white",value:"_Get started now by finding an entrepreneur and making a loan!".loc(),classNames:"primaryCtaCaption",textAlign:SC.ALIGN_CENTER}),cta:SC.ButtonView.design({layout:{bottom:0,height:30,left:0,right:0},classNames:"ctaButton primaryCta".w(),title:"_Choose_A_Loan".loc(),target:"Klb.mainController",action:"showLending",controlSize:SC.LARGE_CONTROL_SIZE})})}),mainPaneView:SC.ContainerView.design({layout:{bottom:0,left:0,right:0,top:76},nowShowingBinding:"Klb.mainController.currentSection"}),invisibleFormView:SC.View.design({layout:{top:-20,height:5,left:0,right:0},layerId:"invisible_form_view",isVisible:NO})})});
sc_require("views/display_text");sc_require("views/scroll");Klb.prehomePage=SC.Page.design({mainView:Klb.ScrollView.design({layout:{top:0,bottom:0,left:0,right:0},contentView:SC.View.design({layout:{top:0,height:860,right:0,left:0},childViews:"pageView".w(),classNames:"contentBackdrop",pageView:SC.View.design({layout:{top:0,bottom:50,centerX:0,width:840},childViews:"illustration borrowerStory lenderStory".w(),classNames:"contentPage",illustration:SC.View.design({layout:{top:10,height:385,centerX:0,width:785},childViews:"slidesContent".w(),slidesContent:SC.View.design({childViews:"placeholderGraphic".w(),placeholderGraphic:SC.ImageView.design({value:"/static/klb/en/b4869f7b9eeffc5329d81aacf274ab3027e23f3d/images/prehome-illustration.jpg"})})}),borrowerStory:SC.View.design({layout:{top:385,height:100,left:40,right:40},childViews:"step1 step2 step3".w(),step1:Klb.DisplayTextView.design({layout:{top:10,left:15,width:225},value:"_An entrepreneur needs a loan to grow her business".loc(),textAlign:SC.ALIGN_CENTER}),step2:Klb.DisplayTextView.design({layout:{top:10,centerX:0,width:225},value:"_Kiva works with local partners who specialize in microcredit".loc(),textAlign:SC.ALIGN_CENTER}),step3:Klb.DisplayTextView.design({layout:{top:10,right:10,width:225},value:"_People from all over the world become lenders, helping in big ways with small amounts of money".loc(),textAlign:SC.ALIGN_CENTER})}),lenderStory:SC.View.design({layout:{top:500,height:270,left:40,right:40},childViews:"caption step1 step2 step3 cta".w(),classNames:"lenderStoryBox",caption:Klb.DisplayTextView.design({layout:{top:10,height:24,left:10,right:10},value:"_Kiva. Make a loan, change a life.".loc(),classNames:"prehomeCaption"}),step1:SC.View.design({layout:{top:50,left:10,width:240},childViews:"number text".w(),number:SC.View.design({layout:{top:0,height:21,left:0,width:22},classNames:"lenderPoints itemOne".w()}),text:Klb.DisplayTextView.design({layout:{top:0,left:30,width:190},value:"<div class='lenderPointsCaption'>"+"_Make the choice to change a life".loc()+"</div><div style='line-height:5px'>&nbsp;</div><div class=''>"+"*borrower_story_detail_1".loc()+"</div/>"})}),step2:SC.View.design({layout:{top:50,centerX:0,width:240},childViews:"number text".w(),number:SC.View.design({layout:{top:0,height:21,left:0,width:22},classNames:"lenderPoints itemTwo".w()}),text:Klb.DisplayTextView.design({layout:{top:0,left:30,right:0},value:"<div class='lenderPointsCaption'>"+"_Get repaid".loc()+"</div><div style='line-height:5px'>&nbsp;</div><div class=''>"+"*borrower_story_detail_2".loc()+"</div/>"})}),step3:SC.View.design({layout:{top:50,right:10,width:240},childViews:"number text".w(),number:SC.View.design({layout:{top:0,height:21,left:0,width:22},classNames:"lenderPoints itemThree".w()}),text:Klb.DisplayTextView.design({layout:{top:0,left:30,right:0},value:"<div class='lenderPointsCaption'>"+"_Become part of the Kiva community".loc()+"</div><div style='line-height:5px'>&nbsp;</div><div class=''>"+"*borrower_story_detail_3".loc()+"</div/>"})}),cta:SC.View.design({layout:{bottom:20,height:38,left:10,width:720},childViews:"caption cta".w(),classNames:"brandedFontContent ctaPromo",isVisible:YES,caption:Klb.DisplayTextView.design({layout:{centerY:0,height:14,right:215,left:0},color:"white",value:"_Get started now by finding an entrepreneur and making a loan!".loc(),classNames:"primaryCtaCaption",textAlign:SC.ALIGN_RIGHT}),cta:SC.ButtonView.design({layout:{centerY:0,height:30,right:0,width:200},classNames:"ctaButton primaryCta".w(),title:"_Choose_A_Loan".loc(),target:"Klb.mainController",action:"showLending",controlSize:SC.LARGE_CONTROL_SIZE})})})})})})});
Klb.registerPage=SC.Page.design({mainView:SC.View.design({layout:{top:0,left:0,right:0,bottom:0},childViews:"rightView sidebarView".w(),classNames:"brandedFontContent",sidebarView:Klb.RegSidebarView.design({layout:{top:0,bottom:0,left:0,right:950,minWidth:120}}),rightView:SC.View.design({layout:{top:0,bottom:0,right:0,width:950,minWidth:950},childViews:"topView webView kivaRegLoading".w(),topView:SC.View.design({layout:{top:0,left:0,height:80,right:0},backgroundColor:"#F7F3DE",classNames:"regTopView",childViews:"note1 note2".w(),note1:SC.LabelView.design({layout:{top:5,centerX:0,width:900},textAlign:SC.ALIGN_CENTER,classNames:"center-label",value:"*reg_disclaimer_text1".loc()}),note2:SC.LabelView.design({layout:{top:40,centerX:0,width:600},textAlign:SC.ALIGN_CENTER,classNames:"center-label",value:"*reg_disclaimer_text2".loc()})}),kivaRegLoading:SC.View.design({layout:{top:81,left:0,bottom:0,right:0},childViews:"loadingMeter labelView".w(),backgroundColor:"#dddddd",loadingMeter:SC.ImageView.design({layout:{centerX:0,centerY:-32,height:32,width:32},value:"/static/klb/en/b4869f7b9eeffc5329d81aacf274ab3027e23f3d/resources/images/animated_loader.gif"}),labelView:SC.LabelView.design({layout:{centerX:0,centerY:24,height:50,width:300},textAlign:SC.ALIGN_CENTER,classNames:"center-label",controlSize:SC.LARGE_CONTROL_SIZE,fontWeight:SC.BOLD_WEIGHT,value:"_Loading Kiva Website".loc()})}),webView:Klb.WebView.design({layout:{top:81,left:0,bottom:0,right:0},value:"http://www.kiva.org/register",iframeDidLoad:function(){Klb.registerPage.mainView.rightView.kivaRegLoading.set("isVisible",NO)
}})})})});Klb.main=function main(){document.title="_KlbTitle".loc();if(window.location.hash.toString().match("fixtures")){console.log("USING FIXTURES STORE!");
Klb.store.from(SC.Record.fixtures)}else{Klb.store.from("Klb.KivaDataSource")}Klb.getPath("mainPage.appPane").append();
Klb.makeFirstResponder(Klb.START);Klb.searchController.primeData();Klb.set("allLoans",Klb.store.find(Klb.AVAILABLE_LOANS_REMOTE_QUERY))
};function main(){Klb.main()};
