function showTopAPrecipes() { // Browser sniffer. Written by PerlScriptsJavaScripts.com v3 = 0; op = 0; ie4 = 0; ie5 = 0; nn4 = 0; nn6 = 0; isMac = 0; aol = 0; if(document.images){ if(navigator.userAgent.indexOf("Opera") != -1){ op = 1; } else { if(navigator.userAgent.indexOf("AOL") != -1){ aol = 1; } else { ie4 = (document.all && !document.getElementById); nn4 = (document.layers); ie5 = (document.all && document.getElementById); nn6 = (document.addEventListener); } } } else { v3 = 1; } if(navigator.userAgent.indexOf("Mac") != -1){ isMac = 1; } var divwidth = width-(bordersize * 2); if(ie5){ // do this var divwidth = width; } if (width == 300) { var height = 250; var rowcount = 7; var divheight = height-(bordersize * 2); if(ie5){ // do this var divheight = height; } } else if (width == 250) { var height = 250; var rowcount = 5; var divheight = height-(bordersize * 2); if(ie5){ // do this var divheight = height; } } else if (width == 160) { var height = 600; var rowcount = 10; var divheight = height-(bordersize * 2); if(ie5){ // do this var divheight = height; } } else if (width == 120) { var height = 600; var rowcount = 8; var divheight = height-(bordersize * 2); if(ie5){ // do this var divheight = height; } } document.write(''); var iframe = document.getElementById("aprecipes"); // Initiate the iframe's document to null iframe.doc = null; // Depending on browser platform get the iframe's document, this is only // available if the iframe has already been appended to an element which // has been added to the document if(iframe.contentDocument) // Firefox, Opera iframe.doc = iframe.contentDocument; else if(iframe.contentWindow) // Internet Explorer iframe.doc = iframe.contentWindow.document; else if(iframe.document) // Others? iframe.doc = iframe.document; // If we did not succeed in finding the document then throw an exception if(iframe.doc == null) throw "Document not found, append the parent element to the DOM before creating the IFrame"; // Create the script inside the iframe's document which will call the iframe.doc.open(); iframe.doc.close(); // Return the iframe, now with an extra property iframe.doc containing the // iframe's document iframe.doc.write('
'); if (logo == "red") { iframe.doc.write('
'); } else { iframe.doc.write('
'); } iframe.doc.write('
'+title+'
'); iframe.doc.write('
    '); var myArray = [10]; myArray[0]='
  1. Chicken Supreme
  2. '; myArray[1]='
  3. Blueberry Cream Cheese Pound Cake
  4. '; myArray[2]='
  5. Taco Casserole
  6. '; myArray[3]='
  7. Vermont Cheddar Bisque
  8. '; myArray[4]='
  9. Robust Beef and Potato Soup
  10. '; myArray[5]='
  11. DC Stuffed Bell Peppers
  12. '; myArray[6]='
  13. Ranch Potatoes
  14. '; myArray[7]='
  15. Dr. Pepper Stew (MO)
  16. '; myArray[8]='
  17. Sugared Pecans
  18. '; myArray[9]='
  19. Pumpkin Applesauce Muffins
  20. '; for(x=0;x < rowcount;x++){ iframe.doc.write(myArray[x]); } iframe.doc.write('
'); iframe.doc.write('
'); iframe.doc.write('powered by American Profile.com'); iframe.doc.write('
'); iframe.doc.write('
'); iframe.doc.close(); }