thisMLC=_mlc+'/Contests/RecipeSearch';

var _proto='http://'; try{ if (window.location.protocol == "https:"){_proto='https://'; } } catch(rudy){}
_imgroot=_proto+"tvplex.go.com/buenavista/regisandkelly/contests/recipesearch/images";
try{ if (window.location.protocol=="file:" || location.href.match(/tvplex-tsdev/gi)!=null){ _proto='http://'; _imgroot='images'; }} catch(rudy){}

styles=[
[".butter","background:#003C60; border:1px solid #CAB5FA; color:#fff; font:bold 12px arial; cursor:default;"],
[".overbutter","background:#006898; border:1px solid #CAB5FA; color:#fff; font:bold 12px arial; cursor:hand;"],
["a","color:#7a65aa;"],
[".module","margin-bottom:10px;"],
[".imgtd","background:#B4D4FA; width:120px; vertical-align:top;"],
[".copydiv","padding:5px 20px 5px 15px; font:11px/13px arial;"],
[".copytd","background:white;"],
[".toptr","background:#B4D4FA;"],
[".hdrtd","color:#3162a4; font:bold 16px arial; padding:2px 0 2px 10px !important;"],
["#recipediv a","background:transparent !important; border:0 !important; padding:0 !important;"],
["#RECAP td","text-align:center; vertical-align:top; padding:2px;"],
["#recappic","width:102px; height:110px; vertical-align:middle !important;"],
["#recappic img","border:2px solid #8a75ba;"]
];
document.writeln('<style>');  for (sty in styles){ document.writeln(styles[sty][0]+'{ '+styles[sty][1]+' }'); }  document.writeln('</style>');

/*---VOTING STUFF---*/
function openZoom(_rid){ gid(_rid).style.display='block'; }
function closeZoom(_rid){ gid(_rid).style.display='none'; }


