var RcpLinks = new Array(); var RcpTitles = new Array(); var resultsPresentFlag = 'false';resultsPresentFlag = 'true';var strLink = "/food/recipes/recipe/0,,FOOD_9936_31441,00.html"+"?rsrc=like";RcpLinks[0] = strLink;RcpTitles[0] = 'Seared Salmon with Beet Risotto, Sauteed Spinach, Wild Mushrooms and a Beet and Carrot Micro-Green Salad with Carrot Sauce'; var strLink = "/food/recipes/recipe/0,,FOOD_9936_26566,00.html"+"?rsrc=like";RcpLinks[1] = strLink;RcpTitles[1] = 'Spinach, Mushroom, and Four Cheese Lasagna'; var strLink = "/food/recipes/recipe/0,,FOOD_9936_31101,00.html"+"?rsrc=like";RcpLinks[2] = strLink;RcpTitles[2] = 'Turkey Saltimbocca Roll-ups, Mushrooms and White Beans Ragout, Spinach with Pancetta and Onions'; var strLink = "/food/recipes/recipe/0,,FOOD_9936_22856,00.html"+"?rsrc=like";RcpLinks[3] = strLink;RcpTitles[3] = 'Sauteed Polish Sausage with Sweet Yellow Onions, Sauteed Spinach and Mushroom Risotto'; var strLink = "/food/recipes/recipe/0,,FOOD_9936_25754,00.html"+"?rsrc=like";RcpLinks[4] = strLink;RcpTitles[4] = 'Salisbury Steak with Wild Mushroom Gravy, Smashed Potatoes with garlic and Herb Cheese and Chives, Creamed Spinach'; function RecipesObject() { this.getRecipesLinks = getRecipesLinks; this.getRecipesTitles = getRecipesTitles; this.resultsPresent = resultsPresent; function resultsPresent() { var returnFlag = false; if(RcpLinks.length > 0 ||RcpTitles.length > 0) { if(resultsPresentFlag == 'true') { returnFlag = 'true'; } } return returnFlag; } function getRecipesLinks() { var returnLinks = new Array(); for (var i=0;i < RcpLinks.length; i++) { returnLinks[i] = RcpLinks[i]; } return returnLinks; } function getRecipesTitles() { var returnTitles = new Array(); for (var i=0;i < RcpTitles.length; i++) { returnTitles[i] = RcpTitles[i]; } return returnTitles; } }