
var curEntryIdx=0;stNoOfComments=10;ssmaxShareIcons=5;ST_SINGLE_LINE_COMMENTS_MAX_LENGTH=45;ST_SINGLE_LINE_DESCRIPTION_MAX_LENGTH=45;ST_UPLOAD_MEDIA_INVALID="Please select a supported file type (png, jpg, gif) with a maximum of 5 MB to continue upload.";var RW_ALERT_CALLBACK_ERROR="Error while fetching voting information. Response code: ";var RW_ALERT_CALLBACK_RESPONSE_MSG="Response message: ";var RW_ALERT_CALLBACK_OPCODE="Opcode: ";var RW_RESPONSE_CODE_SUCCESS=0;var RW_DO_RATE_REVIEW=5;var RW_DOM_IDS=["rwSecondRowSecondColFirstRow","rwSecondRowSecondColSecondRow","rwSecondRowFirstColFirstRow","rwSecondRowFirstColSecondRow","rwThirdRow"];var Defines={};Defines.SHARE="SHARE:";Defines.SHARE_THIS="SHARE THIS:";Defines.flashTimer=null;Defines.STAT_LANDING_PAGE=1;Defines.STAT_LIFE_OFBASKET_PAGE=2;Defines.STAT_HISTORY_PAGE=3;Defines.STAT_PARTNERSHIP_PAGE=4;Defines.STAT_WOMEN_PAGE=5;Defines.STAT_COMMUNITY_PAGE=6;Defines.STAT_LIVE_OF_CHILD_PAGE=7;Defines.STAT_LETTERS_PAGE=8;Defines.STAT_CUSTOMER_REVIEW_PAGE=9;Defines.STAT_SHARE_YOUR_STORY_PAGE=10;Defines.STAT_VIDEO_PAGE=11;Defines.STAT_FRUIT_BOWLS_PAGE=12;Defines.STAT_TEA_TRAY_PAGE=13;Defines.STAT_TEXTILE_PAGE=14;Defines.STAT_PEACE_BASKET_PAGE=15;Defines.STAT_SHOP_ALL_PAGE=16;stScaleWidth=508;stScaleHeight=336;stSwfCbkObject={onOpCancelled:function()
{},onOpCompleted:function(code,msg,opcode,retval1,retval2)
{if(code==RW_RESPONSE_CODE_SUCCESS)
{if(opcode==RW_DO_RATE_REVIEW)
{var entryStasKeys=ST_ENTRY_STATS_PARAM_USERNAME+","+
ST_ENTRY_STATS_PARAM_REVIEW+","+
ST_ENTRY_STATS_PARAM_SKAVGRATING+","+
ST_ENTRY_STATS_PARAM_SKNUMRATERS;stGetEntryStatsAndComments(entryStasKeys,rwEntries[curEntryIdx].entry_id,0,stLoadComments,VERSION_DIR+'img/');}}
else if(showAlerts)
{alert(RW_ALERT_CALLBACK_ERROR+"= "+code+RW_ALERT_CALLBACK_RESPONSE_MSG+"= "+msg+RW_ALERT_CALLBACK_OPCODE+"= "+opcode);}
ppLoadComplete=true;},PercentLoaded:function(){return 100;}};var rwBundleNames=['what it is','how it\'s helping','what people are saying','video','shop now'];var rwSubBundleNames=[['the life of a basket','the history of path to peace','the partnership','the women'],['changing communities','improving the lives of children','letters from the weavers'],['customer reviews','share your story'],[],['fruit bowls','tea trays','textiles','peace baskets & more','shop all']];var rwEntries;var stserverUrl="/mc/templates/macys/guide/xml.jsp?campaign_id="+campaignidSA+"&channel_id=1&jsonresponse=1&nc=true&bundle_entryPath=/";var rwSecondRowHTML=''+'<table class="rwFullWidth" cellpadding="0" cellspacing="0">'+'<tr>'+'<!-- first column-->'+'<td id="rwSecondRowFirstCol" class="" valign="top">'+'<!-- skinclude file="videopalyer.html" / -->'+'<table class="rwFullWidth" cellpadding="0" cellspacing="0">'+'<tr>'+'<td id="rwSecondRowFirstColFirstRow" valign="top">'+'</td>'+'</tr>'+'<tr>'+'<td id="rwSecondRowFirstColSecondRow" valign="top">'+'</td>'+'</tr>'+'</table>'+'</td>'+'<!--second column-->'+'<td id="rwSecondRowSecondCol" class="" valign="top">'+'<!-- skinclude file="staticimage.html" / -->'+'<table class="rwFullWidth" cellpadding="0" cellspacing="0">'+'<tr>'+'<td id="rwSecondRowSecondColFirstRow" valign="top">'+'</td>'+'</tr>'+'<tr>'+'<td id="rwSecondRowSecondColSecondRow" valign="top">'+'</td>'+'</tr>'+'</table>'+'</td>'+'</tr>'+'</table>';function rwCbkMethod(menuIdx,subMenuIdx)
{ssOnLoadCompleted(true);stScaleCounter++;switch(menuIdx)
{case 0:switch(subMenuIdx)
{case 0:rwShowTheLifeofaBasketPage();break;case 1:rwShowTheHistoryofPathtoPeacePage();break;case 2:rwShowTheParnershipPage();break;case 3:rwShowWomenPage();break;}
break;case 1:switch(subMenuIdx)
{case 0:rwShowChangingCommunitiesPage();break;case 1:rwShowImprovingtheLivesofChildrenPage();break;case 2:rwShowLettersFromWeaverPage();break;}
break;case 2:switch(subMenuIdx)
{case 0:rwShowCustomerReviewsPage();break;case 1:rwShowShareYourStoryPage();break;}
break;case 3:rwShowAllVideosPage();break;case 4:switch(subMenuIdx)
{case 0:rwShowFruitBawlsPage();break;case 1:rwShowTeaTraysPage();break;case 2:rwShowTextilesPage();break;case 3:rwShowPeaceBasketsPage();break;case 4:rwShopAll();break;}
break;case 5:rwShowLandingPage();break;default:loadFlash();break;}}
function rwLoadEntries(bundleEntryPath,callbak,entryIdx)
{parantPath=bundleEntryPath;var afterLoad=function(result)
{result=JSON.parse(result);rwEntries=result.root.bn_c;if(bundle_entryPathSA)
{currentEntryId=bundle_entryPathSA.substring(bundle_entryPathSA.lastIndexOf("/")+1);var i=0;if(currentEntryId&&rwEntries)
{while(rwEntries[i]&&rwEntries[i].entry_id!=currentEntryId)
{i++;}}
entryIdx=i;}
curEntryIdx=(entryIdx?entryIdx:0);if(callbak)
{callbak();}}
var errCbk=function(msg)
{if(showAlerts)
{alert("Error in loading entries from the url "+(stserverUrl+bundleEntryPath)+", Message "+msg);}};jx.load(stserverUrl+bundleEntryPath,afterLoad,"application/x-www-form-urlencoded","GET",errCbk);}
function rwShowLandingPage(isFromFlash)
{ssOnLoadCompleted(true);platformRegisterPageView('ca-so-rw.hp','ca-so-rwanda.baskets');if(Defines.flashTimer)
{clearTimeout(Defines.flashTimer);}
rwClearAll();rwShowAll(["rwSecondRowSecondColFirstRow","rwSecondRowSecondColSecondRow","rwSecondRowFirstColFirstRow","rwSecondRowFirstColSecondRow"]);var introPage=document.getElementById("introPage");if(introPage)
{introPage.style.display="none";}
rwSetPadding('rwSecondRowFirstColFirstRow','rwRightPading5');rwSetPadding('rwSecondRowFirstColSecondRow','rwTopPading5');rwSetPadding('rwSecondRowSecondColFirstRow','rwHeight452');rwSetPadding('rwSecondRowSecondColSecondRow','rwTopPading5');var loadAllLandingContent=function()
{var swfIdx=rwGerVideoIndex();if(swfIdx!=-1)
{var playerUrl=VERSION_DIR+'swf/player_491x368_496x415_new.swf';var fileParam=null;var isIcon=false;var flashVar="videourl="+(rwEntries[swfIdx].entry_cdnfileurl?rwEntries[swfIdx].entry_cdnfileurl:rwEntries[swfIdx].entry_fileurl);var appendFileUrl=flashVar;var updatePrgress=false;var fullScreen=true;var stShowProductEntries=function()
{var paddingArray=[13,17,13,17,15];stShowPrdtEntries("rwSecondRowSecondColSecondRow",rwEntries,373,323,31,true,true,"featured products","<a href='#' target='_blank' class='rwBgColor8D6548 rwFontFamilyVerdana rwFontSize12px rwTextBold rwColorFFFFFF rwTextDecorationUnderline' onclick='rwShopAll(); return false;'>shop all</a>",'rwEntries',2,true,rwAfterLoadCmtsUI,pdtMaileridEmail,pdtMaileridSms,paddingArray,[" rwPdtImgSize rwTextAlignLeft rwBgColor8D6548  "," rwFeaturedPdtsLeftTitle "," rwBgColor8D6548 rwFontFamilyVerdana rwFontSize12px rwTextBold rwColorFFFFFF "," rwBgColor8D6548 rwFontFamilyVerdana rwFontSize12px rwTextBold rwColorFFFFFF "," rwBgColor8D6548 rwFontFamilyVerdana rwFontSize12px rwTextBold rwColorFFFFFF rwTextDecorationUnderline "," rwWidth152px "," rwFontFamilyVerdana rwFontSize10px rwColor333333 ",null,null]);}
var stLoadCommentUI=function()
{stGetCommentsUI('rwSecondRowFirstColSecondRow',stShowProductEntries,true,510,323,31,'comments',VERSION_DIR+'img/button_submit.png',VERSION_DIR+'img/button_cancel.png','rwBorderNone','rwCommentsPanel','rwBorderLRB1','rwFontVerdana12 rwColorFFFFFF rwTextBold rwValignMiddle','rwFontArial13 rwTextBold rwColor333333','','');}
var stLoadStaticImage=function()
{var innerContent=''+'<table cellpadding="0" cellspacing="0" class="stFontArial stTextBold stFontSize12 stColorWhite">'+'<tr>'+'<td>'+'<img src="'+VERSION_DIR+'img/landing_image_title.png"/>'+'</td>'+'</tr>'+'<tr>'+'<td class="stFontArial stTextBold stFontSize12 stColorWhite">'+'<p>'+'Exquisite works of art handcrafted by Rwandan women.'+'The sale of these one-of-a-kind crafts provides sustainable '+'income to the artisans who create them. '+'</p>'+'<p>'+'The ambitious project has changed thousands of lives and created '+'a global community that connects Rwandan weavers with the '+'customers who cherish their beautiful work.'+'</p>'+'<p>'+'Here you can discover more about the baskets, '+'learn about the project\'s '+'impact and hear from the weavers themselves. '+'You can also <a class="stFontArial stTextBold stFontSize12 stColorWhite rwTextDecorationUnderline " href="#" onclick="rwShowShareYourStoryPage();return false;">share your own pictures and stories</a> '+'about how the Path to Peace has made a difference in your life.'+'</p>'+'</td>'+'</tr>'+'</table>';var paddingArray=[11,22,22,8];stDisplayStaticImage("rwSecondRowSecondColFirstRow",375,452,VERSION_DIR+"img/landing_image.jpg",innerContent,60,paddingArray,'',false,true);stLoadCommentUI();}
stVideoOrImageDisplay(rwEntries[curEntryIdx],'rwSecondRowFirstColFirstRow',[510,452],[510,427],[496,415],0,0,0,0,VERSION_DIR+'img/','rwEntries['+curEntryIdx+']','stSwfCbkObject',stLoadStaticImage,false,false,[playerUrl,fileParam,isIcon,flashVar,appendFileUrl,updatePrgress,fullScreen],Defines.SHARE,45,'');}}
var callback=function()
{rwLoadEntries("landing",loadAllLandingContent);}
if(isFromFlash)
{rwSetHeaders(callback);}
else
{rwLoadEntries("landing",loadAllLandingContent);}}
function rwSetHeaders(cbk)
{var innerHtml=''+'<table cellpadding="0" cellspacing="0">'+'<tr>'+'<td id="rwSetLanding" class="rwWidth900px rwHeight75px rwBgImg">&nbsp;'+'</td>'+'</tr>'+'</table>';stShowHeader(innerHtml,"rwHeader");var aftercallback=function(result)
{var rwSpreadTheWord=ssSpreadTheWordControlElmts(result,'<img id="stSharItIdSpreadTheWord" class="rwSpreadtheWord" border="none" align="middle" src="'+VERSION_DIR+'img/button_spreadword.png">',[hostUrl[campaignidSA]+'/mc/templates/common/res/blogging/blog.facebook.jpg',VERSION_DIR+"img/email_icon.png",VERSION_DIR+"img/mobile_icon.png"],null,'landing','stSwfCbkObject',siteMaileridEmail,siteMaileridSms,null,null,null,null,null,'ca-so-rw.spread','ca-so-rwanda.baskets');stShowHeaderTab("rwHeaderTab",rwBundleNames,rwSubBundleNames,VERSION_DIR+'img/top_menu_arrow.png',VERSION_DIR+'img/top_menu_arrow_down.png','rwCbkMethod','rwBgColor333333','rwFontFamilyCenturyGothicVerdanaArial rwFontSize13px rwBgColor333333 rwColorFFFFFF rwBorder1pxColor201E1C','rwFontFamilyCenturyGothicVerdanaArial rwFontSize13px rwBgColor333333 rwColorFFFFFF rwBorder1pxColor201E1C',rwSpreadTheWord);var rwHeaderMenuElt=document.getElementById('rwSetLanding');if(rwHeaderMenuElt&&rwHeaderMenuElt.innerHTML)
{rwHeaderMenuElt.onclick=function()
{stScaleCounter++;rwShowLandingPage();return false;}
rwHeaderMenuElt.className="rwWidth900px rwHeight75px rwBgImg rwHandCursor";}
if(cbk)
{cbk();}}
var errcbk=function()
{if(showAlerts)
{alert("Error in setting menu header");}}
var url='/mc/social?campaign_id='+campaignidSA+'&channel_id='+channelId+'&X-Skava-Authorization='+auth[campaignidSA]+'&op=getshareprops';jx.load(url,aftercallback,"application/x-www-form-urlencoded","POST",errcbk);}
function rwShowTheLifeofaBasketPage()
{platformRegisterPageView('ca-so-rw.about','ca-so-rwanda.baskets');rwClearAll();rwShowAll(["rwSecondRowSecondColFirstRow","rwSecondRowSecondColSecondRow","rwSecondRowFirstColFirstRow","rwSecondRowFirstColSecondRow"]);rwSetPadding('rwSecondRowFirstColFirstRow','rwRightPading5');rwSetPadding('rwSecondRowFirstColSecondRow','rwTopPading5');rwSetPadding('rwSecondRowSecondColSecondRow','rwTopPading5');var loadAllProcessContent=function()
{var swfIdx=rwGerVideoIndex();if(swfIdx!=-1)
{var playerUrl=VERSION_DIR+'swf/player_491x368_496x415_new.swf';var fileParam=null;var isIcon=false;var flashVar="videourl="+(rwEntries[swfIdx].entry_cdnfileurl?rwEntries[swfIdx].entry_cdnfileurl:rwEntries[swfIdx].entry_fileurl);var appendFileUrl=flashVar;var updatePrgress=false;var fullScreen=true;var stShowProductEntries=function()
{var paddingArray=[13,17,13,17,15];stShowPrdtEntries("rwSecondRowSecondColSecondRow",rwEntries,373,323,31,true,true,"featured products","<a href='#' target='_blank' class='rwBgColor8D6548 rwFontFamilyVerdana rwFontSize12px rwTextBold rwColorFFFFFF rwTextDecorationUnderline' onclick='rwShopAll(); return false;'>shop all</a>",'rwEntries',2,true,rwAfterLoadCmtsUI,pdtMaileridEmail,pdtMaileridSms,paddingArray,[" rwPdtImgSize rwTextAlignLeft rwBgColor8D6548  "," rwFeaturedPdtsLeftTitle "," rwBgColor8D6548 rwFontFamilyVerdana rwFontSize12px rwTextBold rwColorFFFFFF "," rwBgColor8D6548 rwFontFamilyVerdana rwFontSize12px rwTextBold rwColorFFFFFF "," rwBgColor8D6548 rwFontFamilyVerdana rwFontSize12px rwTextBold rwColorFFFFFF rwTextDecorationUnderline "," rwWidth152px "," rwFontFamilyVerdana rwFontSize10px rwColor333333 ",null,null]);}
var stLoadCommentUI=function()
{stGetCommentsUI('rwSecondRowFirstColSecondRow',stShowProductEntries,true,510,323,31,'comments',VERSION_DIR+'img/button_submit.png',VERSION_DIR+'img/button_cancel.png','rwBorderNone','rwCommentsPanel','rwBorderLRB1','rwFontVerdana12 rwColorFFFFFF rwTextBold rwValignMiddle','rwFontArial13 rwTextBold rwColor333333','','');}
var stLoadStaticImage=function()
{stDisplayStaticImage("rwSecondRowSecondColFirstRow",375,452,VERSION_DIR+"img/process_image.jpg",null,null,null,' rwWidth96p ',false,true);stLoadCommentUI();}
stVideoOrImageDisplay(rwEntries[curEntryIdx],'rwSecondRowFirstColFirstRow',[510,452],[510,427],[496,415],0,0,0,0,VERSION_DIR+'img/','rwEntries['+curEntryIdx+']','stSwfCbkObject',stLoadStaticImage,false,false,[playerUrl,fileParam,isIcon,flashVar,appendFileUrl,updatePrgress,fullScreen],Defines.SHARE,45,'');}}
rwLoadEntries("process",loadAllProcessContent);}
function rwShowTheHistoryofPathtoPeacePage()
{platformRegisterPageView('ca-so-rw.about','ca-so-rwanda.baskets');rwClearAll();rwShowAll(["rwSecondRowSecondColFirstRow","rwSecondRowFirstColFirstRow","rwThirdRow"]);var textContentHTML=""+"<font class=\"rwFontVerdana12 rwColor333333\">"+"<font class=\"rwtextHeadingFont rwLineHeight20\">THE HISTORY OF PATH TO PEACE</font>"+"<br>In 1994, Rwanda was torn apart by a brutal and swift genocide-in roughly 100 days, close to one million Rwandan citizens were murdered. In the aftermath, the population of the small African nation was nearly 70% women. Faced with an uncertain future, these women turned to their past and reclaimed their unique heritage of weaving. Drawing strength from this common history and ancient art form, brave women from both sides of the conflict began working together to rebuild their communities and their lives."+"<br><br>In 2002 Noeleen Heyzer, Executive Director of the United Nations Development Fund for Women (UNIFEM), visited Rwanda and was struck by the beauty of the traditional woven baskets. Moved by the pride and strength of the weavers, she reached out to American businesswoman, and UNIFEM supporter, Willa Shalit in hopes of developing a market for Rwandan basketwork. After UNIFEM made initial contacts with the Rwandan Government and the association of genocide widows, Willa began working with weavers in Rwanda and partners in America. Three years later, she founded the Rwanda Path to Peace project in partnership with Macy's."+"<br><br>A global market was established for these unique works of art, and in September 2005 Macy's introduced the very first Path to Peace Baskets. The modest collection, only available online at macys.com and in Macy's flagship Herald Square store, included every basket the weavers could produce over the course of the year."+"<br><br>Though relatively small, the 2005 collection was met with an enthusiastic response, quickly selling out online and gaining national media attention. The sale of the baskets provided real, sustainable income to rural women who had never before earned money in their lives."+"<br><br>Today, the Path to Peace project is larger than ever, employing thousands of weavers and impacting tens of thousands of lives. The impact of the income-generating work the project creates"+"<br>Focused on trade, not aid, the Rwanda Path to Peace project puts the power of opportunity into the hands of the women of Rwanda, providing not only income but the chance to take an active role in the shaping of their future.</font>";rwSetPadding('rwSecondRowFirstColFirstRow','rwRightPading5 rwLineHeight20');var paddingArray=[37,22,22,18];stDisplayStaticImage("rwSecondRowFirstColFirstRow",510,452,VERSION_DIR+"img/text_background.jpg",textContentHTML,null,paddingArray,' rwWidth96p ',false,false);stDisplayStaticImage("rwSecondRowSecondColFirstRow",375,452,VERSION_DIR+"img/history_image.jpg",null,null,null,' rwWidth96p ',false,true);var afterLoad=function()
{rwSetPadding('rwThirdRow','rwPaddingLeft5 rwPaddingBottom5');paddingArray=[11,9,11,9,6];stShowPrdtEntries("rwThirdRow",rwEntries,888,315,31,false,true,"featured products","<a href='#' target='_blank' class='rwBgColor8D6548 rwFontFamilyVerdana rwFontSize12px rwTextBold rwColorFFFFFF rwTextDecorationUnderline' onclick='rwShopAll(); return false;'>shop all</a>",'rwEntries',5,true,ssOnLoadCompleted,pdtMaileridEmail,pdtMaileridSms,paddingArray,[" rwProductImageBottomView ",""," rwWidth152px rwTextAlignLeft rwBgColor8D6548 ","rwFeaturedPdtsLeftTitle","rwFeaturedPdtsRightTitle","rwTextAlignLeft rwWidth166px",null,null,null]);}
rwLoadEntries("history",afterLoad);}
function rwShowTheParnershipPage()
{platformRegisterPageView('ca-so-rw.about','ca-so-rwanda.baskets');rwClearAll();rwShowAll(["rwSecondRowSecondColFirstRow","rwSecondRowSecondColSecondRow","rwSecondRowFirstColFirstRow","rwSecondRowFirstColSecondRow"]);rwSetPadding('rwSecondRowFirstColSecondRow','rwTopPading5');rwSetPadding('rwSecondRowFirstColFirstRow','rwRightPading5');rwSetPadding('rwSecondRowSecondColSecondRow','rwTopPading5');var loadAllPartnershipContent=function()
{var swfIdx=rwGerVideoIndex();if(swfIdx!=-1)
{var playerUrl=VERSION_DIR+'swf/player_491x368_496x415_new.swf';var fileParam=null;var isIcon=false;var flashVar="videourl="+(rwEntries[swfIdx].entry_cdnfileurl?rwEntries[swfIdx].entry_cdnfileurl:rwEntries[swfIdx].entry_fileurl);var appendFileUrl=flashVar;var updatePrgress=false;var fullScreen=true;var stShowProductEntries=function()
{var paddingArray=[13,17,13,17,15];stShowPrdtEntries("rwSecondRowSecondColSecondRow",rwEntries,373,323,31,true,true,"featured products","<a href='#' target='_blank' class='rwBgColor8D6548 rwFontFamilyVerdana rwFontSize12px rwTextBold rwColorFFFFFF rwTextDecorationUnderline' onclick='rwShopAll(); return false;'>shop all</a>",'rwEntries',2,true,rwAfterLoadCmtsUI,pdtMaileridEmail,pdtMaileridSms,paddingArray,[" rwPdtImgSize rwTextAlignLeft rwBgColor8D6548  "," rwFeaturedPdtsLeftTitle "," rwBgColor8D6548 rwFontFamilyVerdana rwFontSize12px rwTextBold rwColorFFFFFF "," rwBgColor8D6548 rwFontFamilyVerdana rwFontSize12px rwTextBold rwColorFFFFFF "," rwBgColor8D6548 rwFontFamilyVerdana rwFontSize12px rwTextBold rwColorFFFFFF rwTextDecorationUnderline "," rwWidth152px "," rwFontFamilyVerdana rwFontSize10px rwColor333333 ",null,null]);}
var stLoadCommentUI=function()
{stGetCommentsUI('rwSecondRowFirstColSecondRow',stShowProductEntries,true,510,323,31,'comments',VERSION_DIR+'img/button_submit.png',VERSION_DIR+'img/button_cancel.png','rwBorderNone','rwCommentsPanel','rwBorderLRB1','rwFontVerdana12 rwColorFFFFFF rwTextBold rwValignMiddle','rwFontArial13 rwTextBold rwColor333333','','');}
var stLoadStaticImage=function()
{stDisplayStaticImage("rwSecondRowSecondColFirstRow",375,452,VERSION_DIR+"img/partnership_image.jpg",null,null,null,' rwWidth96p ',false,true);stLoadCommentUI();}
stVideoOrImageDisplay(rwEntries[curEntryIdx],'rwSecondRowFirstColFirstRow',[510,452],[510,427],[496,415],0,0,0,0,VERSION_DIR+'img/','rwEntries['+curEntryIdx+']','stSwfCbkObject',stLoadStaticImage,false,false,[playerUrl,fileParam,isIcon,flashVar,appendFileUrl,updatePrgress,fullScreen],Defines.SHARE,45,'');}}
rwLoadEntries("partnership",loadAllPartnershipContent);}
function rwShowWomenPage()
{platformRegisterPageView('ca-so-rw.about','ca-so-rwanda.baskets');rwClearAll();rwShowAll(["rwSecondRowSecondColFirstRow","rwSecondRowSecondColSecondRow","rwSecondRowFirstColFirstRow","rwSecondRowFirstColSecondRow"]);rwSetPadding('rwSecondRowFirstColFirstRow','rwRightPading5');rwSetPadding('rwSecondRowFirstColSecondRow','rwTopPading5');rwSetPadding('rwSecondRowSecondColSecondRow','rwTopPading5');var afterLoadEntries=function()
{var swfIdx=rwGerVideoIndex();if(swfIdx!=-1)
{curEntryIdx=swfIdx;var playerUrl=VERSION_DIR+'swf/player_491x368_496x415_new.swf';var fileParam=null;var isIcon=false;var flashVar="videourl="+(rwEntries[swfIdx].entry_cdnfileurl?rwEntries[swfIdx].entry_cdnfileurl:rwEntries[swfIdx].entry_fileurl);var appendFileUrl=flashVar;var updatePrgress=false;var fullScreen=true;var stShowProductEntries=function()
{stShowListOfImageOrVideo('rwSecondRowSecondColSecondRow',rwAfterLoadCmtsUI,rwEntries,373,323,30,25,'meet a few of the path to peace master weavers',[6,6,0,6],false,VERSION_DIR+'img/star','rwLoadCurrentEntry','rwimageOrVideoListPanel','rwBorder1','rwLeftPadding18 rwFontVerdana12 rwColorFFFFFF rwTextBold','rwFontArial11 rwColorE53542 rwTextDecorationUnderline','rwFontArial11 rwColor333333','rwFontArial11 rwColor333333 rwTextBold','rwImageVideoListDivider');}
var stLoadCommentUI=function()
{stGetCommentsUI('rwSecondRowFirstColSecondRow',stShowProductEntries,true,510,323,31,'comments',VERSION_DIR+'img/button_submit.png',VERSION_DIR+'img/button_cancel.png','rwBorderNone','rwCommentsPanel','rwBorderLRB1','rwFontVerdana12 rwColorFFFFFF rwTextBold rwValignMiddle','rwFontArial13 rwTextBold rwColor333333','','');}
var stLoadStaticImage=function()
{stDisplayStaticImage("rwSecondRowSecondColFirstRow",375,452,VERSION_DIR+"img/women_image.jpg",null,null,null,' rwWidth96p ',false,true);stLoadCommentUI();}
stVideoOrImageDisplay(rwEntries[curEntryIdx],'rwSecondRowFirstColFirstRow',[510,452],[510,427],[496,415],0,0,0,0,VERSION_DIR+'img/','rwEntries['+curEntryIdx+']','stSwfCbkObject',stLoadStaticImage,false,false,[playerUrl,fileParam,isIcon,flashVar,appendFileUrl,updatePrgress,fullScreen],Defines.SHARE,45,'');}}
rwLoadEntries("women",afterLoadEntries);}
function rwShowChangingCommunitiesPage()
{platformRegisterPageView('ca-so-rw.helping','ca-so-rwanda.baskets');rwClearAll();rwShowAll(["rwSecondRowSecondColFirstRow","rwSecondRowFirstColFirstRow","rwThirdRow"]);var textContentHTML="<font class=\"rwFontVerdana12 rwColor333333\">"+"<font class=\"rwtextHeadingFont\">CHANGING COMMUNITIES</font><br>"+"The Path to Peace project has dramatically changed the lives of many Rwandans. From public health initiatives and HIV/AIDS care to the spirit of hope and reconciliation fostered by the weavers, the tangible and intangible impact of the project is no longer measured by individual weavers but by whole communities."+"<br><br><font class=\"rwtextSubHeadingFont\">PUBLIC HEALTH</font><br>"+"Today, entire villages have clean water because families can afford water purification tablets or bottled water, and they're happy to share with their neighbors and fellow weavers. The use of SuperNet mosquito netting, once too expensive, has helped reduce cases of Malaria,  a deadly disease carried by the insects. And perhaps most importantly medical insurance, once a luxury, is now readily available and affordable to protect the weavers and their families."+"<br><br><font class=\"rwtextSubHeadingFont\">HIV/AIDS</font><br>"+"Income earned while weaving Path to Peace baskets has greatly improved the lives of HIV-positive weavers. They use their earnings to better meet their nutritional needs, increasing their overall health and the effectiveness of their medication.  No longer stigmatized by the community, they are instead respected for earning an income. They have their pride back, and with it hope for the future."+"<br><br><font class=\"rwtextSubHeadingFont\">RECONCILIATION</font><br>"+"The project employs thousands of weavers who are organized locally in smaller weaving groups throughout the Rwanda. Amazingly, every group consists of both Hutu and Tutsi weavers, women from both sides of the 1994 conflict. They work side-by-side, weaving, talking, working to earn their livings and in the process, building durable, respectful relationships across barriers that once seemed insurmountable.</font>";var paddingArray=[37,22,22,18];stDisplayStaticImage("rwSecondRowFirstColFirstRow",510,452,VERSION_DIR+"img/text_background.jpg",textContentHTML,null,paddingArray,' rwWidth96p ',false,false);rwSetPadding('rwSecondRowFirstColFirstRow','rwRightPading5 rwLineHeight20');stDisplayStaticImage("rwSecondRowSecondColFirstRow",375,452,VERSION_DIR+"img/impact_image.jpg",null,null,null,' rwWidth96p ',false,true);var afterLoad=function()
{var paddingArray=[11,9,11,9,6];rwSetPadding('rwThirdRow','rwPaddingLeft5 rwPaddingBottom5');stShowPrdtEntries("rwThirdRow",rwEntries,888,315,31,false,true,"featured products","<a href='#' target='_blank' class='rwBgColor8D6548 rwFontFamilyVerdana rwFontSize12px rwTextBold rwColorFFFFFF rwTextDecorationUnderline' onclick='rwShopAll(); return false;'>shop all</a>",'rwEntries',5,true,ssOnLoadCompleted,pdtMaileridEmail,pdtMaileridSms,paddingArray,[" rwProductImageBottomView ",""," rwWidth152px rwTextAlignLeft rwBgColor8D6548 "," rwFeaturedPdtsLeftTitle "," rwFeaturedPdtsRightTitle "," rwTextAlignLeft rwWidth166px ",null,null,null]);}
rwLoadEntries("impact",afterLoad);}
function rwShowImprovingtheLivesofChildrenPage()
{platformRegisterPageView('ca-so-rw.helping','ca-so-rwanda.baskets');rwClearAll();rwShowAll(["rwSecondRowSecondColFirstRow","rwSecondRowFirstColFirstRow","rwThirdRow"]);var textContentHTML="<font class=\"rwFontVerdana12 rwColor333333\">"+"<font class=\"rwtextHeadingFont\">IMPROVING THE LIVES OF CHILDREN</font>"+"<br>The project and the income it generates has improved the lives of at least 18,000 children, providing access to education, health care and more."+"<br><br>Education has become a priority for the weavers, and they are now able to pay school fees, purchase essential supplies like pencils, paper and text books, and provide shoes and clean uniforms. They can even afford kerosene and candles to provide light in the evening so children can complete their schoolwork."+"<br><br>Weavers are also able to meet their kids health and nutritional needs, sending them to school after a full breakfast and with food for lunch. They provide water purification tablets and bottled water so children have clean drinking water throughout the day and, perhaps most importantly, they now have affordable health insurance and access to medical care when they need it."+"<br><br>Beyond the obvious benefits of scholastic supplies and health care, the children in weavers' communities are benefiting in a number of less tangible ways. They feel immense pride in their mother's ability to provide for them, praising them to friends and telling classmates that their mother's baskets sell in America.  The children are also enjoying strengthened relationships with their fathers who look after them while their mothers weave. The strong, cooperative relationships being forged between women and men are providing excellent examples for the future.</font>";var paddingArray=[37,22,22,18];stDisplayStaticImage("rwSecondRowFirstColFirstRow",510,452,VERSION_DIR+"img/text_background.jpg",textContentHTML,null,paddingArray,' rwWidth96p ',false,false);rwSetPadding('rwSecondRowFirstColFirstRow','rwRightPading5 rwLineHeight20');stDisplayStaticImage("rwSecondRowSecondColFirstRow",375,452,VERSION_DIR+"img/impact_children_image.jpg",null,null,null,' rwWidth96p ',false,true);var afterLoad=function()
{paddingArray=[11,9,11,9,6];rwSetPadding('rwThirdRow','rwPaddingLeft5 rwPaddingBottom5');stShowPrdtEntries("rwThirdRow",rwEntries,888,315,31,false,true,"featured products","<a href='#' target='_blank' class='rwBgColor8D6548 rwFontFamilyVerdana rwFontSize12px rwTextBold rwColorFFFFFF rwTextDecorationUnderline' onclick='rwShopAll(); return false;'>shop all</a>",'rwEntries',5,true,ssOnLoadCompleted,pdtMaileridEmail,pdtMaileridSms,paddingArray,[" rwProductImageBottomView ",""," rwWidth152px rwTextAlignLeft rwBgColor8D6548 "," rwFeaturedPdtsLeftTitle "," rwFeaturedPdtsRightTitle "," rwTextAlignLeft rwWidth166px ",null,null,null]);}
rwLoadEntries("children",afterLoad);}
function rwShowLettersFromWeaverPage()
{platformRegisterPageView('ca-so-rw.helping','ca-so-rwanda.baskets');rwClearAll();rwShowAll(["rwFourthRow"]);rwSetPadding('rwSecondRow','');rwSetPadding('rwFourthRow','rwPading5');var html="";if(!swfobject.getFlashPlayerVersion().major||swfobject.getFlashPlayerVersion().major<9)
{html="Flash Player version 9 or greater is required. <a class='rwFlashClickHere' target='_blank' href='http://get.adobe.com/flashplayer'>Click here</a> to install it.";}
else
{var flashvars="";html='<table cellpadding="0" cellspacing="0">'+'<tr>'+'<td class="rwLettersFlashHeight rwAlignCenter rwValignMiddle">'+
getPlayerHtml("_idLandingFlash",888,774,VERSION_DIR+'swf/rwanda_letters.swf',null,false,flashvars,flashvars)+'</td>'+'</tr>'+'</table>';}
stSetInnerHTML('rwFourthRow',html);ssOnLoadCompleted();}
function rwShowCustomerReviewsPage()
{platformRegisterPageView('ca-so-rw.favorites','ca-so-rw.people');rwClearAll();rwShowAll(["rwSecondRowFirstColFirstRow","rwSecondRowSecondColFirstRow"]);var html="";if(!swfobject.getFlashPlayerVersion().major||swfobject.getFlashPlayerVersion().major<9)
{html="Flash Player version 9 or greater is required. <a class='rwFlashClickHere' target='_blank' href='http://get.adobe.com/flashplayer'>Click here</a> to install it.";}
else
{var flashvars="";html='<table cellpadding="0" cellspacing="0">'+'<tr>'+'<td class="rwHeight452 rwAlignCenter rwValignMiddle">'+
getPlayerHtml("_idLandingFlash",510,452,VERSION_DIR+'swf/rwanda_customer_review.swf',null,false,flashvars,flashvars)+'</td>'+'</tr>'+'</table>';}
rwSetPadding('rwSecondRowFirstColFirstRow','rwRightPading5');stSetInnerHTML('rwSecondRowFirstColFirstRow',html);var afterLoad=function()
{var paddingArray=[15,17,15,17,15];stShowPrdtEntries("rwSecondRowSecondColFirstRow",rwEntries,372,452,31,true,true,"featured products","<a href='#' target='_blank' class='rwBgColor8D6548 rwFontFamilyVerdana rwFontSize12px rwTextBold rwColorFFFFFF rwTextDecorationUnderline' onclick='rwShopAll(); return false;'>shop all</a>",'rwEntries',2,true,ssOnLoadCompleted,pdtMaileridEmail,pdtMaileridSms,paddingArray,[" rwProductImageCustReview "," "," rwWidth152px rwTextAlignLeft rwBgColor8D6548 "," rwFeaturedPdtsLeftTitle "," rwFeaturedPdtsRightTitle "," rwTextAlignLeft rwWidth152px ",null,null,null]);}
rwLoadEntries("reviews",afterLoad);}
function rwShowShareYourStoryPage()
{platformRegisterPageView('ca-so-rw.share','ca-so-rw.people');rwClearAll();rwShowAll(["rwSecondRowSecondColFirstRow","rwSecondRowSecondColSecondRow","rwSecondRowFirstColFirstRow","rwSecondRowFirstColSecondRow"]);var rwLoadPdtsList=function()
{rwSetPadding('rwSecondRowSecondColSecondRow','rwPaddingTop20px');stShowListOfImageOrVideo('rwSecondRowSecondColSecondRow',rwAfterLoadCmtsUI,rwEntries,373,420,30,25,'all stories',[6,6,0,6],false,VERSION_DIR+'img/star','stRefreshEntriesAfterUpload','rwimageOrVideoListPanel','rwBorder1','rwLeftPadding18 rwFontVerdana12 rwColorFFFFFF rwTextBold','rwFontArial11 rwColorE53542 rwTextDecorationUnderline','rwFontArial11 rwColor333333','rwFontArial11 rwColor333333 rwTextBold','rwImageVideoListDivider');}
var rwGetUploadForm=function()
{var rwIsIE=(navigator.appVersion.indexOf("MSIE")!=-1)
stUploadForm('rwSecondRowSecondColFirstRow',375,340,'rwBorder1 rwBgColorWhite','rwPadding10','',VERSION_DIR+'img/share_story_title.jpg','','rwFontMyraidPro13','Here\'s your chance to share how the Path to Peace project has touched your life. Do you love decorating with a colorful fruit bowl!? Has the Peace Basket become a gift you love to give? Upload a picture of your favorite Path to Peace item and tell us your story','rwTopPading3','rwWidth80','rwWidth263px','rwFontMyraidPro13','','Title:','Description:','','File:',(rwIsIE?'rwWidth263px':'rwTextareaSize'),31,'',VERSION_DIR+'img/button_upload.jpg','rwDoCreate',false,'rwErrHeight rwFontMyraidPro13 rwTextBold rwColorRed');rwSetPadding('rwSecondRowFirstColSecondRow','rwPaddingTop20px');stGetCommentsUI('rwSecondRowFirstColSecondRow',rwLoadPdtsList,true,510,260,31,'comments',VERSION_DIR+'img/button_submit.png',VERSION_DIR+'img/button_cancel.png','rwBorderNone','rwCommentsPanel','rwBorderLRB1','rwFontVerdana12 rwColorFFFFFF rwTextBold rwValignMiddle','rwFontArial13 rwTextBold rwColor333333','');}
var showVideoOrImgDisplay=function()
{rwSetPadding('rwSecondRowFirstColFirstRow','rwRightPading5');var playerUrl=VERSION_DIR+'swf/player_491x368_496x415_new.swf';var fileParam=null;var isIcon=false;var flashVar="videourl="+(rwEntries[curEntryIdx].entry_cdnfileurl?rwEntries[curEntryIdx].entry_cdnfileurl:rwEntries[curEntryIdx].entry_fileurl);var appendFileUrl=flashVar;var updatePrgress=true;var fullScreen=true;var isImage=(rwEntries[curEntryIdx].entry_mediatype==ST_MEDIA_TYPE_IMAGE?true:false);stVideoOrImageDisplay(rwEntries[curEntryIdx],'rwSecondRowFirstColFirstRow',[510,500],(isImage?[510,340]:[496,415]),(isImage?[510,340]:[496,415]),15,50,60,135,VERSION_DIR+'img/','rwEntries['+curEntryIdx+']','stSwfCbkObject',rwGetUploadForm,true,isImage,[playerUrl,fileParam,isIcon,flashVar,appendFileUrl,updatePrgress,fullScreen],Defines.SHARE_THIS,80,'rwBorder1');}
rwLoadEntries("share_your_story",showVideoOrImgDisplay);}
function rwDoCreate(idFormCreateEntry,idForm)
{var uploadForm=document.getElementById(idForm);var imgName=(uploadForm?platformTrim(uploadForm.file.value):'').toLowerCase();if(imgName.length>0&&(imgName.lastIndexOf(".png")!=-1||imgName.lastIndexOf(".gif")!=-1||imgName.lastIndexOf(".jpeg")!=-1||imgName.lastIndexOf(".jpg")!=-1))
{stDoCreate(idFormCreateEntry,idForm);}
else
{stSetInnerHTML('stErrMsg',ST_UPLOAD_MEDIA_INVALID);}}
function stRefreshEntriesAfterUpload(entryIdx)
{platformRegisterPageView('ca-so-rw.share.photos','ca-so-rw.people');curEntryIdx=(entryIdx?entryIdx:0);var afterGetEntries=function()
{if(entryIdx)
{rwAfterLoadCmtsUI();}
else
{stShowListOfImageOrVideo('rwSecondRowSecondColSecondRow',rwAfterLoadCmtsUI,rwEntries,373,420,30,25,'all stories',[6,6,0,6],false,VERSION_DIR+'img/star','stRefreshEntriesAfterUpload','rwimageOrVideoListPanel','rwBorder1','rwLeftPadding18 rwFontVerdana12 rwColorFFFFFF rwTextBold','rwFontArial11 rwColorE53542 rwTextDecorationUnderline','rwFontArial11 rwColor333333','rwFontArial11 rwColor333333 rwTextBold','rwImageVideoListDivider');}}
var showVideoOrImgDisplay=function()
{rwSetPadding('rwSecondRowFirstColFirstRow','rwRightPading5');var playerUrl=VERSION_DIR+'swf/player_491x368_496x415_new.swf';var fileParam=null;var isIcon=false;var flashVar="videourl="+(rwEntries[curEntryIdx].entry_cdnfileurl?rwEntries[curEntryIdx].entry_cdnfileurl:rwEntries[curEntryIdx].entry_fileurl);var appendFileUrl=flashVar;var updatePrgress=true;var fullScreen=true;var isImage=(rwEntries[curEntryIdx].entry_mediatype==ST_MEDIA_TYPE_IMAGE?true:false);stVideoOrImageDisplay(rwEntries[curEntryIdx],'rwSecondRowFirstColFirstRow',[510,500],(isImage?[510,340]:[496,415]),(isImage?[510,340]:[496,415]),15,50,60,135,VERSION_DIR+'img/','rwEntries['+curEntryIdx+']','stSwfCbkObject',afterGetEntries,true,isImage,[playerUrl,fileParam,isIcon,flashVar,appendFileUrl,updatePrgress,fullScreen],Defines.SHARE_THIS,45,'rwBorder1');}
rwLoadEntries("share_your_story",showVideoOrImgDisplay,entryIdx);}
function rwAfterLoadCmtsUI()
{var entryStasKeys=ST_ENTRY_STATS_PARAM_USERNAME+","+
ST_ENTRY_STATS_PARAM_REVIEW+","+
ST_ENTRY_STATS_PARAM_SKAVGRATING+","+
ST_ENTRY_STATS_PARAM_SKNUMRATERS;stGetEntryStatsAndComments(entryStasKeys,rwEntries[curEntryIdx].entry_id,0,rwOnCompleted,VERSION_DIR+'img/');}
function rwOnCompleted(result,bundleEntryPath,entry_id,startIdx,reportImgUrl,cmtsHeadingFontCss,cmtsFontCss)
{stLoadComments(result,bundleEntryPath,entry_id,startIdx,reportImgUrl,cmtsHeadingFontCss,cmtsFontCss);ssOnLoadCompleted();}
function rwLoadAllVideosPageContent(swfIdx)
{if(swfIdx!=-1)
{curEntryIdx=swfIdx;var playerUrl=VERSION_DIR+'swf/player_491x368_496x415_new.swf';var fileParam=null;var isIcon=false;var flashVar="videourl="+(rwEntries[swfIdx].entry_cdnfileurl?rwEntries[swfIdx].entry_cdnfileurl:rwEntries[swfIdx].entry_fileurl);var appendFileUrl=flashVar;var updatePrgress=false;var fullScreen=true;var stShowProductEntries=function()
{stShowListOfImageOrVideo('rwSecondRowSecondColFirstRow',rwAfterLoadCmtsUI,rwEntries,373,780,30,25,'all videos',[6,6,0,6],false,VERSION_DIR+'img/star','rwLoadCurrentEntry','rwimageOrVideoListPanel','rwBorder1','rwLeftPadding18 rwFontVerdana12 rwColorFFFFFF rwTextBold','rwFontArial11 rwColorE53542 rwTextDecorationUnderline','rwFontArial11 rwColor333333','rwFontArial11 rwColor333333 rwTextBold','rwImageVideoListDivider');}
var stLoadCommentUI=function()
{rwSetPadding('rwSecondRowFirstColSecondRow','rwPaddingTop20px');rwSetPadding('rwSecondRowFirstColFirstRow','rwRightPading5');stGetCommentsUI('rwSecondRowFirstColSecondRow',stShowProductEntries,true,510,(stIsIE?306:309),31,'comments',VERSION_DIR+'img/button_submit.png',VERSION_DIR+'img/button_cancel.png','rwBorderNone','rwCommentsPanel','rwBorderLRB1','rwFontVerdana12 rwColorFFFFFF rwTextBold rwValignMiddle','rwFontArial13 rwTextBold rwColor333333','','');}
stVideoOrImageDisplay(rwEntries[curEntryIdx],'rwSecondRowFirstColFirstRow',[510,452],[510,427],[496,415],0,0,0,0,VERSION_DIR+'img/','rwEntries['+curEntryIdx+']','stSwfCbkObject',stLoadCommentUI,false,false,[playerUrl,fileParam,isIcon,flashVar,appendFileUrl,updatePrgress,fullScreen],Defines.SHARE,45,'');}}
function rwShowAllVideosPage()
{platformRegisterPageView('ca-so-rw.video','ca-so-rwanda.baskets');rwClearAll();rwShowAll(["rwSecondRowFirstColFirstRow","rwSecondRowFirstColSecondRow","rwSecondRowSecondColFirstRow"]);var loadAllPartnershipContent=function()
{var swfIdx=rwGerVideoIndex();rwLoadAllVideosPageContent(swfIdx);}
rwLoadEntries("allvidoes",loadAllPartnershipContent);}
function rwLoadCurrentEntry(entryIdx)
{curEntryIdx=entryIdx;var playerUrl=VERSION_DIR+'swf/player_491x368_496x415_new.swf';var fileParam=null;var isIcon=false;var flashVar="videourl="+(rwEntries[curEntryIdx].entry_cdnfileurl?rwEntries[curEntryIdx].entry_cdnfileurl:rwEntries[curEntryIdx].entry_fileurl);var appendFileUrl=flashVar;var updatePrgress=false;var fullScreen=true;stVideoOrImageDisplay(rwEntries[curEntryIdx],'rwSecondRowFirstColFirstRow',[510,452],[510,427],[496,415],0,0,0,0,VERSION_DIR+'img/','rwEntries['+curEntryIdx+']','stSwfCbkObject',rwAfterLoadCmtsUI,false,false,[playerUrl,fileParam,isIcon,flashVar,appendFileUrl,updatePrgress,fullScreen],Defines.SHARE,45,'');}
function rwShowFruitBawlsPage()
{platformRegisterPageView('ca-so-rw.shop','ca-so-rwanda.baskets');rwClearAll();rwShowAll(["rwSecondRowSecondColFirstRow","rwSecondRowFirstColFirstRow","rwSecondRowFirstColSecondRow"]);rwSetPadding('rwSecondRowFirstColFirstRow','rwRightPading5');rwSetPadding('rwSecondRowFirstColSecondRow','rwTopPading5');var loadAllProcessContent=function()
{var swfIdx=rwGerVideoIndex();if(swfIdx!=-1)
{var playerUrl=VERSION_DIR+'swf/player_491x368_496x415_new.swf';var fileParam=null;var isIcon=false;var flashVar="videourl="+(rwEntries[swfIdx].entry_cdnfileurl?rwEntries[swfIdx].entry_cdnfileurl:rwEntries[swfIdx].entry_fileurl);var appendFileUrl=flashVar;var updatePrgress=false;var fullScreen=true;var stShowProductEntries=function()
{var paddingArray=[16,17,16,17,15];stShowPrdtEntries("rwSecondRowSecondColFirstRow",rwEntries,373,780,31,true,true,"fruit bowls","<a href='#' target='_blank' class='rwBgColor8D6548 rwFontFamilyVerdana rwFontSize12px rwTextBold rwColorFFFFFF rwTextDecorationUnderline' onclick='rwShopAll(); return false;'>shop all</a>",'rwEntries',2,true,rwAfterLoadCmtsUI,pdtMaileridEmail,pdtMaileridSms,paddingArray,[" rwPdtImgSize rwTextAlignLeft rwBgColor8D6548  "," rwFeaturedPdtsLeftTitle "," rwBgColor8D6548 rwFontFamilyVerdana rwFontSize12px rwTextBold rwColorFFFFFF "," rwBgColor8D6548 rwFontFamilyVerdana rwFontSize12px rwTextBold rwColorFFFFFF "," rwBgColor8D6548 rwFontFamilyVerdana rwFontSize12px rwTextBold rwColorFFFFFF rwTextDecorationUnderline "," rwWidth152px "," rwFontFamilyVerdana rwFontSize10px rwColor333333 ",null,null]);}
var stLoadCommentUI=function()
{stGetCommentsUI('rwSecondRowFirstColSecondRow',stShowProductEntries,true,510,324,31,'comments',VERSION_DIR+'img/button_submit.png',VERSION_DIR+'img/button_cancel.png','rwBorderNone','rwCommentsPanel','rwBorderLRB1','rwFontVerdana12 rwColorFFFFFF rwTextBold rwValignMiddle','rwFontArial13 rwTextBold rwColor333333','','');}
stVideoOrImageDisplay(rwEntries[curEntryIdx],'rwSecondRowFirstColFirstRow',[510,452],[510,427],[496,415],0,0,0,0,VERSION_DIR+'img/','rwEntries['+curEntryIdx+']','stSwfCbkObject',stLoadCommentUI,false,false,[playerUrl,fileParam,isIcon,flashVar,appendFileUrl,updatePrgress,fullScreen],Defines.SHARE,45,'');}}
rwLoadEntries("fruitbowl",loadAllProcessContent);}
function rwShowTeaTraysPage()
{platformRegisterPageView('ca-so-rw.shop','ca-so-rwanda.baskets');rwClearAll();rwShowAll(["rwSecondRowSecondColFirstRow","rwSecondRowFirstColFirstRow","rwSecondRowFirstColSecondRow"]);rwSetPadding('rwSecondRowFirstColFirstRow','rwRightPading5');rwSetPadding('rwSecondRowFirstColSecondRow','rwTopPading5');var loadAllProcessContent=function()
{var swfIdx=rwGerVideoIndex();if(swfIdx!=-1)
{var playerUrl=VERSION_DIR+'swf/player_491x368_496x415_new.swf';var fileParam=null;var isIcon=false;var flashVar="videourl="+(rwEntries[swfIdx].entry_cdnfileurl?rwEntries[swfIdx].entry_cdnfileurl:rwEntries[swfIdx].entry_fileurl);var appendFileUrl=flashVar;var updatePrgress=false;var fullScreen=true;var stShowProductEntries=function()
{var paddingArray=[16,17,16,17,15];stShowPrdtEntries("rwSecondRowSecondColFirstRow",rwEntries,373,780,31,true,true,"tea trays","<a href='#' target='_blank' class='rwBgColor8D6548 rwFontFamilyVerdana rwFontSize12px rwTextBold rwColorFFFFFF rwTextDecorationUnderline' onclick='rwShopAll(); return false;'>shop all</a>",'rwEntries',2,true,rwAfterLoadCmtsUI,pdtMaileridEmail,pdtMaileridSms,paddingArray,[" rwPdtImgSize rwTextAlignLeft rwBgColor8D6548  "," rwFeaturedPdtsLeftTitle "," rwBgColor8D6548 rwFontFamilyVerdana rwFontSize12px rwTextBold rwColorFFFFFF "," rwBgColor8D6548 rwFontFamilyVerdana rwFontSize12px rwTextBold rwColorFFFFFF "," rwBgColor8D6548 rwFontFamilyVerdana rwFontSize12px rwTextBold rwColorFFFFFF rwTextDecorationUnderline "," rwWidth152px "," rwFontFamilyVerdana rwFontSize10px rwColor333333 ",null,null]);}
var stLoadCommentUI=function()
{stGetCommentsUI('rwSecondRowFirstColSecondRow',stShowProductEntries,true,510,324,31,'comments',VERSION_DIR+'img/button_submit.png',VERSION_DIR+'img/button_cancel.png','rwBorderNone','rwCommentsPanel','rwBorderLRB1','rwFontVerdana12 rwColorFFFFFF rwTextBold rwValignMiddle','rwFontArial13 rwTextBold rwColor333333','','');}
stVideoOrImageDisplay(rwEntries[curEntryIdx],'rwSecondRowFirstColFirstRow',[510,452],[510,427],[496,415],0,0,0,0,VERSION_DIR+'img/','rwEntries['+curEntryIdx+']','stSwfCbkObject',stLoadCommentUI,false,false,[playerUrl,fileParam,isIcon,flashVar,appendFileUrl,updatePrgress,fullScreen],Defines.SHARE,45,'');}}
rwLoadEntries("teatray",loadAllProcessContent);}
function rwShowTextilesPage()
{platformRegisterPageView('ca-so-rw.shop','ca-so-rwanda.baskets');rwClearAll();rwShowAll(["rwSecondRowSecondColFirstRow","rwSecondRowFirstColFirstRow","rwSecondRowFirstColSecondRow"]);rwSetPadding('rwSecondRowFirstColFirstRow','rwRightPading5');rwSetPadding('rwSecondRowFirstColSecondRow','rwTopPading5');var loadAllProcessContent=function()
{var swfIdx=rwGerVideoIndex();if(swfIdx!=-1)
{var playerUrl=VERSION_DIR+'swf/player_491x368_496x415_new.swf';var fileParam=null;var isIcon=false;var flashVar="videourl="+(rwEntries[swfIdx].entry_cdnfileurl?rwEntries[swfIdx].entry_cdnfileurl:rwEntries[swfIdx].entry_fileurl);var appendFileUrl=flashVar;var updatePrgress=false;var fullScreen=true;var stShowProductEntries=function()
{var paddingArray=[16,17,16,17,15];stShowPrdtEntries("rwSecondRowSecondColFirstRow",rwEntries,373,780,31,true,true,"textiles","<a href='#' target='_blank' class='rwBgColor8D6548 rwFontFamilyVerdana rwFontSize12px rwTextBold rwColorFFFFFF rwTextDecorationUnderline' onclick='rwShopAll(); return false;'>shop all</a>",'rwEntries',2,true,rwAfterLoadCmtsUI,pdtMaileridEmail,pdtMaileridSms,paddingArray,[" rwPdtImgSize rwTextAlignLeft rwBgColor8D6548  "," rwFeaturedPdtsLeftTitle "," rwBgColor8D6548 rwFontFamilyVerdana rwFontSize12px rwTextBold rwColorFFFFFF "," rwBgColor8D6548 rwFontFamilyVerdana rwFontSize12px rwTextBold rwColorFFFFFF "," rwBgColor8D6548 rwFontFamilyVerdana rwFontSize12px rwTextBold rwColorFFFFFF rwTextDecorationUnderline "," rwWidth152px "," rwFontFamilyVerdana rwFontSize10px rwColor333333 ",null,null]);}
var stLoadCommentUI=function()
{stGetCommentsUI('rwSecondRowFirstColSecondRow',stShowProductEntries,true,510,324,31,'comments',VERSION_DIR+'img/button_submit.png',VERSION_DIR+'img/button_cancel.png','rwBorderNone','rwCommentsPanel','rwBorderLRB1','rwFontVerdana12 rwColorFFFFFF rwTextBold rwValignMiddle','rwFontArial13 rwTextBold rwColor333333','','');}
stVideoOrImageDisplay(rwEntries[curEntryIdx],'rwSecondRowFirstColFirstRow',[510,452],[510,427],[496,415],0,0,0,0,VERSION_DIR+'img/','rwEntries['+curEntryIdx+']','stSwfCbkObject',stLoadCommentUI,false,false,[playerUrl,fileParam,isIcon,flashVar,appendFileUrl,updatePrgress,fullScreen],Defines.SHARE,45,'');}}
rwLoadEntries("textiles",loadAllProcessContent);}
function rwShowPeaceBasketsPage()
{platformRegisterPageView('ca-so-rw.shop','ca-so-rwanda.baskets');rwClearAll();rwShowAll(["rwSecondRowFirstColFirstRow","rwSecondRowSecondColFirstRow","rwSecondRowFirstColSecondRow"]);rwSetPadding('rwSecondRowFirstColFirstRow','rwRightPading5');rwSetPadding('rwSecondRowFirstColSecondRow','rwTopPading5');var loadAllProcessContent=function()
{var swfIdx=rwGerVideoIndex();if(swfIdx!=-1)
{var playerUrl=VERSION_DIR+'swf/player_491x368_496x415_new.swf';var fileParam=null;var isIcon=false;var flashVar="videourl="+(rwEntries[swfIdx].entry_cdnfileurl?rwEntries[swfIdx].entry_cdnfileurl:rwEntries[swfIdx].entry_fileurl);var appendFileUrl=flashVar;var updatePrgress=false;var fullScreen=true;var stShowProductEntries=function()
{var paddingArray=[16,17,16,17,15];stShowPrdtEntries("rwSecondRowSecondColFirstRow",rwEntries,373,780,31,true,true,"peace baskets & more","<a href='#' target='_blank' class='rwBgColor8D6548 rwFontFamilyVerdana rwFontSize12px rwTextBold rwColorFFFFFF rwTextDecorationUnderline' onclick='rwShopAll(); return false;'>shop all</a>",'rwEntries',2,true,rwAfterLoadCmtsUI,pdtMaileridEmail,pdtMaileridSms,paddingArray,[" rwPdtImgSize rwTextAlignLeft rwBgColor8D6548  "," rwFeaturedPdtsLeftTitle "," rwBgColor8D6548 rwFontFamilyVerdana rwFontSize12px rwTextBold rwColorFFFFFF "," rwBgColor8D6548 rwFontFamilyVerdana rwFontSize12px rwTextBold rwColorFFFFFF "," rwBgColor8D6548 rwFontFamilyVerdana rwFontSize12px rwTextBold rwColorFFFFFF rwTextDecorationUnderline "," rwWidth152px "," rwFontFamilyVerdana rwFontSize10px rwColor333333 ",null,null]);}
var stLoadCommentUI=function()
{stGetCommentsUI('rwSecondRowFirstColSecondRow',stShowProductEntries,true,510,324,31,'comments',VERSION_DIR+'img/button_submit.png',VERSION_DIR+'img/button_cancel.png','rwBorderNone','rwCommentsPanel','rwBorderLRB1','rwFontVerdana12 rwColorFFFFFF rwTextBold rwValignMiddle','rwFontArial13 rwTextBold rwColor333333','','');}
stVideoOrImageDisplay(rwEntries[curEntryIdx],'rwSecondRowFirstColFirstRow',[510,452],[510,427],[496,415],0,0,0,0,VERSION_DIR+'img/','rwEntries['+curEntryIdx+']','stSwfCbkObject',stLoadCommentUI,false,false,[playerUrl,fileParam,isIcon,flashVar,appendFileUrl,updatePrgress,fullScreen],Defines.SHARE,45,'');}}
rwLoadEntries("peacebaskets",loadAllProcessContent);}
function rwShopAll()
{ssOnLoadCompleted(true);platformRegisterPageView('ca-so-rw.shop','ca-so-rwanda.baskets');rwClearAll();rwShowAll(["rwThirdRow"]);rwSetPadding('rwSecondRow','');rwSetPadding('rwThirdRow','rwPading5');var afterLoad=function()
{var paddingArray=[15,17,15,17,19];stShowPrdtEntries("rwThirdRow",rwEntries,888,772,31,true,true,"all products",null,'rwEntries',5,true,ssOnLoadCompleted,pdtMaileridEmail,pdtMaileridSms,paddingArray,[" rwPdtImgSize rwTextAlignLeft rwBgColor8D6548  "," rwFeaturedPdtsLeftTitle "," rwBgColor8D6548 rwFontFamilyVerdana rwFontSize12px rwTextBold rwColorFFFFFF "," rwBgColor8D6548 rwFontFamilyVerdana rwFontSize12px rwTextBold rwColorFFFFFF "," rwBgColor8D6548 rwFontFamilyVerdana rwFontSize12px rwTextBold rwColorFFFFFF rwTextDecorationUnderline "," rwWidth152px "," rwFontFamilyVerdana rwFontSize10px rwColor333333 ",null,null]);}
rwLoadEntries("shopall",afterLoad);}
function rwGerVideoIndex()
{var swfIdx=-1;var firstVideoIndex=-1;for(var i=0;i<rwEntries.length;i++)
{if(rwEntries[i].entry_mediatype==ST_MEDIA_TYPE_VIDEO)
{firstVideoIndex=(firstVideoIndex==-1)?i:firstVideoIndex;swfIdx=(currentEntryId&&currentEntryId==rwEntries[i].entry_id)?i:swfIdx;}}
swfIdx=(swfIdx!=-1)?swfIdx:firstVideoIndex;return swfIdx;}
function rwClearAll()
{for(var i=0;i<RW_DOM_IDS.length;i++)
{var element=document.getElementById(RW_DOM_IDS[i]);if(element)
{element.innerHTML="";element.className="";element.style.visibility="hidden";}}
var node=document.getElementById('rwSecondRow');if(node)
{node.className='rwPading5';}}
function rwShowAll(idArray)
{var secondRowPrefix="rws";var thirdRowPrefix="rwt";var fourthRowPrefix="rwf";var isSecondRowDisplay=false;var isThirdRowDisplay=false;var isFourthRowDisplay=false;for(var i=0;(!isSecondRowDisplay||!isThirdRowDisplay||!isFourthRowDisplay)&&i<idArray.length;i++)
{if((!isSecondRowDisplay)&&idArray[i]&&idArray[i].toLowerCase().indexOf(secondRowPrefix)==0)
{isSecondRowDisplay=true;}
if((!isThirdRowDisplay)&&idArray[i]&&idArray[i].toLowerCase().indexOf(thirdRowPrefix)==0)
{isThirdRowDisplay=true;}
if((!isFourthRowDisplay)&&idArray[i]&&idArray[i].toLowerCase().indexOf(fourthRowPrefix)==0)
{isFourthRowDisplay=true;}}
innerContent=''+'<table cellpadding="0" cellspacing="0">';if(isSecondRowDisplay)
{innerContent+=''+'<tr>'+'<td class="rwPading5" id="rwSecondRow" valign="top">'+
rwSecondRowHTML+'</td>'+'</tr>';}
if(isThirdRowDisplay)
{innerContent+=''+'<tr>'+'<td id="rwThirdRow" valign="top">'+'</td>'+'</tr>';}
if(isFourthRowDisplay)
{innerContent+=''+'<tr>'+'<td id="rwFourthRow" valign="top">'+'</td>'+'</tr>';}
innerContent+=''+'</table>';stSetInnerHTML('rwDisplayContent',innerContent);for(var i=0;i<idArray.length;i++)
{var element=document.getElementById(idArray[i]);if(element)
{element.style.visibility="visible";}}}
function loadFlash()
{if(bundle_entryPathSA)
{currentEntryId=bundle_entryPathSA.substring(bundle_entryPathSA.lastIndexOf("/")+1);var rwOrigBundleNames=[["process","history","partnership","women"],["impact","children","tradevsaid","letters"],["customerreviews","share_your_story"],["allvidoes"],["fruitbowl","teatray","textiles","peacebaskets","shopall"],["landing"]];var bundleName=bundle_entryPathSA.substring(1,bundle_entryPathSA.lastIndexOf("/"));var menuIdx=-1;var subMenuIdx=-1;var found=false;for(var i=0;i<rwOrigBundleNames.length&&!found;i++)
{menuIdx=i;for(var j=0;j<rwOrigBundleNames[i].length;j++)
{if(rwOrigBundleNames[i][j]==bundleName)
{subMenuIdx=j;found=true;break;}}}
var callback=function()
{rwCbkMethod(menuIdx,subMenuIdx,currentEntryId);}
rwSetHeaders(callback);}
else
{platformRegisterPageView('ca-so-rw.intro','ca-so-rwanda.baskets');var html="";var node=document.getElementById("landingFlash");if(!swfobject.getFlashPlayerVersion().major||swfobject.getFlashPlayerVersion().major<9)
{html="Flash Player version 9 or greater is required. <a class='rwFlashClickHere' target='_blank' href='http://get.adobe.com/flashplayer'>Click here</a> to install it.";}
else
{var flashvars="";html='<table cellpadding="0" cellspacing="0">'+'<tr>'+'<td class="rwIntroFlashHeight rwAlignCenter rwValignMiddle">'+
getPlayerHtml("_idLandingFlash",888,568,VERSION_DIR+'swf/rwanda_intro.swf',null,false,flashvars,flashvars)+'</td>'+'</tr>'+'</table>';}
if(node)
{node.innerHTML=html;}}}
function rwSetPadding(elementId,paddingCss)
{var el=document.getElementById(elementId);if(el)
{el.className=paddingCss;return true;}
else
{return false;}}
function rwSetTimeOut(isFromFlash)
{Defines.flashTimer=setTimeout("rwShowLandingPage(true)",13000);}