recipes=[

new recipeItem({ recipe:"Chicken Ben Contee", shortname:"Chicken Ben Contee", photo:"chicken-ben-contee", name:"Natalie Cordova", hometown:"Jacksonville, FL", about:"Chicken Ben Contee was named after a friend and dinner guest.  I had ripe tomatoes so I started throwing things together. I placed the chicken on the pasta tomato mixture and top it with cheese! I serve this dish at least once a month and it's always a hit.", ingredients:"Tomatoes, Pasta, Cheese", key:"Bacon", zoom:"200,84" }),

new recipeItem({ recipe:"Miso-Glazed Chicken Lollipops with Sesame Rice", shortname:"Chicken Lollipops", photo:"miso-glazed-chicken", name:"Janice Elder", hometown:"Charlotte, NC", about:"A Tokyo trip had an amazing influence on my southern cooking.  I add Japanese ingredients to things like catfish and grits, and this chicken creation is a huge success.  Chicken drummettes are transformed into lollipops and marinated before cooking.  Serve in a martini glass with sesame and ginger spiked rice.", ingredients:"Chicken, Rice, and Mirin", key:"Miso", zoom:"142,200" }),

new recipeItem({ recipe:"Glen's Gourmet (Drunken) Scallops", shortname:"Drunken Scallops", photo:"drunken-scallops", name:"Glen Hebert", hometown:"Taunton, MA", about:"I am an Electrician but feel I should have been a chef.  Most of my dishes I make up as I go along.  This recipe came from my family's love of scallops.  It's a one pan dish that is easy and delicious.  Serve with vegetables or rice side dish.", ingredients:"Lemon juice, Red peppers, Spinach", key:"Tequila", zoom:"200,125" }),

new recipeItem({ recipe:"Sista Cake", shortname:"Sista Cake", photo:"sista-cake", name:"Debi Land", hometown:"Penfield, NY", about:"This treasured Christmas tradition traveled to America from Denmark with my grandma in 1908.  Its combination of unique ingredients and unusual flavor make it a family favorite.  Now I have the opportunity to share this recipe with you.  I hope it becomes a tradition for you and yours.", ingredients:"Citron, Ground Almonds, Raisins", key:"Cardamom Seeds", zoom:"200,74" }),

new recipeItem({ recipe:"Gizzards Cantonese", shortname:"Gizzards Cantonese", photo:"gizzards-cantonese", name:"Karan Marbold", hometown:"Mechanicsville, VA", about:"When I was little, this was one of my favorite Lithuanian recipes. After my mom passed way, I did not have the recipe, so I had to recreate it. I changed it a bit, but it is always a party favorite, just don't tell the guests its gizzards before tasting.", ingredients:"Hearty Burgandy, Rosemary Leaves, Crushed Garlic", key:"Can of cream of onion soup", zoom:"200,181" }),

new recipeItem({ recipe:"BBQ Pork Chops with Cinnamon Apples", shortname:"BBQ Pork Chops", photo:"bbq-pork-chops", name:"Kelli McKenrick", hometown:"Highland Heights, KY", about:"I love entertaining people. I was planning a Bangles football party and wanted to make a delicious dish that everyone would love. I added everybody's favorite ingredients, including a BBQ sauce that Cincinnatian's love. This mouth-watering dish won the hearts of all my friends and family.", ingredients:"Pork Chops, Apples, Cinnamon", key:"BBQ Sauce", zoom:"200,184" }),

new recipeItem({ recipe:"My Big Fat Greek Strudel", shortname:"Greek Strudel", photo:"my-big-fat-greek-strudel", name:"Tania Hayek Mercer", hometown:"Washington, DC", about:"My Mediterranean mom and grandma made Spinach Phyllo Pie all the time with spinach and feta cheese layered in between stacks of phyllo dough.  I recreated it with vegetables to make one big strudel. When I have friends over I serve it as an appetizer with Greek yogurt.", ingredients:"Eggplant, Red Bell Peppers, Feta Cheese", key:"Currants (like mini-raisins)", zoom:"200,101" }),

new recipeItem({ recipe:"Scott's Tasty Texas Black Tip Shark", shortname:"Black Tip Shark", photo:"black-tip-shark", name:"Scott O'Rear", hometown:"San Antonio, TX", about:"My mom cooked old-fashioned comfort foods.  This evolved from her Salisbury steak recipe.  I use fish because it's healthier. I sauté all the wet ingredients to make the sauce, set it aside.  Coat with fish with cornstarch, fry it, then pour the sauce over it.  It's my family's favorite dinner.", ingredients:"Onions, Garlic, Ginger", key:"Black Tip Shark (or any firm flesh fish)", zoom:"200,137" }),

new recipeItem({ recipe:"Stuffed Rice Krispies Pork Chops", shortname:"Rice Krispies <br>Pork Chops", photo:"stuffed-pork-chops", name:"Ted Schorr", hometown:"Fort Lee, NJ", about:"I'm a 67 year old male, with 3 children, 4 grandchildren and a wife who hates to cook.  I was raised in Brooklyn by my immigrant mother.  Every holiday she would make a turkey using rice krispies stuffing.  I changed her recipe a little and use it with pork chops.", ingredients:"Spinach, Mozzarella Cheese, Parmesan Cheese", key:"Rice Krispies (toasted rice cereal)", zoom:"200,119" }),

new recipeItem({ recipe:"Spicy Vanilla Mango Shrimp with Black Bean and Tomato Salsa Dip", shortname:"Mango Shrimp", photo:"spicy-vanilla-mango-shrimp", name:"Deborah Wilcoxson", hometown:"Fullerton, CA", about:"My guests were coming for dinner with a short notice.  This is my \"pantry challenged\" recipe.  Simple to prepare, pleasant to the eyes and this one skillet dish can be an appetizer or main course. The sauce is prepared ahead and used on various meats and salads.  HOT or NOT!!", ingredients:"Mango, Vanilla Extract, Hot Sauce", key:"Shrimp", zoom:"148,200" })

];

voteHeader='<br><img src="'+_imgroot+'/header.jpg" width="550" height="75" border="0" alt="World\'s Greatest Family Recipe Contest"><br><br><br>';

introText='Help us by being the first round of judges in our <b>World\'s Greatest Family Recipe Search</b> based on the photos and descriptions below.  The four dishes with the most votes will become our in-studio competitors and will appear on LIVE starting next Mon, August 14th.<br><br><br>';

