
var skava_uifunctions_userprofile_dbiconUrls={"icon1":"http://d3pnveezgteiph.cloudfront.net/cometogether/static/img/icons_avatar_large_1.jpg","icon2":"http://d3pnveezgteiph.cloudfront.net/cometogether/static/img/icons_avatar_large_2.jpg","icon3":"http://d3pnveezgteiph.cloudfront.net/cometogether/static/img/icons_avatar_large_3.jpg","icon4":"http://d3pnveezgteiph.cloudfront.net/cometogether/static/img/icons_avatar_large_4.jpg","icon5":"http://d3pnveezgteiph.cloudfront.net/cometogether/static/img/icons_avatar_large_5.jpg"};var skava_uifunctions_userprofile_iconUrls={"icon1":"http://d3pnveezgteiph.cloudfront.net/cometogether/static/img/icons_avatar_1.jpg","icon2":"http://d3pnveezgteiph.cloudfront.net/cometogether/static/img/icons_avatar_2.jpg","icon3":"http://d3pnveezgteiph.cloudfront.net/cometogether/static/img/icons_avatar_3.jpg","icon4":"http://d3pnveezgteiph.cloudfront.net/cometogether/static/img/icons_avatar_4.jpg","icon5":"http://d3pnveezgteiph.cloudfront.net/cometogether/static/img/icons_avatar_5.jpg"};var skava_uifunctions_userprofile_iconNames=["icon1","icon2","icon3","icon4","icon5"];var skava_uifunctions_invitation_themes=["Autumn Dinner","Barbecue","Birthday Party","Brunch","Burger Bash","Cajun Cookin'","Chinese","Cocktail Party","Dessert Party","Dinner Party","Wine Dinner","Fall Supper","Italian Feast","Japanese","Mexican","Pizza Party","Seafood","Other"];var skava_uifunctions_invitation_reasons=["Because giving back is important.","Because no family should go hungry.","Because together we can make a difference.","Because Macy's will match what we raise!","Because it's been too long since we've gotten together!","Because we're always looking for an excuse to party.","Because we love to entertain.","Because I want to show off my new dinnerware.","Because I've been looking to try out a new recipe.","Because good food and good friends are a perfect match."];var SKAVA_UI_INVITATION_YAHOO_CONTACTS="ycontacts";var SKAVA_UI_INVITATION_GOOGLE_CONTACTS="gcontacts";var SKAVA_UI_INVITATION_AOL_CONTACTS="acontacts";var SKAVA_UI_INVITATION_MSN_CONTACTS="mcontacts";var SKAVA_UI_INVITATION_FACEBOOK_CONTACTS="fcontacts";var skava_invitation_pledge_url="https://secure2.convio.net/a2h/site/Donation2?df_id=5320&5320.donation=form1";function userProfileClearErrorText(elid)
{var el=document.getElementById(elid);if(el)
{el.innerHTML="";}}
function userProfileShowProfileOption()
{var innerHtml='<table cellpadding="0" cellspacing="0" class="ctUsrProAlignTop">'+'<tr >'+'<td>'+'<table cellpadding="0" cellspacing="0">'+'<tr>';for(var i=0;i<skava_uifunctions_userprofile_iconNames.length;i++)
{var idEl="id_iconselect"+i;innerHtml+='<td><input class="ctUsrProCreateMarginProps" id='+idEl+' type="radio" name="profilephoto" value="'+skava_uifunctions_userprofile_dbiconUrls[skava_uifunctions_userprofile_iconNames[i]]+'" onclick="userProfileShowOption()" valign="middle"/></td>'+'<td><img src="'+skava_uifunctions_userprofile_iconUrls[skava_uifunctions_userprofile_iconNames[i]]+'" align="middle"/></td><td class="ctUsrProManageAvatarGap"></td><td class="ctUsrProManageAvatarGap"></td>';}
innerHtml+='</tr>'+'</table>'+'</td>'+'</tr>'+'<tr>'+'<td class="ctUsrProCreateOptPadding">'+'<input class="ctUsrProCreateMarginProps" id="id_uploadphoto" type="radio" name="profilephoto" value="Upload your own photo" onclick="userProfileShowFileUploadOption(\'id_divfileupload\')"/><font class="ctUsrProCreateVerdanaRegular">Upload your own photo</font><br/>'+'<div id="id_divfileupload" class="ctUsrProCreateButtonPadding"></div>'+'</td>'+'</tr>'+'<tr>'+'<td class="ctUsrProCreateOptPadding">'+'<input class="ctUsrProCreateMarginProps" id="id_fbprofilephoto" type="radio" name="profilephoto" value="Use My Facebook Profile Photo" onclick="showCommand()"/><font class="ctUsrProCreateVerdanaRegular">Facebook Profile pic</font><br/>'+'<div id="id_divfacebookprofilephoto" class="ctUsrProCreateButtonPadding"/>'+'<!--input id="id_facebookprofilephoto" type="button" value="Get Facebook Profile Pic" onclick="platformGetFacebookProfilePhoto()"/-->'+'</td>'+'</tr>'+'</table>';document.getElementById("id_showProfileSelection").innerHTML=innerHtml;userProfileShowOption();}
function userProfileShowOption()
{var file=document.getElementById("file");if(file)
{file.value=null;}
var upForm=document.getElementById("file_upload_form_id_divfileupload");if(upForm)
{upForm.parentNode.removeChild(upForm);}
var id_divfileupload=document.getElementById('id_divfileupload');if(id_divfileupload)
{id_divfileupload.style.display="none";}
var facebookPhotoUrl=document.getElementById("facebookPhotoUrl");if(facebookPhotoUrl)
{facebookPhotoUrl.src="";facebookPhotoUrl.style.visibility="hidden";}
var fbprofilephoto=document.getElementById('id_divfacebookprofilephoto');if(fbprofilephoto)
{fbprofilephoto.style.display="none";}}
function userProfileShowFileUploadOption(fileUplaodDiv)
{var id_optionprofilephoto=document.getElementById("id_optionprofilephoto");if(id_optionprofilephoto)
{id_optionprofilephoto.selectedIndex=0;}
var facebookPhotoUrl=document.getElementById("facebookPhotoUrl");if(facebookPhotoUrl)
{facebookPhotoUrl.src="";facebookPhotoUrl.style.visibility="hidden";}
var fbprofilephoto=document.getElementById('id_divfacebookprofilephoto');if(fbprofilephoto)
{fbprofilephoto.style.display="none";}
showFileUploadOptionCommon(fileUplaodDiv);}
function showFileUploadOptionCommon(fileUploadDiv,mediaType,mediaUrl)
{var divOption=document.getElementById(fileUploadDiv);var upForm=document.getElementById('file_upload_form_'+fileUploadDiv);if(!upForm)
{var uploadForm=document.createElement("form");uploadForm.setAttribute("method","post");uploadForm.setAttribute("id","file_upload_form_"+fileUploadDiv);uploadForm.setAttribute("name","file_upload_form_"+fileUploadDiv);uploadForm.setAttribute("enctype","multipart/form-data");uploadForm.setAttribute("encoding","multipart/form-data");uploadForm.setAttribute("target","upload_target");uploadForm.style.margin="0px";var innerHtml='<input type="hidden" name="key"></input>'+'<input type="hidden" name="AWSAccessKeyId"></input>'+'<input type="hidden" name="acl"></input>'+'<input type="hidden" name="success_action_redirect"></input>'+'<input type="hidden" name="policy"></input>'+'<input type="hidden" name="signature"></input>'+'<input type="hidden" name="Content-Type"></input>'+'<input class="ctUsrProCreateUploadButtonProp" name="file" id="file" size="27" type="file"/><br />';uploadForm.innerHTML=innerHtml;divOption.appendChild(uploadForm);}
else
{var file=document.getElementById("file");if(file)
{file.value=null;}}
divOption.style.height="25px";divOption.style.display="block";}
function showCommand()
{var divOption=document.getElementById('id_divfacebookprofilephoto');var html='<table cellpadding="0" cellspacing="0">'+'<tr>'+'<td><input class="ctUsrProCreateFbButtonProp ctUsrProManageFbButton" id="id_facebookprofilephoto" type="button" value="" onclick="platformGetFacebookProfilePhoto(null, \'user_name\')"/></td>'+'<td><img id="facebookPhotoUrl" class="ctUserProFacebookImg"></img></td>'+'</tr>'+'</table>';divOption.style.display="block";var id_optionprofilephoto=document.getElementById("id_optionprofilephoto");if(id_optionprofilephoto)
{id_optionprofilephoto.selectedIndex=-1;}
var file=document.getElementById("file");if(file)
{file.value=null;}
var upForm=document.getElementById("file_upload_form_id_divfileupload");if(upForm)
{upForm.parentNode.removeChild(upForm);}
document.getElementById('id_divfileupload').style.display="none";divOption.innerHTML=html;}
function invitationShowThemesAndReason(theme,reason)
{var themeDiv=document.getElementById('id_theme');var htmlThemes='<select id="id_themeoption">';for(var i=0;i<skava_uifunctions_invitation_themes.length;i++)
{htmlThemes+='<option value="'+skava_uifunctions_invitation_themes[i]+'" '+(theme==skava_uifunctions_invitation_themes[i]?'selected':'')+'>'+skava_uifunctions_invitation_themes[i]+'</option>';}
htmlThemes+='</select>';themeDiv.innerHTML=htmlThemes;var reasonDiv=document.getElementById('id_reason');var htmlReasons='<select id="id_reasonoption">';for(var i=0;i<skava_uifunctions_invitation_reasons.length;i++)
{htmlReasons+='<option value="'+skava_uifunctions_invitation_reasons[i]+'" '+(reason==skava_uifunctions_invitation_reasons[i]?'selected':'')+'>'+skava_uifunctions_invitation_reasons[i]+'</option>';}
htmlReasons+='</select>';reasonDiv.innerHTML=htmlReasons;}
function invitationShowUploadOption()
{var id_photoVideoArea=document.getElementById("id_imgPhotoDisp");if(id_photoVideoArea)
{id_photoVideoArea.style.height="0px";id_photoVideoArea.style.display="none";}
var innerHtml='<table cellpadding="0" cellspacing="0" class="ctInvUploadTable">'+'<tr>'+'<td>'+'<input class="ctInvCheckBoxProps" id="id_upload_photo_radio" name="eventMedia" type="radio" value="" '+(skava_invitation_create_tempArr.SKAVA_INVITATION_ID_ENTRY_TYPE==SKAVA_INVITATION_MEDIA_UPLOAD_PHOTO||skava_invitation_create_tempArr.SKAVA_INVITATION_ID_ENTRY_TYPE==SKAVA_INVITATION_MEDIA_UPLOAD_VIDEO?'checked':'')+' onclick="invitationShowInputOption(this)"/><font class="ctInvCreateInvGreetVerdanaRegular">&nbsp;Upload a Photo or Video</font>'+'</td>'+'</tr>'+'<tr>'+'<td colspan="2">'+'<div id="id_uploadphoto" class="ctInvCreateInvGreetOptionPadding"></div>'+'</td>'+'</tr>'+'<tr>'+'<td>'+'<input class="ctInvCheckBoxProps" id="id_upload_record_radio" name="eventMedia" type="radio" value="" '+(skava_invitation_create_tempArr.SKAVA_INVITATION_ID_ENTRY_TYPE==SKAVA_INVITATION_MEDIA_RECORD_VIDEO?'checked':'')+' onclick="invitationShowInputOption(this)"/><font class="ctInvCreateInvGreetVerdanaRegular">&nbsp;Record Your Own Video </font><font class="ctInvCreateInvGreetTxtAreaChars">(requires webcam)</font>'+'</td>'+'</tr>'+'<tr>'+'<td colspan="2">'+'<div id="id_recordvideo" class="ctInvCreateInvGreetOptionPadding"></div>'+'</td>'+'</tr>'+'<tr>'+'<td>'+'<input class="ctInvCheckBoxProps" id="id_no_photo_video" name="eventMedia" type="radio" value="" onclick="invitationShowInputOption(this)"></input><font class="ctInvCreateInvGreetVerdanaRegular">&nbsp;No Photo/Video</font>'+'</td>'+'</tr>'+'</table>';var id_photo_video_option=document.getElementById("id_photo_video_option");id_photo_video_option.innerHTML=innerHtml;id_photo_video_option.style.display="block";id_photo_video_option.className="ctInvCreateInvGreetPadding ctInvCreateInvGreetUpldPhotoVideoPadding ctInvCreateInvGreetUpldPhotoVideo";}
function ymailClick()
{invitationGrabContacts(SKAVA_UI_INVITATION_YAHOO_CONTACTS);}
function gmailClick()
{invitationGrabContacts(SKAVA_UI_INVITATION_GOOGLE_CONTACTS);}
function msnClick()
{invitationGrabContacts(SKAVA_UI_INVITATION_MSN_CONTACTS);}
function aolClick()
{invitationGrabContacts(SKAVA_UI_INVITATION_AOL_CONTACTS);}
function fbClick()
{invitationGrabContacts(SKAVA_UI_INVITATION_FACEBOOK_CONTACTS);}