breakFrames();var Delta={};var isFormSubmitted=false;var captchaShown=false;var bRequireRecaptcha=true;var alertTimeOut=5000;var nTimer;var reloadMessageCountsTimeout=30000;var reloadMessageCountsObjTimer;var badPwds=["111111","11111111","112233","121212","123123","123456","1234567","12345678","131313","232323","654321","666666","696969","777777","7777777","8675309","987654","aaaaaa","abc123","abc123","abcdef","abgrtyu","access","access14","action","albert","alexis","amanda","amateur","andrea","andrew","angela","angels","animal","anthony","apollo","apples","arsenal","arthur","asdfgh","asdfgh","ashley","asshole","august","austin","badboy","bailey","banana","barney","baseball","batman","beaver","beavis","bigcock","bigdaddy","bigdick","bigdog","bigtits","birdie","bitches","biteme","blazer","blonde","blondes","blowjob","blowme","bond007","bonnie","booboo","booger","boomer","boston","brandon","brandy","braves","brazil","bronco","broncos","bulldog","buster","butter","butthead","calvin","camaro","cameron","canada","captain","carlos","carter","casper","charles","charlie","cheese","chelsea","chester","chicago","chicken","cocacola","coffee","college","compaq","computer","cookie","cooper","corvette","cowboy","cowboys","crystal","cumming","cumshot","dakota","dallas","daniel","danielle","debbie","dennis","diablo","diamond","doctor","doggie","dolphin","dolphins","donald","dragon","dreams","driver","eagle1","eagles","edward","einstein","erotic","extreme","falcon","fender","ferrari","firebird","fishing","florida","flower","flyers","football","forever","freddy","freedom","fucked","fucker","fucking","fuckme","fuckyou","gandalf","gateway","gators","gemini","george","giants","ginger","golden","golfer","gordon","gregory","guitar","gunner","hammer","hannah","hardcore","harley","heather","helpme","hentai","hockey","hooters","horney","hotdog","hunter","hunting","iceman","iloveyou","internet","iwantu","jackie","jackson","jaguar","jasmine","jasper","jennifer","jeremy","jessica","johnny","johnson","jordan","joseph","joshua","junior","justin","killer","knight","ladies","lakers","lauren","leather","legend","letmein","letmein","little","london","lovers","maddog","madison","maggie","magnum","marine","marlboro","martin","marvin","master","matrix","matthew","maverick","maxwell","melissa","member","mercedes","merlin","michael","michelle","mickey","midnight","miller","mistress","monica","monkey","monkey","monster","morgan","mother","mountain","muffin","murphy","mustang","naked","nascar","nathan","naughty","ncc1701","newyork","nicholas","nicole","nipple","nipples","oliver","orange","packers","panther","panties","parker","pasword","password","password1","password12","password123","patrick","peaches","peanut","pepper","phantom","phoenix","player","please","pookie","porsche","prince","princess","private","purple","pussies","qazwsx","qwerty","qwertyui","rabbit","rachel","racing","raiders","rainbow","ranger","rangers","rebecca","redskins","redsox","redwings","richard","robert","rocket","rosebud","runner","rush2112","russia","samantha","sammy","samson","sandra","saturn","scooby","scooter","scorpio","scorpion","secret","sexsex","shadow","shannon","shaved","sierra","silver","skippy","slayer","smokey","snoopy","soccer","sophie","spanky","sparky","spider","squirt","srinivas","startrek","starwars","steelers","steven","sticky","stupid","success","suckit","summer","sunshine","superman","surfer","swimming","sydney","taylor","tennis","teresa","tester","testing","theman","thomas","thunder","thx1138","tiffany","tigers","tigger","tomcat","topgun","toyota","travis","trouble","trustno1","tucker","turtle","twitter","united","vagina","victor","victoria","viking","voodoo","voyager","walter","warrior","welcome","whatever","william","willie","wilson","winner","winston","winter","wizard","xavier","xxxxxx","xxxxxxxx","yamaha","yankee","yankees","yellow","zxcvbn","zxcvbnm","zzzzzz"];var activeChatId=0;function getUrlParam(c,e){c=c.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var b="[\\?&]"+c+"=([^&#]*)";var f=new RegExp(b);if(e==undefined){var d=f.exec(window.location.href)}else{var d=f.exec(e)}if(d==null){return""}else{return d[1]}}function dl(b){new Ajax.Updater("mainbody",b,{method:"get"})}function hideIMIntro(){var b="deltafx.html?wci=MemberSetting&setting=im_intronote&value=true";new Ajax.Request(b,{method:"get",onSuccess:function(d){var c=d.responseText;if(c!="OK"){showalert("Sorry, there was an error processing your request.\n\nPlease try again later.")}},onFailure:function(){showalert("Sorry, there was an error processing your request.\n\nPlease try again later.")}});Effect.SlideUp($("about_im"))}function freeForChat(){var b="deltafx.html?wci=component&type=free_for_chat";new Ajax.Request(b,{method:"get",onSuccess:function(d){var c=d.responseText;if(c!="OK"){showalert("Sorry, there was an error processing your request.\n\nPlease try again later.")}else{location.href=location.href}},onFailure:function(){showalert("Sorry, there was an error processing your request.\n\nPlease try again later.")}})}function showHideChatList(){if($("chatlist").style.display!="block"){showDiv($("chatlist"))}else{hideDiv($("chatlist"))}}function clearChatSessions(){showWait();if(activeChatId>0){try{hideDiv($("chatwindow_"+activeChatId));document.body.removeChild($("chatwindow_"+activeChatId));$("chatlist").hide();$("footpanel").hide();activeChatId=0}catch(b){}}var c="/messagewindow/messenger/?type=clear_sessions";new Ajax.Request(c,{method:"get",onSuccess:function(f){var e=f.responseText;if(e!="OK"){hideWait();showalert("Sorry, there was an error processing your request.\n\nPlease try again later or contact support@wayndating.com for assistance.")}else{try{hideWait();showalert("Thank you, your chat sessions have been cleared.")}catch(d){showalert(d)}}},onFailure:function(){showalert("Sorry, there was an error processing your request.\n\nPlease try again later or contact support@wayndating.com for assistance.");hideWait()}})}function imposeMaxLength(c,d,b){return(d.value.length<=b)||(c.keyCode==8||c.keyCode==46||(c.keyCode>=35&&c.keyCode<=40))}function loadChatWindow(d,h,f){var g="/messagewindow/?member_key="+d;if(activeChatId==d){return false}if(!f){var b=chatEnabled(d);switch(b){case"ERR:UPGRADE":ShowPG("VIP",1,location.href,null,"IM");return false;break;case"ERR:DISABLED":if(!h){showalert("Sorry, this member has chosen not to accept Instant Messages")}return false;break;case"ERR:OFFLINE":if(!h){showalert("Sorry, this member is not currently online.")}return false;break;case"OK":break;default:break}}if(activeChatId>0){try{hideDiv($("chatwindow_"+activeChatId));document.body.removeChild($("chatwindow_"+activeChatId))}catch(e){}}var c=document.createElement("div");c.id="chatwindow_"+d;c.style.display="none";c.style.zIndex=999999;c.style.position="fixed";c.style.overflow="hidden";c.style.width="390px";if(Prototype.Browser.IE){c.style.height="452px"}else{c.style.height="438px"}c.style.bottom="20";c.style.right="220";c.innerHTML='<table border="0" width="100%" height="100%"><tr><td align="center" valign="middle"></td></tr></table>';document.body.appendChild(c);Effect.Appear(c,{duration:0,from:0,to:1});new Ajax.Updater("chatwindow_"+d,g,{method:"get",onComplete:function(){loadChatData()}});activeChatId=d;SetCookie("wdim",d)}function chatEnabled(b){var d="deltafx.html?wci=IMEnabled&member_key="+b;var c="";new Ajax.Request(d,{method:"get",asynchronous:false,onSuccess:function(f){var e=f.responseText;c=e},onFailure:function(){showalert("Sorry, there was an error processing your request.\n\nPlease try again later or contact support@wayndating.com for assistance.");hideWait();return false}});return c}function loadChatData(){Delta.Messenger=new Delta.MessengerClass($("im_session_id").value,$("im_member_key").value,$("im_recipient_key").value);Delta.Messenger.loadAllMessages();Delta.Messenger.reloadMemberList();Delta.Messenger.setActiveChatList()}function initMeetingClass(){Delta.Meeting=new Delta.MeetingsClass()}function initPhotoClass(){Delta.Photo=new Delta.PhotoClass()}function initPGClass(){try{Delta.Payment=new Delta.PaymentClass()}catch(b){}}function unixtimetodate(b){var c=new Date(b*1000);return c}function doOptOut(b,c){showWait();var d="/OptOut/enter";var e="email="+b+"&opt="+c;new Ajax.Request(d,{method:"post",parameters:e,onSuccess:function(h){var g=h.responseText;if(g=="ERR:ISMEMBER"){hideWait();showalert("The email address "+unescape(b)+" is associated with a registered WAYNDating membership.<br><br>You cannot opt out until that membership has been deleted.<br><br>Please log in to your account and delete your membership via the link on the Settings page, or email support@wayndating.com for assistance.",1,1,0,0,600);return}if(g!="OK"){hideWait();showalert("Sorry, there was an error processing your request.\n\nPlease try again later or contact support@wayndating.com for assistance.")}else{try{hideWait();showalert("Thank you, your email preferences have been saved.");setTimeout("location.href='/';",3000)}catch(f){showalert(f)}}},onFailure:function(){showalert("Sorry, there was an error processing your request.\n\nPlease try again later or contact support@wayndating.com for assistance.");hideWait()}})}function loadPhotoImport(){var b="/WAYNPhotoImport";location.href=b}function loadProfile(c){if(c>0){var b="/viewprofile/?member_key="+c}else{var b="/viewprofile"}location.href=b}function breakFrames(){if(top.location!=location){top.location.href=document.location.href}}function waitFormSubmit(c){var b=document.createElement("div");b.id="blankformsubmit";b.style.display="none";b.style.zIndex=9999;b.style.backgroundColor="#CCCCCC";b.style.opacity="0.60";b.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity=60)";b.style.position="absolute";b.style.width="100%";b.style.height="100%";b.innerHTML='<table border="0" width="100%" height="100%"><tr><td align="center" valign="middle"><div><img src="/images/loading.gif" border="0"></div></td></tr></table>';var d;d=document.viewport.getScrollOffsets()["top"];b.style.top=parseInt(d);b.style.left="0px";document.body.appendChild(b);Effect.Appear(b,{duration:0,from:0,to:0.6});c.submit()}function showInteract(b){var c=$("interact_hover_in_"+b);c.style.backgroundColor="transparent";c.style.width="122px";c.style.zIndex="104";$("interact_hover_"+b).style.zIndex="1";$("interact_hover_"+b).style.padding="5px";$("interact_hover_"+b).style.backgroundRepeat="repeat";$("interact_hover_"+b).style.backgroundColor="#DED2E0";$("interact_hover_"+b).down("table").style.borderSpacing="2px";showDiv($("interact_hover_"+b));$("interact_ico_"+b).src="images/icons/ico_InteractEnrollerUp.gif"}function hideInteract(b){hideDiv($("interact_hover_"+b));$("interact_ico_"+b).src="images/icons/ico_InteractEnroller.gif"}function leftMenuHL(b){b.className="leftMenuHighlight"}function leftMenuUL(b){b.className="leftMenuNormal"}function IsLoggedInMember(c){var b=true;if((document.cookie=="")||(document.cookie==null)||(document.cookie==undefined)&&c!=true){new Ajax.Request("/website.html?wci=GetIsMember",{method:"GET",asynchronous:false,onSuccess:function(e){var d=e.responseText;if(d==0){b=false}}})}else{b=GetCookie("DELTASESH","UserID")>0?true:false}return b}function GetCookie(b,f){if(document.cookie.length>0){var h=document.cookie.indexOf(b+"=");if(h!=-1){h=h+b.length+1;var d=document.cookie.indexOf(";",h);if(-1==d){d=document.cookie.length}var g=document.cookie.substring(h,d)}if(f){var c=g.split("&");g=null;for(var e=0;e<c.length;e++){crumb=c[e].split("=");if(unescape(crumb[0])==f){g=crumb[1]}}}g=unescape(g);return g}return null}function DeleteCookie(b,d,c){if(Get_Cookie(b)){document.cookie=b+"="+((d)?";path="+d:"")+((c)?";domain="+c:"")+";expires=Thu, 01-Jan-1970 00:00:01 GMT"}}function SetCookie(d,f,b,i,e,h){var c=new Date();c.setTime(c.getTime());if(b){b=b*1000*60*60*24}var g=new Date(c.getTime()+(b));document.cookie=d+"="+escape(f)+((b)?";expires="+g.toGMTString():"")+((i)?";path="+i:"")+((e)?";domain="+e:"")+((h)?";secure":"")}function reloadMessageCounts(){var e=$("topMainMenuMailCount");var c=new Date();var f=-c.getTimezoneOffset();var d="deltafx.html?wci=GetMessageCount&tz_offset="+f;if(IsLoggedInMember(true)==false){return}try{if($("chatlist")){if(Delta.Messenger){Delta.Messenger.reloadMemberList()}else{Delta.Messenger=new Delta.MessengerClass(null,null,null);Delta.Messenger.reloadMemberList(true)}}}catch(b){}new Ajax.Request(d,{method:"get",onSuccess:function(i){var h=i.responseText;if(h=="ERR:LOGGEDOUT"){return}if(h=="ERR"){window.clearTimeout(reloadMessageCountsObjTimer);reloadMessageCountsObjTimer=setTimeout("reloadMessageCounts();",reloadMessageCountsTimeout);return}if(h.substring(0,2)!="OK"){window.clearTimeout(reloadMessageCountsObjTimer);reloadMessageCountsObjTimer=setTimeout("reloadMessageCounts();",reloadMessageCountsTimeout)}else{try{e.innerHTML=h.split(":")[1];window.clearTimeout(reloadMessageCountsObjTimer);reloadMessageCountsObjTimer=setTimeout("reloadMessageCounts();",reloadMessageCountsTimeout)}catch(g){}finally{window.clearTimeout(reloadMessageCountsObjTimer);reloadMessageCountsObjTimer=setTimeout("reloadMessageCounts();",reloadMessageCountsTimeout)}}},onError:function(){window.clearTimeout(reloadMessageCountsObjTimer);reloadMessageCountsObjTimer=setTimeout("reloadMessageCounts();",reloadMessageCountsTimeout)},onFailure:function(){window.clearTimeout(reloadMessageCountsObjTimer);reloadMessageCountsObjTimer=setTimeout("reloadMessageCounts();",reloadMessageCountsTimeout)}})}function topMenuSelectItem(){if($("topMenuSelectedItem")){var b=$("topMenuSelectedItem");$(b).down("td.topMainMenuLeftCell").style.background="url(/images/header/TopMenuTab_L.gif)";$(b).down("td.topMainMenuCenterCell").style.background="url(/images/header/TopMenuTab_C.gif)";$(b).down("td.topMainMenuRightCell").style.background="url(/images/header/TopMenuTab_R.gif)";$(b).down("span.topMenuText").style.color="#414244"}}function topMenuHL(b){$(b).down("td.topMainMenuLeftCell").style.background="url(/images/header/TopMenuTab_L.gif)";$(b).down("td.topMainMenuCenterCell").style.background="url(/images/header/TopMenuTab_C.gif)";$(b).down("td.topMainMenuRightCell").style.background="url(/images/header/TopMenuTab_R.gif)";$(b).down("span.topMenuText").style.color="#414244"}function topMenuUL(b){$(b).down("td.topMainMenuLeftCell").style.background="";$(b).down("td.topMainMenuCenterCell").style.background="";$(b).down("td.topMainMenuRightCell").style.background="";$(b).down("span.topMenuText").style.color="#EDE5EF"}function wordCount(d){if($(d)){var c=/[^A-Za-z0-9]+/gi;var b=d.value;b=b.strip();b.replace(c,"");b=b.split(" ");return b.length}else{return 0}}function charCount(b){return b.value.length}function showalert(g,d,f,b,c,e){ShowAlert(g,d,f,b,c,e)}function ShowAlert(j,k,h,g,b,i){var c=document.createElement("div");c.id="InteractBoxAlert";c.style.display="none";c.style.backgroundColor="transparent";c.style.zIndex=9999999999999;if(k==null){k=false}if(h==null){h=true}if(g==null){g=true}j=j.replace(/\n/g,"<br>");if(i==undefined){i=400}if(parseInt(i)<400||parseInt(i)>800){i=400}var e;if(h==true){e='<div id="iboxAlert" style="width:'+i+'px;cursor:pointer;" title="Click to close" onClick="clearTimeout(nTimer);hideAlertPopUp(\'InteractBoxAlert\');"><table border="0" cellspacing="0" cellpadding="0" width="100%">'}else{e='<div id="iboxAlert" style="width:'+i+'px;"><table border="0" cellspacing="0" cellpadding="0" width="100%">'}e+="<tr>";e+='<td style="background-image: url(images/elmBeigeTopLeft.gif); width: 10px; height: 10px;">';e+="</td>";e+='<td style="background-image: url(images/elmBeigeTopBorder.gif); background-repeat:repeat-x; height: 10px;">';e+="</td>";e+='<td style="background-image: url(images/elmBeigeTopRight.gif); width: 10px; height: 10px;">';e+="</td>";e+="</tr>";e+="<tr>";e+='<td width="10" style="background-image: url(images/elmBeigeLeftBorder.gif); background-repeat:repeat-y;">';e+="</td>";if(b==true){e+='<td style="padding-right: 4px; background-color:#fbfff5; padding:15px;" align="left" valign="middle">'}else{e+='<td style="padding-right: 4px; background-color:#fbfff5; padding:15px;" align="center" valign="middle">'}e+='<div class="headingBlack" style="overflow:auto;word-wrap: break-word;">';e+=j;e+="</div>";e+="";e+="</td>";e+='<td width="10" style="background-image: url(images/elmBeigeRightBorder.gif); background-repeat:repeat-y;">';e+="&nbsp;";e+="</td>";e+="</tr>";if(k==true){e+="<tr>";e+='<td width="10" style="background-image: url(images/elmBeigeLeftBorder.gif); background-repeat:repeat-y;">';e+="</td>";e+='<td style="padding-right: 4px; background-color:#fbfff5; padding:5px;" align="center">';e+='<a href="javascript:void(0);" onClick="clearTimeout(nTimer);hideAlertPopUp(\'InteractBoxAlert\');return false;">Close</a>';e+="</td>";e+='<td width="10" style="background-image: url(images/elmBeigeRightBorder.gif); background-repeat:repeat-y;">';e+="&nbsp;";e+="</td>";e+="</tr>"}e+="<tr>";e+='<td style="background-image: url(images/elmBeigeBottomLeft.gif); width: 10px; height: 10px;">';e+="</td>";e+='<td style="background-image: url(images/elmBeigeBottomBorder.gif); background-repeat:repeat-x; height: 10px;">';e+="</td>";e+='<td style="background-image: url(images/elmBeigeBottomRight.gif); width: 10px; height: 10px;">';e+="</td>";e+="</tr>";e+="</table></div>";c.innerHTML=e;document.body.appendChild(c);c.style.position="absolute";var l;var d;var f;f=Element.getHeight(c);l=document.viewport.getScrollOffsets()["top"]+(getVisibleHeight()/2)-(f/2);d=((document.viewport.getDimensions().width/2)-(Element.getWidth(c)/2));c.style.top=parseInt(l);c.style.left=parseInt(d);Effect.Appear(c);if(g==true){nTimer=setTimeout('hideAlertPopUp("InteractBoxAlert")',alertTimeOut)}if(alertTimeOut>5000){alertTimeOut=5000}}function hideAlertPopUp(b){new Effect.Fade(b,{afterFinish:function(){try{document.body.removeChild($(b))}catch(c){}}})}function findPosX(b){var c=0;if(b.offsetParent){while(1){c+=b.offsetLeft;if(!b.offsetParent){break}b=b.offsetParent}}else{if(b.x){c+=b.x}}return c}function findPosY(c){var b=0;if(c.offsetParent){while(1){b+=c.offsetTop;if(!c.offsetParent){break}c=c.offsetParent}}else{if(c.y){b+=c.y}}return b}function getPageSize(){var d,b;if(window.innerHeight&&window.scrollMaxY){d=document.body.scrollWidth;b=window.innerHeight+window.scrollMaxY}else{if(document.body.scrollHeight>document.body.offsetHeight){d=document.body.scrollWidth;b=document.body.scrollHeight}else{d=document.body.offsetWidth;b=document.body.offsetHeight}}var c,e;if(self.innerHeight){c=self.innerWidth;e=self.innerHeight}else{if(document.documentElement&&document.documentElement.clientHeight){c=document.documentElement.clientWidth;e=document.documentElement.clientHeight}else{if(document.body){c=document.body.clientWidth;e=document.body.clientHeight}}}if(b<e){pageHeight=e}else{pageHeight=b}if(d<c){pageWidth=c}else{pageWidth=d}arrayPageSize=new Array(pageWidth,pageHeight,c,e);return arrayPageSize}function ShowCaptchaDiv(){captchaShown=true;var c=getPageSize();if(window.innerHeight&&window.scrollMaxY){pageWidth=window.innerWidth+window.scrollMaxX;pageHeight=window.innerHeight+window.scrollMaxY}else{if(document.body.scrollHeight>document.body.offsetHeight){pageWidth=document.body.scrollWidth;pageHeight=document.body.scrollHeight}else{pageWidth=document.body.offsetWidth+document.body.offsetLeft;pageHeight=document.body.offsetHeight+document.body.offsetTop}}var b=document.createElement("div");b.id="iBackGroundDiv";b.style.display="none";b.style.zIndex=9999;b.style.backgroundColor="#CCCCCC";b.style.opacity="0.60";b.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity=60)";b.style.position="absolute";b.style.width=pageWidth;b.style.height=pageHeight;b.style.top=0;b.style.left=0;document.body.appendChild(b);Effect.Appear(b,{duration:1,from:0,to:0.6});var d=$("reg_bottom");d.style.backgroundColor="transparent";d.style.zIndex=99999;d.style.position="fixed";d.style.margin="0 auto";if(getVisibleHeight()<800||document.viewport.getDimensions().width<600){var f=100;var e=((document.viewport.getDimensions().width/2)-(d.getWidth()/2))}else{var f=document.viewport.getScrollOffsets()["top"]+(getVisibleHeight()/2)-(d.getHeight()/2);var e=((document.viewport.getDimensions().width/2)-(d.getWidth()/2))}d.style.top=parseInt(f);d.style.left=parseInt(e);Effect.Appear(d);setTimeout("$('recaptcha_response_field').focus();",300)}function setCaptchaResponse(b){$("recaptcha_response_field_frm").value=b}function HideCaptcha(){try{$("iBackGroundDiv").parentNode.removeChild($("iBackGroundDiv"));$("reg_bottom").style.display="none"}catch(b){}}function checkRecaptcha(){if(document.getElementById("recaptcha_response_field")){if(document.getElementById("recaptcha_response_field").value==""){showalert("You must enter the confirmation code.");return false}}return true}function getVisibleWidth(){var b=0;if(typeof(window.innerWidth)=="number"){b=window.innerWidth}else{if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){b=document.documentElement.clientWidth}else{if(document.body&&(document.body.clientWidth||document.body.clientHeight)){b=document.body.clientWidth}}}return b}function getVisibleHeight(){var b=0;if(typeof(window.innerHeight)=="number"){b=window.innerHeight}else{if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){b=document.documentElement.clientHeight}else{if(document.body&&(document.body.clientWidth||document.body.clientHeight)){b=document.body.clientHeight}}}return b}getFullHeight=function(){return Math.max(Math.max(document.body.scrollHeight,document.documentElement.scrollHeight),Math.max(document.body.offsetHeight,document.documentElement.offsetHeight),Math.max(document.body.clientHeight,document.documentElement.clientHeight))};getFullWidth=function(){if(typeof window.innerWidth!="undefined"){return window.innerWidth}else{if(typeof document.documentElement!="undefined"&&typeof document.documentElement.clientWidth!="undefined"&&document.documentElement.clientWidth!=0){return document.documentElement.clientWidth}else{return document.getElementsByTagName("body")[0].clientWidth}}};function viewProfile(c,b){if(b){window.open("/profiles/"+c,c)}else{location.href="/profiles/"+c}}function linkSendMessage(c,b){returnUrl=urlencode(location.href);if(b){window.open("/ComposeMessage/?member_key="+c)}else{location.href="/ComposeMessage/?member_key="+c+"&return_url="+returnUrl}}function linkViewPhotos(c,b){if(b){window.open("/photos/?member_key="+c)}else{location.href="/photos/?member_key="+c}}function meetMe(b){location.href="/meet/?member_key="+b}function HotlistAdd(d){var b="/Hotlist/enter/?type=add";var c="member_key="+d;new Ajax.Request(b,{method:"post",parameters:c,onSuccess:function(g){var f=g.responseText;if(f=="ERR:SELFADD"){showalert("You cannot add yourself to your Hotlist!");return}if(f=="ERR:EXISTS"){showalert("This member is already on your Hotlist!");return}if(f!="OK"){showalert("Sorry, there was an error processing your request.\n\nPlease try again later.")}else{try{showalert("Added to Hotlist")}catch(e){showalert(e)}}},onFailure:function(){showalert("Sorry, there was an error processing your request.\n\nPlease try again later.")}})}function HotlistRemove(e,b){var c="/Hotlist/enter/?type=remove";var d="member_key="+e;new Ajax.Request(c,{method:"post",parameters:d,onSuccess:function(h){var g=h.responseText;if(g=="ERR:SELF"){showalert("You cannot remove yourself from your Hotlist!");return}if(g=="ERR:EXISTS"){showalert("This member is alread on your Hotlist!");return}if(g!="OK"){showalert("Sorry, there was an error processing your request.\n\nPlease try again later.")}else{try{showalert("Removed from Hotlist");if(b==true){setTimeout("location.href=location.href",1000)}}catch(f){showalert(f)}}},onFailure:function(){showalert("Sorry, there was an error processing your request.\n\nPlease try again later.")}})}function HotlistMeRemove(e,b){var c="/Hotlist/enter/?type=removeme";var d="member_key="+e;new Ajax.Request(c,{method:"post",parameters:d,onSuccess:function(h){var g=h.responseText;if(g!="OK"){showalert("Sorry, there was an error processing your request.\n\nPlease try again later.")}else{try{showalert("Removed from Who Hotlisted Me");if(b==true){setTimeout("location.href=location.href",1000)}}catch(f){showalert(f)}}},onFailure:function(){showalert("Sorry, there was an error processing your request.\n\nPlease try again later.")}})}function sendQuickMessage(){var d=new Date();if($("body_text_qm").value.length==0){showalert("Please enter a message.");return false}if($("body_text_qm").value.length>4000){showalert("Message cannot be over 4000 characters.");return false}if($("recaptcha_response_field")&&captchaShown==false&&bRequireRecaptcha==true){ShowCaptchaDiv();return false}if(bRequireRecaptcha==true&&checkRecaptcha()==false){return false}else{try{$("recaptcha_challenge_field_frm").value=$("recaptcha_challenge_field").value;$("recaptcha_response_field_frm").value=$("recaptcha_response_field").value;HideCaptcha()}catch(b){}isFormSubmitted=true}try{$("btn_send_qm").disabled=true}catch(b){}var c="/mailbox/enter/?type=sendqm";var e="recipient_member_key="+$("member_key").value+"&body_text="+urlencode($("body_text_qm").value)+"&recaptcha_challenge_field_frm="+$("recaptcha_challenge_field_frm").value+"&recaptcha_response_field_frm="+$("recaptcha_response_field_frm").value;new Ajax.Request(c,{method:"post",parameters:e,onSuccess:function(h){var g=h.responseText;if(g=="ERR:NOTAPPROVED"){location.href="/UnapprovedProfile";return false}if(g=="ERR:PROFANITY"){showalert("Your message may not contain profanity.\n\nPlease clean up your message and try again.");try{$("btn_send_qm").disabled=false}catch(f){}return false}if(g=="ERR:CAPTCHA"){showalert("Sorry, the words you entered didnt match. Please try again.");captchaShown=false;try{$("btn_send_qm").disabled=false}catch(f){}return false}if(g=="ERR:SELF"){showalert("You cannot send a message to yourself.");try{$("btn_send_qm").disabled=false}catch(f){}return false}if(g=="ERR:FILTER"){showalert("Sorry, but you do not meet this members required messaging preferences to be able to contact them.");try{$("btn_send_qm").disabled=false}catch(f){}return false}if(g!="OK"){showalert("Sorry, there was an error processing your request.\n\nPlease try again later.");try{$("btn_send_qm").disabled=false}catch(f){}}else{showalert("Message Sent!");$("body_text_qm").value="";try{$("btn_send_qm").disabled=false}catch(f){}}},onFailure:function(){showalert("Sorry, there was an error processing your request.\n\nPlease try again later.")}})}function getAutoCompleteParams(d,b){var c=d.id;switch(c){case"reg_town_ac":return b+"&country_code="+$("reg_country").value;case"reg_postcode_ac":return b+"&country_code="+$("reg_country").value;case"postcode_ac":return b+"&country_code="+$("country").value;default:return b}}function getAutoCompleteSelectionId(g,b){var d=g.id;var f=b.id;if(f.indexOf("_")>=0){var e=f.split("_");d=d.substring(0,d.length-3);try{$(d).value=e(0)}catch(c){}}else{d=d.substring(0,d.length-3);try{$(d).value=f}catch(c){}}}function isNumeric(c){var b=/^[0-9]+$/;if(c.match(b)){return true}else{return false}}function isEnter2(d){var h;var g;var c;var b=document.userform;if(window.event){h=d.keyCode}else{if(d.which){h=d.which}}return(h=="13")}function doLogin(){var d="";var e=document.login_form.login_passwd.value;if(isFormSubmitted==true){return false}if(document.login_form.hash){document.login_form.hash.value=location.hash}if(document.login_form.login_username_email.value.length<1){d="Please enter your Username or Email address.\n"}if(document.login_form.login_passwd.value.length<1){d+="Please enter your password.\n"}if(d!=""&&d.length>1){if(document.login_form.login_username_email.value.length>1){document.login_form.login_passwd.focus()}else{document.login_form.login_username_email.focus()}showalert(d);return false}else{try{$("ioBBL").value=$("ioBB").value;var c=new Date();document.login_form.tz_offset.value=-c.getTimezoneOffset()}catch(b){}document.login_form.pass_md5.value=hex_md5(document.login_form.login_passwd.value);document.login_form.login_passwd.value=e;checkLogin(document.login_form.login_username_email.value,document.login_form.pass_md5.value,document.login_form.remember.value);return false}}function checkLogin(b,e,d){var c="deltafx.html?wci=checklogin";var f="login_username_email="+b+"&pass_md5="+e+"&remember="+d;isFormSubmitted=true;new Ajax.Request(c,{method:"post",parameters:f,onSuccess:function(h){var g=h.responseText;if(g.substring(0,2)!="OK"){showalert(g.substring(4));isFormSubmitted=false}else{document.login_form.submit()}},onFailure:function(){showalert("Sorry, there was an error processing your request.\n\nPlease try again later.")}})}function doWAYNLogin(){var b="";var c=document.wayn_login_form.wayn_login_passwd.value;if(isFormSubmitted==true){return false}if(document.wayn_login_form.wayn_username_email.value.length<1){b="Please enter your WAYN Username or email.\n"}if(document.wayn_login_form.wayn_login_passwd.value.length<1){b+="Please enter your WAYN password.\n"}if(b!=""&&b.length>1){if(document.wayn_login_form.wayn_username_email.value.length>1){document.wayn_login_form.wayn_login_passwd.focus()}else{document.wayn_login_form.wayn_username_email.focus()}showalert(b);return false}else{c=c.mask();document.wayn_login_form.pass_md5.value=hex_md5(document.wayn_login_form.wayn_login_passwd.value);document.wayn_login_form.wayn_login_passwd.value=c;isFormSubmitted=true;document.wayn_login_form.submit();return true}}function disconnectWAYNAccount(){if(confirm("Are you sure?")==true){location.href="/WAYNLogin/disconnect"}}function resetLoginForm(){isFormSubmitted=false}function isEnter(d){var h;var g;var c;var b=document.userform;if(window.event){h=d.keyCode}else{if(d.which){h=d.which}}if(h=="13"){if(doLogin()!=false){$("userform").submit()}}return true}function keyRestrict(d,c){var b="",f="";if(window.event){b=window.event.keyCode}else{if(d){b=d.which}else{b=null}}if(b==null){return true}f=String.fromCharCode(b);f=f.toLowerCase();c=c.toLowerCase();if(c.indexOf(f)!=-1){return true}if(b==null||b==0||b==8||b==9||b==13||b==27||b==37||b==38||b==39||b==40||b==46){return true}return false}function showDiv(c){try{$(c).style.display="block"}catch(b){}}function hideDiv(c){try{$(c).style.display="none"}catch(b){}}function toggleDisplay(c){try{if($(c).style.display=="none"||$(c).style.display==""||$(c).style.display==" "||$(c).style.display==undefined){$(c).style.display="block"}else{$(c).style.display="none"}}catch(b){}}function isValidEmail(h,e,d){var f=/^(?:[A-Za-z\d!#$%&'*+\/=?^_`{|}~-]+(?:\.[A-Za-z\d!#$%&'*+\/=?^_`{|}~-]+)*|�?(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*�?)@(?:(?:[A-Za-z\d](?:[A-Za-z\d-]*[A-Za-z\d])?\.)+[A-Za-z\d](?:[A-Za-z\d-]*[A-Za-z\d])?|\[(?:(?:25[0-5]|2[0-4][\d]|[01]?[\d][\d]?)\.){3}(?:25[0-5]|2[0-4][\d]|[01]?[\d][\d]?|[a-z\d-]*[a-z\d]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/;var b=f.test(h);if(b==false&&d==true){try{var c="";var i="";if(e==null){splace=""}c="/waynfx.html?wci=XMLInvalidEmailsLog";i+="invalid_email="+h+"&invalid_place="+e;xmlRequest=new Ajax.Request(c,{method:"POST",postBody:i,onSuccess:function(j){return},onFailure:function(j){return},onException:function(j){return}})}catch(g){}}return b}function ShowHide(c,b){var d=$(c);if(d){if(b==0){d.style.display="block";d.style.visibility="visible"}else{d.style.display="none";d.style.visibility="hidden"}}}function clearForm(e,d){var c=null;for(var b=0;b<e.elements.length;b++){c=e.elements[b].type;switch(c){case"text":case"textarea":case"password":e.elements[b].value="";break;case"hidden":if(d==true){e.elements[b].value=""}break;case"radio":case"checkbox":e.elements[b].checked="";break;case"select-one":e.elements[b].options[0].selected=true;break;case"select-multiple":for(z=0;z<e.elements[b].options.length;z++){e.elements[b].options[z].selected=false}break}}}function urlencode(b){var c=encodeURIComponent(b);return c}function showWait(){var b=document.createElement("div");b.id="blankformsubmit";b.style.display="none";b.style.zIndex=9999999;b.style.backgroundColor="#CCCCCC";b.style.opacity="0.60";b.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity=60)";b.style.position="absolute";b.style.position="absolute";b.style.width="100%";b.style.height="100%";b.innerHTML='<table border="0" width="100%" height="100%"><tr><td align="center" valign="middle"><div><img src="/images/loading.gif" border="0"></div></td></tr></table>';var c;c=document.viewport.getScrollOffsets()["top"];b.style.top=parseInt(c);b.style.left="0px";document.body.appendChild(b);Effect.Appear(b,{duration:0,from:0,to:0.6})}function hideWait(){hideDiv($("blankformsubmit"));document.body.removeChild($("blankformsubmit"))}var WAYN={Sites:{},Shared:{}};WAYN.onLoadQueue=Class.create({initialize:function(){this.functionList=new Array()},functionList:null,append:function(b){this.functionList.push(Array(b))},override:function(b,d){found=0;for(var c=0;c<this.functionList.legth;c++){if(this.functionList[c][1]==b){this.functionList[c][0]=d}}if(found==0){this.functionList.push(Array(d,b))}},fire:function(){for(var b=0;b<this.functionList.length;b++){var c=this.functionList[b][0];c()}}});WAYN.onLoad=new WAYN.onLoadQueue();WAYN.preLoad=new WAYN.onLoadQueue();WAYN.onUnload=new WAYN.onLoadQueue();if(window.addEventListener){window.addEventListener("load",function(){WAYN.onLoad.fire()},false)}else{if(window.attachEvent){window.attachEvent("onload",function(){WAYN.onLoad.fire()})}else{window.onload=function(){WAYN.onLoad.fire()}}}if(window.addEventListener){window.addEventListener("unload",function(){WAYN.onUnload.fire()},false)}else{if(window.attachEvent){window.attachEvent("onunload",function(){WAYN.onUnload.fire()})}else{window.onunload=function(){WAYN.onUnload.fire()}}}WAYN.isJSIncluded=function(b){var d=$$("script");for(var c=0;c<d.length;c++){if((d[c].src)&&(d[c].src.indexOf(b)>-1)){return true;break}}};WAYN.Inputs=function(d){var e=this;this.inputObject=d.subject;this.waynInput=this;for(var c=0;c<this.inputObject.parentNode.childNodes.length;c++){var b=this.inputObject.parentNode.childNodes[c];if(b.nodeType==1){if(b.getAttribute("default_desc")=="1"){b=null;return}b=null}}if(!(this.inputObject.getHeight)){Element.extend(this.inputObject)}this.oDiv=null;this.oDivVisible=false;this.animator=null;this.hiding=null;this.defaultTextClass="textDGrayDefault";this.defaultHeight=18;if(d.defaultValue){this.defaultValue=d.defaultValue}else{this.defaultValue=this.inputObject.value}if(d.textAlign){this.textAlign=d.textAlign}else{this.textAlign="middle"}this._iOnFocus=this.inputObject.onfocus;this._iOnBlur=this.inputObject.onblur;if(this.inputObject.onkeyup){this._onkeyup_=this.inputObject.onkeyup}this.inputObject.onfocus=function(){e.onfocus()};this.inputObject.onblur=function(){e.onblur()};this.inputObject.onkeyup=function(f){e.onfocus();if(e._onkeyup_){e._onkeyup_(f)}};this.__init=function(){this.oDiv=document.createElement("div");this.oDiv.innerHTML=this.defaultValue;this.oDiv.setAttribute("default_desc","1");this.oDiv.setAttribute("style","vertical-align: middle;");this.oDiv.style.position="absolute";this.oDiv.style.width="1px";this.oDiv.style.textAlign=this.inputObject.style.textAlign;objHeight=this.inputObject.getHeight();if(!objHeight){objHeight=this.defaultHeight}this.oDiv.style.height=objHeight+"px";if(this.textAlign=="middle"){this.oDiv.style.lineHeight=(objHeight)+"px"}else{if(this.textAlign=="top"){this.oDiv.style.paddingTop="3px"}}marginLeft=0;marginTop=0;if(this.inputObject.style.marginLeft){marginLeft=parseInt(this.inputObject.style.marginLeft,10)}if(this.inputObject.style.marginTop){marginTop=parseInt(this.inputObject.style.marginTop,10)}this.oDiv.style.marginLeft=marginLeft+"px";this.oDiv.style.marginTop=marginTop+"px";this.oDiv.style.paddingLeft="4px";this.oDiv.style.paddingRight="4px";this.oDiv.className=this.defaultTextClass;if(this.inputObject.onclick){this.oDiv.onclick=function(){e.oDivOnClick(true)}}else{this.oDiv.onclick=function(){e.oDivOnClick()}}if(window.ActiveXObject){this.oDiv.style.filter="alpha(opacity=0)"}else{this.oDiv.style.opacity=0}this.inputObject.parentNode.insertBefore(this.oDiv,this.inputObject);this.checkValue();if(d.defaultFocus=="true"){this.oDivOnClick()}if(d.defaultFocus=="withdefault"){this.inputObject.focus()}};this.checkValue=function(){if(""==String.interpret(this.inputObject.value).strip()){this.showODiv()}else{this.hideODiv()}};this.oDivOnClick=function(f){if(f==true){this.inputObject.onclick()}if(e.oDivVisible){e.hideODiv();e.inputObject.focus()}else{e.inputObject.focus()}};this.onfocus=function(){e.oDivOnClick();if(this._iOnFocus){e._iOnFocus()}};this.onblur=function(){this.blurring=true;this.checkValue();if(this._iOnBlur){this._iOnBlur()}};this.showODiv=function(){e.hiding=false;var f=parseInt(e.inputObject.getWidth(),10)-parseInt(e.oDiv.style.paddingLeft,10)-parseInt(e.oDiv.style.paddingRight,10);if(f<0){f=0}e.oDiv.style.width=f+"px";e.oDiv.innerHTML=e.defaultValue;if(e.animator!=null){e.animator.seekTo(1)}else{e.initializeAnimation();e.animator.play()}e.oDivVisible=true};this.hideODiv=function(){if(e.oDivVisible==true){e.hiding=true;if(e.animator!=null){e.animator.seekTo(0)}else{e.initializeAnimation();e.animator.reverse()}e.oDivVisible=false}};this.initializeAnimation=function(){e.animator=new Animator({onComplete:function(){if(e.hiding){e.oDiv.innerHTML="";e.oDiv.style.width="1px"}}}).addSubject(new NumericalStyleSubject(e.oDiv,"opacity",0,1))};this.setDefault=function(){if(d.defaultClass){this.inputObject.className=d.defaultClass}if(d.defaultColor){this.inputObject.style.color=d.defaultColor}};this.setChanged=function(){if(d.activeclass){this.inputObject.className=d.activeclass}if(d.changedColor){this.inputObject.style.color=d.changedColor}};this.__init()};WAYN.Inputs.Init=function(){var c=document.getElementsByTagName("input");var b=document.getElementsByTagName("textarea");for(a=0;a<c.length;a++){if(c[a].getAttribute("defaultvalue",true)){if(!(c[a].waynInput)){new WAYN.Inputs({subject:c[a],defaultValue:c[a].getAttribute("defaultvalue",true),defaultFocus:c[a].getAttribute("defaultfocus",true)})}}}for(a=0;a<b.length;a++){if(b[a].getAttribute("defaultvalue",true)){if(!(b[a].waynInput)){new WAYN.Inputs({subject:b[a],textAlign:"top",defaultValue:b[a].getAttribute("defaultvalue",true),defaultFocus:b[a].getAttribute("defaultfocus",true)})}}}};WAYN.onLoad.append(function(){WAYN.Inputs.Init()});Delta.TextAreaResize=Class.create();Delta.TextAreaResize.prototype={initialize:function(c,b){this.element=$(c);this.options=Object.extend({maxRows:50},b||{});Event.observe(this.element,"keyup",this.onKeyUp.bindAsEventListener(this));this.onKeyUp()},onKeyUp:function(){while(this.element.scrollHeight>this.element.offsetHeight&&this.element.rows<this.options.maxRows){if(this.element.rows<this.options.maxRows){this.element.rows=this.element.rows+1}}}};function Animator(b){this.setOptions(b);var c=this;this.timerDelegate=function(){c.onTimerEvent()};this.subjects=[];this.target=0;this.state=0;this.lastTime=null}Animator.prototype={setOptions:function(b){this.options=Animator.applyDefaults({interval:20,duration:400,onComplete:function(){},onStep:function(){},transition:Animator.tx.easeInOut},b)},seekTo:function(b){this.seekFromTo(this.state,b)},seekFromTo:function(c,b){this.target=Math.max(0,Math.min(1,b));this.state=Math.max(0,Math.min(1,c));this.lastTime=new Date().getTime();if(!this.intervalId){this.intervalId=window.setInterval(this.timerDelegate,this.options.interval)}},jumpTo:function(b){this.target=this.state=Math.max(0,Math.min(1,b));this.propagate()},toggle:function(){this.seekTo(1-this.target)},addSubject:function(b){this.subjects[this.subjects.length]=b;return this},clearSubjects:function(){this.subjects=[]},propagate:function(){var c=this.options.transition(this.state);for(var b=0;b<this.subjects.length;b++){if(this.subjects[b].setState){this.subjects[b].setState(c)}else{this.subjects[b](c)}}},onTimerEvent:function(){var d=new Date().getTime();var b=d-this.lastTime;this.lastTime=d;var c=(b/this.options.duration)*(this.state<this.target?1:-1);if(Math.abs(c)>=Math.abs(this.state-this.target)){this.state=this.target}else{this.state+=c}try{this.propagate()}finally{this.options.onStep.call(this);if(this.target==this.state){window.clearInterval(this.intervalId);this.intervalId=null;this.options.onComplete.call(this)}}},play:function(){this.seekFromTo(0,1)},reverse:function(){this.seekFromTo(1,0)},inspect:function(){var c="#<Animator:\n";for(var b=0;b<this.subjects.length;b++){c+=this.subjects[b].inspect()}c+=">";return c}};Animator.applyDefaults=function(d,c){c=c||{};var e,b={};for(e in d){b[e]=c[e]!==undefined?c[e]:d[e]}return b};Animator.makeArray=function(d){if(d==null){return[]}if(!d.length){return[d]}var b=[];for(var c=0;c<d.length;c++){b[c]=d[c]}return b};Animator.camelize=function(d){var f=d.split("-");if(f.length==1){return f[0]}var c=d.indexOf("-")==0?f[0].charAt(0).toUpperCase()+f[0].substring(1):f[0];for(var e=1,b=f.length;e<b;e++){var g=f[e];c+=g.charAt(0).toUpperCase()+g.substring(1)}return c};Animator.apply=function(d,c,b){if(c instanceof Array){return new Animator(b).addSubject(new CSSStyleSubject(d,c[0],c[1]))}return new Animator(b).addSubject(new CSSStyleSubject(d,c))};Animator.makeEaseIn=function(b){return function(c){return Math.pow(c,b*2)}};Animator.makeEaseOut=function(b){return function(c){return 1-Math.pow(1-c,b*2)}};Animator.makeElastic=function(b){return function(c){c=Animator.tx.easeInOut(c);return((1-Math.cos(c*Math.PI*b))*(1-c))+c}};Animator.makeADSR=function(e,c,d,b){if(b==null){b=0.5}return function(f){if(f<e){return f/e}if(f<c){return 1-((f-e)/(c-e)*(1-b))}if(f<d){return b}return b*(1-((f-d)/(1-d)))}};Animator.makeBounce=function(b){var c=Animator.makeElastic(b);return function(d){d=c(d);return d<=1?d:2-d}};Animator.tx={easeInOut:function(b){return((-Math.cos(b*Math.PI)/2)+0.5)},linear:function(b){return b},easeIn:Animator.makeEaseIn(1.5),easeOut:Animator.makeEaseOut(1.5),strongEaseIn:Animator.makeEaseIn(2.5),strongEaseOut:Animator.makeEaseOut(2.5),elastic:Animator.makeElastic(1),veryElastic:Animator.makeElastic(3),bouncy:Animator.makeBounce(1),veryBouncy:Animator.makeBounce(3)};function NumericalStyleSubject(c,d,f,e,b){this.els=Animator.makeArray(c);if(d=="opacity"&&window.ActiveXObject){this.property="filter"}else{this.property=Animator.camelize(d)}this.from=parseFloat(f);this.to=parseFloat(e);this.units=b!=null?b:"px"}NumericalStyleSubject.prototype={setState:function(g){var f=this.getStyle(g);var b=(this.property=="opacity"&&g==0)?"hidden":"";var c=0;for(var d=0;d<this.els.length;d++){try{this.els[d].style[this.property]=f}catch(h){if(this.property!="fontWeight"){throw h}}if(c++>20){return}}},getStyle:function(b){b=this.from+((this.to-this.from)*b);if(this.property=="filter"){return"alpha(opacity="+Math.round(b*100)+")"}if(this.property=="opacity"){return b}return Math.round(b)+this.units},inspect:function(){return"\t"+this.property+"("+this.from+this.units+" to "+this.to+this.units+")\n"}};function ColorStyleSubject(b,c,e,d){this.els=Animator.makeArray(b);this.property=Animator.camelize(c);this.to=this.expandColor(d);this.from=this.expandColor(e);this.origFrom=e;this.origTo=d}ColorStyleSubject.prototype={expandColor:function(c){var d,f,e,b;d=ColorStyleSubject.parseColor(c);if(d){f=parseInt(d.slice(1,3),16);e=parseInt(d.slice(3,5),16);b=parseInt(d.slice(5,7),16);return[f,e,b]}if(window.DEBUG){alert("Invalid colour: '"+c+"'")}},getValueForState:function(b,c){return Math.round(this.from[b]+((this.to[b]-this.from[b])*c))},setState:function(d){var b="#"+ColorStyleSubject.toColorPart(this.getValueForState(0,d))+ColorStyleSubject.toColorPart(this.getValueForState(1,d))+ColorStyleSubject.toColorPart(this.getValueForState(2,d));for(var c=0;c<this.els.length;c++){this.els[c].style[this.property]=b}},inspect:function(){return"\t"+this.property+"("+this.origFrom+" to "+this.origTo+")\n"}};ColorStyleSubject.parseColor=function(e){var b="#",d;if(d=ColorStyleSubject.parseColor.rgbRe.exec(e)){var c;for(var f=1;f<=3;f++){c=Math.max(0,Math.min(255,parseInt(d[f],10)));b+=ColorStyleSubject.toColorPart(c)}return b}if(d=ColorStyleSubject.parseColor.hexRe.exec(e)){if(d[1].length==3){for(var f=0;f<3;f++){b+=d[1].charAt(f)+d[1].charAt(f)}return b}return"#"+d[1]}return false};ColorStyleSubject.toColorPart=function(b){if(b>255){b=255}var c=b.toString(16);if(b<16){return"0"+c}return c};ColorStyleSubject.parseColor.rgbRe=/^rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i;ColorStyleSubject.parseColor.hexRe=/^\#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/;function DiscreteStyleSubject(c,d,f,e,b){this.els=Animator.makeArray(c);this.property=Animator.camelize(d);this.from=f;this.to=e;this.threshold=b||0.5}DiscreteStyleSubject.prototype={setState:function(d){var b=0;for(var c=0;c<this.els.length;c++){this.els[c].style[this.property]=d<=this.threshold?this.from:this.to}},inspect:function(){return"\t"+this.property+"("+this.from+" to "+this.to+" @ "+this.threshold+")\n"}};function CSSStyleSubject(e,n,k){e=Animator.makeArray(e);this.subjects=[];if(e.length==0){return}var b,o,c;if(k){c=this.parseStyle(n,e[0]);o=this.parseStyle(k,e[0])}else{o=this.parseStyle(n,e[0]);c={};for(b in o){c[b]=CSSStyleSubject.getStyle(e[0],b)}}var b;for(b in c){if(c[b]==o[b]){delete c[b];delete o[b]}}var b,i,f,j,m,l;for(b in c){var h=String(c[b]);var d=String(o[b]);if(o[b]==null){if(window.DEBUG){alert("No to style provided for '"+b+'"')}continue}if(m=ColorStyleSubject.parseColor(h)){l=ColorStyleSubject.parseColor(d);j=ColorStyleSubject}else{if(h.match(CSSStyleSubject.numericalRe)&&d.match(CSSStyleSubject.numericalRe)){m=parseFloat(h);l=parseFloat(d);j=NumericalStyleSubject;f=CSSStyleSubject.numericalRe.exec(h);var g=CSSStyleSubject.numericalRe.exec(d);if(f[1]!=null){i=f[1]}else{if(g[1]!=null){i=g[1]}else{i=g}}}else{if(h.match(CSSStyleSubject.discreteRe)&&d.match(CSSStyleSubject.discreteRe)){m=h;l=d;j=DiscreteStyleSubject;i=0}else{if(window.DEBUG){alert("Unrecognised format for value of "+b+": '"+c[b]+"'")}continue}}}this.subjects[this.subjects.length]=new j(e,b,m,l,i)}}CSSStyleSubject.prototype={parseStyle:function(c,d){var h={};if(c.indexOf(":")!=-1){var k=c.split(";");for(var f=0;f<k.length;f++){var e=CSSStyleSubject.ruleRe.exec(k[f]);if(e){h[e[1]]=e[2]}}}else{var b,j,g;g=d.className;d.className=c;for(var f=0;f<CSSStyleSubject.cssProperties.length;f++){b=CSSStyleSubject.cssProperties[f];j=CSSStyleSubject.getStyle(d,b);if(j!=null){h[b]=j}}d.className=g}return h},setState:function(c){for(var b=0;b<this.subjects.length;b++){this.subjects[b].setState(c)}},inspect:function(){var c="";for(var b=0;b<this.subjects.length;b++){c+=this.subjects[b].inspect()}return c}};CSSStyleSubject.getStyle=function(c,d){var b;if(document.defaultView&&document.defaultView.getComputedStyle){b=document.defaultView.getComputedStyle(c,"").getPropertyValue(d);if(b){return b}}d=Animator.camelize(d);if(c.currentStyle){b=c.currentStyle[d]}return b||c.style[d]};CSSStyleSubject.ruleRe=/^\s*([a-zA-Z\-]+)\s*:\s*(\S(.+\S)?)\s*$/;CSSStyleSubject.numericalRe=/^-?\d+(?:\.\d+)?(%|[a-zA-Z]{2})?$/;CSSStyleSubject.discreteRe=/^\w+$/;CSSStyleSubject.cssProperties=["azimuth","background","background-attachment","background-color","background-image","background-position","background-repeat","border-collapse","border-color","border-spacing","border-style","border-top","border-top-color","border-right-color","border-bottom-color","border-left-color","border-top-style","border-right-style","border-bottom-style","border-left-style","border-top-width","border-right-width","border-bottom-width","border-left-width","border-width","bottom","clear","clip","color","content","cursor","direction","display","elevation","empty-cells","css-float","font","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","height","left","letter-spacing","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-top","margin-right","margin-bottom","margin-left","max-height","max-width","min-height","min-width","orphans","outline","outline-color","outline-style","outline-width","overflow","padding","padding-top","padding-right","padding-bottom","padding-left","pause","position","right","size","table-layout","text-align","text-decoration","text-indent","text-shadow","text-transform","top","vertical-align","visibility","white-space","width","word-spacing","z-index","opacity","outline-offset","overflow-x","overflow-y"];function AnimatorChain(d,b){this.animators=d;this.setOptions(b);for(var c=0;c<this.animators.length;c++){this.listenTo(this.animators[c])}this.forwards=false;this.current=0}AnimatorChain.prototype={setOptions:function(b){this.options=Animator.applyDefaults({resetOnPlay:true},b)},play:function(){this.forwards=true;this.current=-1;if(this.options.resetOnPlay){for(var b=0;b<this.animators.length;b++){this.animators[b].jumpTo(0)}}this.advance()},reverse:function(){this.forwards=false;this.current=this.animators.length;if(this.options.resetOnPlay){for(var b=0;b<this.animators.length;b++){this.animators[b].jumpTo(1)}}this.advance()},toggle:function(){if(this.forwards){this.seekTo(0)}else{this.seekTo(1)}},listenTo:function(b){var c=b.options.onComplete;var d=this;b.options.onComplete=function(){if(c){c.call(b)}d.advance()}},advance:function(){if(this.forwards){if(this.animators[this.current+1]==null){return}this.current++;this.animators[this.current].play()}else{if(this.animators[this.current-1]==null){return}this.current--;this.animators[this.current].reverse()}},seekTo:function(b){if(b<=0){this.forwards=false;this.animators[this.current].seekTo(0)}else{this.forwards=true;this.animators[this.current].seekTo(1)}}};function Accordion(l){this.setOptions(l);var c=this.options.initialSection,h;if(this.options.rememberance){h=document.location.hash.substring(1)}this.rememberanceTexts=[];this.ans=[];var g=this;for(var d=0;d<this.options.sections.length;d++){var b=this.options.sections[d];var e=new Animator(this.options.animatorOptions);var k=this.options.from+(this.options.shift*d);var j=this.options.to+(this.options.shift*d);e.addSubject(new NumericalStyleSubject(b,this.options.property,k,j,this.options.units));e.jumpTo(0);var f=this.options.getActivator(b);f.index=d;f.onclick=function(){g.show(this.index)};this.ans[this.ans.length]=e;this.rememberanceTexts[d]=f.innerHTML.replace(/\s/g,"");if(this.rememberanceTexts[d]===h){c=d}}this.show(c)}Accordion.prototype={setOptions:function(b){this.options=Object.extend({sections:null,getActivator:function(c){return document.getElementById(c.getAttribute("activator"))},shift:0,initialSection:0,rememberance:true,animatorOptions:{}},b||{})},show:function(c){for(var b=0;b<this.ans.length;b++){this.ans[b].seekTo(b>c?1:0)}if(this.options.rememberance){document.location.hash=this.rememberanceTexts[c]}}};Object.extend(Event,{_domReady:function(){if(arguments.callee.done){return}arguments.callee.done=true;if(this._timer){clearInterval(this._timer)}this._readyCallbacks.each(function(b){b()});this._readyCallbacks=null},onDOMReady:function(c){if(!this._readyCallbacks){var b=this._domReady.bind(this);if(document.addEventListener){document.addEventListener("DOMContentLoaded",b,false)}if(/WebKit/i.test(navigator.userAgent)){this._timer=setInterval(function(){if(/loaded|complete/.test(document.readyState)){b()}},10)}Event.observe(window,"load",b);Event._readyCallbacks=[]}Event._readyCallbacks.push(c)}});function documentSelectionDeny(){if(isIE()){document.body.onselectstart=new Function("return false;")}else{document.onmousedown=new Function("return false;")}}function isIE(){return navigator.browserName=="IE"?true:false}if(typeof deconcept=="undefined"){var deconcept=new Object()}if(typeof deconcept.util=="undefined"){deconcept.util=new Object()}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object()}deconcept.SWFObject=function(n,d,o,f,k,l,i,g,e,m){if(!document.getElementById){return}this.DETECT_KEY=m?m:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(n){this.setAttribute("swf",n)}if(d){this.setAttribute("id",d)}if(o){this.setAttribute("width",o)}if(f){this.setAttribute("height",f)}if(k){this.setAttribute("version",new deconcept.PlayerVersion(k.toString().split(".")))}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true}if(l){this.addParam("bgcolor",l)}var b=i?i:"high";this.addParam("quality",b);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var j=(g)?g:window.location;this.setAttribute("xiRedirectUrl",j);this.setAttribute("redirectUrl","");if(e){this.setAttribute("redirectUrl",e)}};deconcept.SWFObject.prototype={useExpressInstall:function(b){this.xiSWFPath=!b?"expressinstall.swf":b;this.setAttribute("useExpressInstall",true)},setAttribute:function(b,c){this.attributes[b]=c},getAttribute:function(b){return this.attributes[b]},addParam:function(c,b){this.params[c]=b},getParams:function(){return this.params},addVariable:function(c,b){this.variables[c]=b},getVariable:function(b){return this.variables[b]},getVariables:function(){return this.variables},getVariablePairs:function(){var d=new Array();var c;var b=this.getVariables();for(c in b){d[d.length]=c+"="+b[c]}return d},getSWFHTML:function(){var c="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath)}c='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'"';c+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var g=this.getParams();for(var f in g){c+=[f]+'="'+g[f]+'" '}var e=this.getVariablePairs().join("&");if(e.length>0){c+='flashvars="'+e+'"'}c+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath)}c='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'">';c+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var d=this.getParams();for(var f in d){c+='<param name="'+f+'" value="'+d[f]+'" />'}var b=this.getVariablePairs().join("&");if(b.length>0){c+='<param name="flashvars" value="'+b+'" />'}c+="</object>"}return c},write:function(c){if(this.getAttribute("useExpressInstall")){var b=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(b)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var d=(typeof c=="string")?$(c):c;d.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var g=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var b=navigator.plugins["Shockwave Flash"];if(b&&b.description){g=new deconcept.PlayerVersion(b.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var c=1;var d=3;while(c){try{d++;c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+d);g=new deconcept.PlayerVersion([d,0,0])}catch(f){c=null}}}else{try{var c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(f){try{var c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");g=new deconcept.PlayerVersion([6,0,21]);c.AllowScriptAccess="always"}catch(f){if(g.major==6){return g}}try{c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(f){}}if(c!=null){g=new deconcept.PlayerVersion(c.GetVariable("$version").split(" ")[1].split(","))}}}return g};deconcept.PlayerVersion=function(b){this.major=b[0]!=null?parseInt(b[0]):0;this.minor=b[1]!=null?parseInt(b[1]):0;this.rev=b[2]!=null?parseInt(b[2]):0};deconcept.PlayerVersion.prototype.versionIsValid=function(b){if(this.major<b.major){return false}if(this.major>b.major){return true}if(this.minor<b.minor){return false}if(this.minor>b.minor){return true}if(this.rev<b.rev){return false}return true};deconcept.util={getRequestParameter:function(d){var e=document.location.search||document.location.hash;if(d==null){return e}if(e){var c=e.substring(1).split("&");for(var b=0;b<c.length;b++){if(c[b].substring(0,c[b].indexOf("="))==d){return c[b].substring((c[b].indexOf("=")+1))}}}return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var c=document.getElementsByTagName("OBJECT");for(var d=c.length-1;d>=0;d--){c[d].style.display="none";for(var b in c[d]){if(typeof c[d][b]=="function"){c[d][b]=function(){}}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs)};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true}}if(!document.getElementById&&document.all){document.getElementById=function(b){return document.all[b]}}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;WAYN.onLoad.append(function(){topMenuSelectItem()});WAYN.onLoad.append(function(){reloadMessageCounts()});WAYN.onLoad.append(function(){initPGClass()});