entryCopy=introText+'<b>Here\'s how to vote:</b> After reading the descriptions below, select your one (1) favorite dish.  Then scroll down to the very bottom of the page, click the button under your favorite dish and then press the VOTE NOW button. <b>You must click VOTE NOW at the bottom of the page to register your vote.</b><br><br>';

alreadyTaken='<div align="center"><br><span style="font-size:16px;"><b>Thanks!</b></span><br><br>You\'ve already voted, but be sure to tune in on August 10th as we announce our four finalists!\
<br><br><br><br><br><a href="http://liveregisandkelly.com">Return to the <b>LIVE with Regis and Kelly</b> homepage</a></div>';

notLoggedIn=introText+'Login or register and cast your vote!<br><br><br><br>';

successCopy='<div align="center"><br><span style="font-size:16px;"><b>Thanks for voting!</b></span><br><br>Be sure to tune in on August 10th as we announce our four finalists!\
<br><br><br><br><br><a href="http://liveregisandkelly.com">Return to the <b>LIVE with Regis and Kelly</b> homepage</a></div>';


function recipeItem(rec){
for (r in rec){ this[r]=rec[r]; }
var zoomwidth=rec.zoom.split(",")[0]; var zoomheight=rec.zoom.split(",")[1];
var outstring='<table border="0" cellspacing="0" cellpadding="0" align="center" class="module">\
<tr class="toptr"><td class="hdrtd" colspan="2">'+rec.recipe+'</td></tr>\
<td class="imgtd" align="center">\
<div style="width:120px; height:164px; position:relative;" id="recipediv">\
<div style="position:absolute; top:0; left:0; width:120px; height:164px;" align="center">\
<img src="'+_imgroot+'/'+rec.photo+'.jpg" width="120" height="150" border="0" alt=""><br>\
<a href="javascript:openZoom(\''+rec.photo+'\')"><img src="'+_imgroot+'/zoom.gif" width="50" height="14" border="0" alt="zoom"></a><br></div>\
<div id="'+rec.photo+'" style="position:absolute; top:-30; left:50; width:'+(parseFloat(zoomwidth)+2)+'px; display:none;">\
<div style="border:1px solid black;">\
<div style="padding:1px; background:white;" align="right"><a href="javascript:closeZoom(\''+rec.photo+'\')"><img src="'+_imgroot+'/close-x.gif" width="12" height="11" alt="" border="0"></a></div>\
<img src="'+_imgroot+'/'+rec.photo+'_zoom.jpg" width="'+zoomwidth+'" height="'+zoomheight+'" alt=""></div></div><br></div></td>\
<td class="copytd"><div class="copydiv">\
<b>By:</b> '+rec.name+'<br>\
&nbsp; &nbsp; &nbsp; '+rec.hometown+'<br><br>\
<b>About the recipe:</b> "'+rec.about+'"<br><br>\
<b>Some ingredients found in the recipe:</b> '+rec.ingredients+'<br><br>\
<b>Key ingredient:</b> '+rec.key+'</div></td></tr></table>';

this.toString=function(){ return outstring; }
this.write=function(){ document.writeln(outstring); }
this.writeThumb=function(val){
document.writeln('<table border="0" cellspacing="0" cellpadding="0" align="center"><tr><td style="font:bold 11px/13px arial; color:black;"><div style="height:26px;">'+rec.shortname+'</div></td></tr><tr><td id="recappic"><label for="question01-'+val+'"><img src="'+_imgroot+'/'+rec.photo+'_small.jpg" border="0" alt="'+rec.recipe+'" onclick="changeSelected('+val+')"></label></td></tr><tr><td><input type="radio" name="question01" id="question01-'+val+'" value="'+val+'" onclick="changeSelected('+val+')"></td></tr></table>');
}
return this;
}
function changeSelected(val){
gid('question01-'+val).checked=true
//inner('VOTENOWTEXT',recipes[val-1].recipe.toUpperCase());
gid('SUBMITBUTTON').disabled=false;
}

function clearAll(){
for (r=1; r<=10; r++){ gid('question01-'+r).checked=false; }
//inner('VOTENOWTEXT','MAKE A SELECTION');
gid('SUBMITBUTTON').disabled=true;
}

function writeForm(){

bgcolors=["#d4e2ef","#ddeaF8"];

for (r=0; r<recipes.length; r++){ recipes[r].write(); }

document.writeln('<div style="width:550px;"><br><br>');
document.writeln('<form name="voteform" action="index" method="post" style="padding:0; margin:0;">\
<table border="0" cellspacing="0" cellpadding="0" align="center" id="RECAP">\
<tr class="toptr"><td colspan="5" class="hdrtd" style="text-align:left;">Select Your Favorite</td></tr>\
<tr>');

for (r=0; r<=4; r++){
document.writeln('<td bgcolor="'+bgcolors[r%2]+'">');
recipes[r].writeThumb(r+1);
document.writeln('</td>');
}

document.writeln('</tr><tr class="toptr"><td colspan="5" class="hdrtd"><div style="height:1px;"><spacer/></div></td></tr><tr>');

for (r=5; r<=9; r++){
document.writeln('<td bgcolor="'+bgcolors[r%2]+'">');
recipes[r].writeThumb(r+1);
document.writeln('</td>');
}

document.writeln('</tr><tr><td colspan="5" style="padding-top:5px;">\
<div style="height:25px;"><input type="submit" name="SUBMIT" id="SUBMITBUTTON" value="VOTE NOW" class="butter" onmouseover="this.className=\'overbutter\'" onmouseout="this.className=\'butter\'" style="font-size:12px;"></div>\
</td></tr></table></form></div>');
//<div style="font:bold 11px arial; padding:5px; text-align:left;">\Selected: <span id="VOTENOWTEXT" style="font:bold 11px arial; color:black;">MAKE A SELECTION</span>\</div>
}


/*---OLD EMAIL SUBMISSION STUFF---*/
eee=[
["Name", "Please type in your name."],
["street", "Please type in your street address."],
["city", "Please type in your city."],
["state", "Please select your state or province."],
["daytime_phone", "Please type in your daytime phone number."],
["evening_phone", "Please type in your evening phone number."],
["E-Mail", "Please type in your e-mail address."],
["RECIPENAME", "Please type in the name of your recipe."],
["RECIPE", "Please type in your recipe."],
["MESSAGE", "Please type in the origin of your recipe."],
["file", "Please attach your photo."]
];

doEmailCheck=true;

introCopy='Sending your entry online gets your entry to us instantly. Follow these instructions to insure your entry is correct.\
<br><br>\
Your submission should include all of the following information: name, address, daytime and evening phone numbers, and email address. Be sure to attach a properly-formatted photo of you with your dish, <b>or we cannot consider your submission</b>.\
<br><br>\
"Live with Regis and Kelly" accepts the following formats for digital submission. Please follow these format and size recommendations carefully and properly attach your files to your questionnaire:\
<ul class="even">\
<li>Format your digital photo as a .JPG or .GIF.\
<li>The size of your formatted photo file should be 100K or smaller.\
<li><b>Photos will NOT be returned.</b>\
</ul>';

//lowerCopy='<div style="height:1px; background-color:#1F3984;"><spacer/></div><br>';
lowerCopy='<div style="height:1px; background-color:#1F3984;"><spacer/></div><br>\
"Live With Regis And Kelly" can provide no further technical support and accepts no responsibility for insuring the receipt of your e-mail and photo. If you experience repeated difficulties trying to submit your entry via e-mail, we recommend you send your letter and photo via U.S. mail to us at the following address:\
<br>\
<div align="center"><b>Live\'s "World\'s Greatest Family Recipe Search"</b><br>\
Ansonia Station<br>\
P.O. Box 234071<br>\
NY, NY 10023-9402<br></div>\
<br>\
Deadline for submissions is <b>Noon ET on Thursday, July 27th, 2006</b>. All submitted materials become the property of "LIVE with Regis and Kelly" and cannot be returned and may be used on the air.<br>';

function customCheckStuff(){
gid('OTHERINFO').value="\n\n\nBrowser: \n"+navigator.appName+"\n"+navigator.appVersion;
return true;
}