var TRUST_DEFINED_TEXT="We won't share your email address with other WAYN members or third parties. You may receive emails from WAYN introducing you to people coming to your location, newsletters, important account information or third party marketing offers sent to you by WAYN";var m_ShowAdvertForUser=false;function $Radio(d,f){var c=Form.getInputs(d,"radio",f).find(function(g){return g.checked});if(c){return c.value}else{return null}}Prototype.Browser.WhichBrowser=function(){var c=navigator.userAgent.toLowerCase();if(c.indexOf("opera")!=-1){return"Opera"}if(c.indexOf("staroffice")!=-1){return"Star Office"}if(c.indexOf("webtv")!=-1){return"WebTV"}if(c.indexOf("beonex")!=-1){return"Beonex"}if(c.indexOf("chimera")!=-1){return"Chimera"}if(c.indexOf("netpositive")!=-1){return"NetPositive"}if(c.indexOf("phoenix")!=-1){return"Phoenix"}if(c.indexOf("firefox")!=-1){return"Firefox"}if(c.indexOf("safari")!=-1){return"Safari"}if(c.indexOf("skipstone")!=-1){return"SkipStone"}if(c.indexOf("msie")!=-1){return"Internet Explorer"}if(c.indexOf("netscape")!=-1){return"Netscape"}if(c.indexOf("mozilla/5.0")!=-1){return"Mozilla"}if(c.indexOf("/")!=-1){if(c.substr(0,c.indexOf("/"))!="mozilla"){return navigator.userAgent.substr(0,c.indexOf("/"))}else{return"Netscape"}}else{if(c.indexOf(" ")!=-1){return navigator.userAgent.substr(0,c.indexOf(" "))}else{return navigator.userAgent}}};Object.extend(Prototype.Browser,{ns4:!!(document.layers),ie4:!!(document.all&&!document.getElementById),ie5:!!(document.all&&document.getElementById&&(typeof(document.compatMode)=="undefined")),ie6:(typeof(document.compatMode)!="undefined"),ns6:!!(!document.all&&document.getElementById),KHTML:/Konqueror|Safari|KHTML/i.test(navigator.userAgent),Safari:(Prototype.Browser.WhichBrowser()=="Safari")});Object.extend(String,{interpretTrim:function(c){return String.interpret(c).strip()}});Object.extend(String.prototype,{stipLeft:function(){return this.replace(/^\s+/,"")},stripRight:function(){return this.replace(/\s+$/,"")},stripAllWhite:function(){return this.replace(/^\s+|(\s\s)+|\s+$/g,"")},absolutePath:function(){if((this.charAt(0)=="/")||(this.slice(0,4)=="http")){return this}else{return"/"+this}}});var WAYNHTMLExtensions={copyToClipBoard:function(d){if(window.clipboardData){d.select();var c=clipboardData.setData("Text",d.value);msgBox("information","The text has been copied to your clipboard.",null,null," ")}else{msgBox("warning",'Unable to copy to your clipboard. Please highlight the text, right mouse click and select "copy" to copy the text manually.',null,null," ")}},numOnly:function(c){if(c.value.length>0){if((!/^[\d\.]+$/.test(c.value)||isNaN(c.value))&&(!/^[\\t\.]+$/.test(c.value))){WAYN.Console.log("obj.value= "+c.value);c.value=c.value.replace(/[^\d]+/,"");alert("Numeric values only")}}},azOnly:function(c){if(!/^[a-zA-Z]+$/.test(c.value)){c.value=c.value.replace(/[^\a-zA-Z]+/,"")}},insertAtCursor:function(g,f){f=" "+f+" ";if(document.all){var k;g.focus();var h=document.selection.createRange();h.text=f}else{if(g.selectionStart||g.selectionStart=="0"){var d=g.selectionStart;var c=g.selectionEnd;g.value=g.value.substring(0,d)+f+g.value.substring(c,g.value.length);g.focus();g.selectionStart=d+f.length;g.selectionEnd=c+f.length}else{g.value=g.value+f}}g.focus()},showDiv:function(c,g,d){try{c.style.display="block";if(d){new WAYN.Shim(c,g)}}catch(f){}},hideDiv:function(c){try{c.style.display="none";c=$(c);if(!!(c.Shim)){c.destroyShim()}}catch(d){}},toolTipIt:function(d,c){WAYN.TipBox.show(d,c)}};Object.extend(document.viewport,{getDimensions:function(f){var g,c;if(window.innerHeight&&window.scrollMaxY){g=document.body.scrollWidth;c=window.innerHeight+window.scrollMaxY}else{if(document.body.scrollHeight>document.body.offsetHeight){g=document.body.scrollWidth;c=document.body.scrollHeight}else{g=document.body.offsetWidth;c=document.body.offsetHeight}}var d,h;if(self.innerHeight){d=self.innerWidth;h=self.innerHeight}else{if(document.documentElement&&document.documentElement.clientHeight){d=document.documentElement.clientWidth;h=document.documentElement.clientHeight}else{if(document.body){d=document.body.clientWidth;h=document.body.clientHeight}}}if(c<h){pageHeight=h}else{pageHeight=c}if(g<d){pageWidth=d}else{pageWidth=g}arrayPageSize=new Array(pageWidth,pageHeight,d,h);return{width:pageWidth,height:pageHeight,windowWidth:d,windowHeight:h}}});Date.prototype.DateAdd=function(c,d){switch(c){case"d":this.setDate(this.getDate()+d);break;case"m":this.setMonth(this.getMonth()+d);break;case"y":this.setYear(this.getFullYear()+d);break;case"h":this.setHours(this.getHours()+d);break;case"n":this.setMinutes(this.getMinutes()+d);break;case"s":this.setSeconds(this.getSeconds()+d);break}return this};Date.prototype.setCustomDate=function(c,g,d){var f=new Date();f.setFullYear(c);f.setMonth(g-1);f.setDate(d);return f};Date.prototype.ISODate=function(){var h=this.getFullYear()+"";var f=this.getMonth()+1+"";var c=this.getDate()+"";var d=this.getHours()+"";var g=this.getMinutes()+"";if(f.length==1){f="0"+f}if(c.length==1){c="0"+c}if(d.length==1){d="0"+d}if(g.length==1){g="0"+g}if(this.getHours()>0||this.getMinutes()>0){return(h+"-"+f+"-"+c+" "+d+":"+g)}return(h+"-"+f+"-"+c)};Element.addMethods(WAYNHTMLExtensions);var ns4=Prototype.Browser.ns4;var ie4=Prototype.Browser.ie4;var ie5=Prototype.Browser.ie5;var ns6=Prototype.Browser.ns6;function Animator(c){this.setOptions(c);var d=this;this.timerDelegate=function(){d.onTimerEvent()};this.subjects=[];this.target=0;this.state=0;this.lastTime=null}Animator.prototype={setOptions:function(c){this.options=Animator.applyDefaults({interval:20,duration:400,onComplete:function(){},onStep:function(){},transition:Animator.tx.easeInOut},c)},seekTo:function(c){this.seekFromTo(this.state,c)},seekFromTo:function(d,c){this.target=Math.max(0,Math.min(1,c));this.state=Math.max(0,Math.min(1,d));this.lastTime=new Date().getTime();if(!this.intervalId){this.intervalId=window.setInterval(this.timerDelegate,this.options.interval)}},jumpTo:function(c){this.target=this.state=Math.max(0,Math.min(1,c));this.propagate()},toggle:function(){this.seekTo(1-this.target)},addSubject:function(c){this.subjects[this.subjects.length]=c;return this},clearSubjects:function(){this.subjects=[]},propagate:function(){var d=this.options.transition(this.state);for(var c=0;c<this.subjects.length;c++){if(this.subjects[c].setState){this.subjects[c].setState(d)}else{this.subjects[c](d)}}},onTimerEvent:function(){var f=new Date().getTime();var c=f-this.lastTime;this.lastTime=f;var d=(c/this.options.duration)*(this.state<this.target?1:-1);if(Math.abs(d)>=Math.abs(this.state-this.target)){this.state=this.target}else{this.state+=d}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 d="#<Animator:\n";for(var c=0;c<this.subjects.length;c++){d+=this.subjects[c].inspect()}d+=">";return d}};Animator.applyDefaults=function(f,d){d=d||{};var g,c={};for(g in f){c[g]=d[g]!==undefined?d[g]:f[g]}return c};Animator.makeArray=function(f){if(f==null){return[]}if(!f.length){return[f]}var c=[];for(var d=0;d<f.length;d++){c[d]=f[d]}return c};Animator.camelize=function(f){var h=f.split("-");if(h.length==1){return h[0]}var d=f.indexOf("-")==0?h[0].charAt(0).toUpperCase()+h[0].substring(1):h[0];for(var g=1,c=h.length;g<c;g++){var k=h[g];d+=k.charAt(0).toUpperCase()+k.substring(1)}return d};Animator.apply=function(f,d,c){if(d instanceof Array){return new Animator(c).addSubject(new CSSStyleSubject(f,d[0],d[1]))}return new Animator(c).addSubject(new CSSStyleSubject(f,d))};Animator.makeEaseIn=function(c){return function(d){return Math.pow(d,c*2)}};Animator.makeEaseOut=function(c){return function(d){return 1-Math.pow(1-d,c*2)}};Animator.makeElastic=function(c){return function(d){d=Animator.tx.easeInOut(d);return((1-Math.cos(d*Math.PI*c))*(1-d))+d}};Animator.makeADSR=function(g,d,f,c){if(c==null){c=0.5}return function(h){if(h<g){return h/g}if(h<d){return 1-((h-g)/(d-g)*(1-c))}if(h<f){return c}return c*(1-((h-f)/(1-f)))}};Animator.makeBounce=function(c){var d=Animator.makeElastic(c);return function(f){f=d(f);return f<=1?f:2-f}};Animator.tx={easeInOut:function(c){return((-Math.cos(c*Math.PI)/2)+0.5)},linear:function(c){return c},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(d,f,h,g,c){this.els=Animator.makeArray(d);if(f=="opacity"&&window.ActiveXObject){this.property="filter"}else{this.property=Animator.camelize(f)}this.from=parseFloat(h);this.to=parseFloat(g);this.units=c!=null?c:"px"}NumericalStyleSubject.prototype={setState:function(h){var g=this.getStyle(h);var c=(this.property=="opacity"&&h==0)?"hidden":"";var d=0;for(var f=0;f<this.els.length;f++){try{this.els[f].style[this.property]=g}catch(k){if(this.property!="fontWeight"){throw k}}if(d++>20){return}}},getStyle:function(c){c=this.from+((this.to-this.from)*c);if(this.property=="filter"){return"alpha(opacity="+Math.round(c*100)+")"}if(this.property=="opacity"){return c}return Math.round(c)+this.units},inspect:function(){return"\t"+this.property+"("+this.from+this.units+" to "+this.to+this.units+")\n"}};function ColorStyleSubject(c,d,g,f){this.els=Animator.makeArray(c);this.property=Animator.camelize(d);this.to=this.expandColor(f);this.from=this.expandColor(g);this.origFrom=g;this.origTo=f}ColorStyleSubject.prototype={expandColor:function(d){var f,h,g,c;f=ColorStyleSubject.parseColor(d);if(f){h=parseInt(f.slice(1,3),16);g=parseInt(f.slice(3,5),16);c=parseInt(f.slice(5,7),16);return[h,g,c]}if(window.DEBUG){alert("Invalid colour: '"+d+"'")}},getValueForState:function(c,d){return Math.round(this.from[c]+((this.to[c]-this.from[c])*d))},setState:function(f){var c="#"+ColorStyleSubject.toColorPart(this.getValueForState(0,f))+ColorStyleSubject.toColorPart(this.getValueForState(1,f))+ColorStyleSubject.toColorPart(this.getValueForState(2,f));for(var d=0;d<this.els.length;d++){this.els[d].style[this.property]=c}},inspect:function(){return"\t"+this.property+"("+this.origFrom+" to "+this.origTo+")\n"}};ColorStyleSubject.parseColor=function(g){var c="#",f;if(f=ColorStyleSubject.parseColor.rgbRe.exec(g)){var d;for(var h=1;h<=3;h++){d=Math.max(0,Math.min(255,parseInt(f[h],10)));c+=ColorStyleSubject.toColorPart(d)}return c}if(f=ColorStyleSubject.parseColor.hexRe.exec(g)){if(f[1].length==3){for(var h=0;h<3;h++){c+=f[1].charAt(h)+f[1].charAt(h)}return c}return"#"+f[1]}return false};ColorStyleSubject.toColorPart=function(c){if(c>255){c=255}var d=c.toString(16);if(c<16){return"0"+d}return d};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(d,f,h,g,c){this.els=Animator.makeArray(d);this.property=Animator.camelize(f);this.from=h;this.to=g;this.threshold=c||0.5}DiscreteStyleSubject.prototype={setState:function(f){var c=0;for(var d=0;d<this.els.length;d++){this.els[d].style[this.property]=f<=this.threshold?this.from:this.to}},inspect:function(){return"\t"+this.property+"("+this.from+" to "+this.to+" @ "+this.threshold+")\n"}};function CSSStyleSubject(g,r,o){g=Animator.makeArray(g);this.subjects=[];if(g.length==0){return}var c,t,d;if(o){d=this.parseStyle(r,g[0]);t=this.parseStyle(o,g[0])}else{t=this.parseStyle(r,g[0]);d={};for(c in t){d[c]=CSSStyleSubject.getStyle(g[0],c)}}var c;for(c in d){if(d[c]==t[c]){delete d[c];delete t[c]}}var c,m,h,n,q,p;for(c in d){var l=String(d[c]);var f=String(t[c]);if(t[c]==null){if(window.DEBUG){alert("No to style provided for '"+c+'"')}continue}if(q=ColorStyleSubject.parseColor(l)){p=ColorStyleSubject.parseColor(f);n=ColorStyleSubject}else{if(l.match(CSSStyleSubject.numericalRe)&&f.match(CSSStyleSubject.numericalRe)){q=parseFloat(l);p=parseFloat(f);n=NumericalStyleSubject;h=CSSStyleSubject.numericalRe.exec(l);var k=CSSStyleSubject.numericalRe.exec(f);if(h[1]!=null){m=h[1]}else{if(k[1]!=null){m=k[1]}else{m=k}}}else{if(l.match(CSSStyleSubject.discreteRe)&&f.match(CSSStyleSubject.discreteRe)){q=l;p=f;n=DiscreteStyleSubject;m=0}else{if(window.DEBUG){alert("Unrecognised format for value of "+c+": '"+d[c]+"'")}continue}}}this.subjects[this.subjects.length]=new n(g,c,q,p,m)}}CSSStyleSubject.prototype={parseStyle:function(d,f){var l={};if(d.indexOf(":")!=-1){var n=d.split(";");for(var h=0;h<n.length;h++){var g=CSSStyleSubject.ruleRe.exec(n[h]);if(g){l[g[1]]=g[2]}}}else{var c,m,k;k=f.className;f.className=d;for(var h=0;h<CSSStyleSubject.cssProperties.length;h++){c=CSSStyleSubject.cssProperties[h];m=CSSStyleSubject.getStyle(f,c);if(m!=null){l[c]=m}}f.className=k}return l},setState:function(d){for(var c=0;c<this.subjects.length;c++){this.subjects[c].setState(d)}},inspect:function(){var d="";for(var c=0;c<this.subjects.length;c++){d+=this.subjects[c].inspect()}return d}};CSSStyleSubject.getStyle=function(d,f){var c;if(document.defaultView&&document.defaultView.getComputedStyle){c=document.defaultView.getComputedStyle(d,"").getPropertyValue(f);if(c){return c}}f=Animator.camelize(f);if(d.currentStyle){c=d.currentStyle[f]}return c||d.style[f]};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(f,c){this.animators=f;this.setOptions(c);for(var d=0;d<this.animators.length;d++){this.listenTo(this.animators[d])}this.forwards=false;this.current=0}AnimatorChain.prototype={setOptions:function(c){this.options=Animator.applyDefaults({resetOnPlay:true},c)},play:function(){this.forwards=true;this.current=-1;if(this.options.resetOnPlay){for(var c=0;c<this.animators.length;c++){this.animators[c].jumpTo(0)}}this.advance()},reverse:function(){this.forwards=false;this.current=this.animators.length;if(this.options.resetOnPlay){for(var c=0;c<this.animators.length;c++){this.animators[c].jumpTo(1)}}this.advance()},toggle:function(){if(this.forwards){this.seekTo(0)}else{this.seekTo(1)}},listenTo:function(c){var d=c.options.onComplete;var f=this;c.options.onComplete=function(){if(d){d.call(c)}f.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(c){if(c<=0){this.forwards=false;this.animators[this.current].seekTo(0)}else{this.forwards=true;this.animators[this.current].seekTo(1)}}};function Accordion(o){this.setOptions(o);var d=this.options.initialSection,l;if(this.options.rememberance){l=document.location.hash.substring(1)}this.rememberanceTexts=[];this.ans=[];var k=this;for(var f=0;f<this.options.sections.length;f++){var c=this.options.sections[f];var g=new Animator(this.options.animatorOptions);var n=this.options.from+(this.options.shift*f);var m=this.options.to+(this.options.shift*f);g.addSubject(new NumericalStyleSubject(c,this.options.property,n,m,this.options.units));g.jumpTo(0);var h=this.options.getActivator(c);h.index=f;h.onclick=function(){k.show(this.index)};this.ans[this.ans.length]=g;this.rememberanceTexts[f]=h.innerHTML.replace(/\s/g,"");if(this.rememberanceTexts[f]===l){d=f}}this.show(d)}Accordion.prototype={setOptions:function(c){this.options=Object.extend({sections:null,getActivator:function(d){return document.getElementById(d.getAttribute("activator"))},shift:0,initialSection:0,rememberance:true,animatorOptions:{}},c||{})},show:function(d){for(var c=0;c<this.ans.length;c++){this.ans[c].seekTo(c>d?1:0)}if(this.options.rememberance){document.location.hash=this.rememberanceTexts[d]}}};Object.extend(Event,{_domReady:function(){if(arguments.callee.done){return}arguments.callee.done=true;if(this._timer){clearInterval(this._timer)}this._readyCallbacks.each(function(c){c()});this._readyCallbacks=null},onDOMReady:function(d){if(!this._readyCallbacks){var c=this._domReady.bind(this);if(document.addEventListener){document.addEventListener("DOMContentLoaded",c,false)}if(/WebKit/i.test(navigator.userAgent)){this._timer=setInterval(function(){if(/loaded|complete/.test(document.readyState)){c()}},10)}Event.observe(window,"load",c);Event._readyCallbacks=[]}Event._readyCallbacks.push(d)}});var WAYN={Sites:{},Shared:{},Components:{}};WAYN.globals={tabsSpeed:750,tabsSelectSpeed:500};WAYN.onLoadQueue=Class.create({initialize:function(){this.functionList=new Array()},functionList:null,append:function(c){this.functionList.push(Array(c))},override:function(c,f){found=0;for(var d=0;d<this.functionList.legth;d++){if(this.functionList[d][1]==c){this.functionList[d][0]=f}}if(found==0){this.functionList.push(Array(f,c))}},fire:function(){for(var c=0;c<this.functionList.length;c++){var d=this.functionList[c][0];d()}}});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.Shim=Class.create({initialize:function(f,d){try{f=$(f);if(!(d)){d=false}if(!Object.isElement(f)){return}var g=null;if(f.Shim!=null){g=f.Shim}else{g=new Element("iframe");Element.extend(f);g.id="daShim";g.frameBorder="0";if((Prototype.Browser.ie6&&Prototype.Browser.IE)||!d){g.style.position="absolute"}else{g.style.position="fixed"}g.style.border="none";g.style.display="block";f.parentNode.insertBefore(g,f);f.Shim=g}if(window.ActiveXObject){g.style.filter="alpha(opacity=0)"}else{g.style.opacity=0}g.clonePosition(f);f.destroyShim=function(){try{if(this.Shim!=null){this.Shim.parentNode.removeChild(this.Shim)}this.Shim=null;this.destroyShim=function(){}}catch(h){}}}catch(c){}}});WAYN.Popup=Class.create({initialize:function(d,g,p,o,h){if(p==null){p=true}if(!(d.showDiv)){Element.extend(d)}var l=null;if(g==true){if(d.overlay==null){l=document.createElement("div")}else{l=d.overlay}if(!(l.showDiv)){Element.extend(l)}l.setAttribute("id",d.getAttribute("id")+"overlay");l.style.backgroundColor="#333";if(Prototype.Browser.ie6&&Prototype.Browser.IE){l.style.position="absolute"}else{l.style.position="fixed"}l.animator=new Animator().addSubject(new NumericalStyleSubject(l,"opacity",0,0.5));l.style.top=0;l.style.left=0;l.style.width=document.viewport.getWidth()+"px";l.style.height=document.viewport.getHeight()+"px";d.parentNode.insertBefore(l,d);d.overlay=l;l.showDiv(false,h);if(window.ActiveXObject){l.style.filter="alpha(opacity=0.5)"}else{l.style.opacity=0}l.style.zIndex=100000002;l.animator.play()}d.style.position="absolute";var q;var f;var k;k=d.getHeight();q=document.viewport.getScrollOffsets()["top"]+(document.viewport.getDimensions().windowHeight/2)-(k/2);f=((document.viewport.getDimensions().windowWidth/2)-(d.getWidth()/2));if(q<10){q=10}d.style.top=parseInt(q);d.style.left=parseInt(f);var n=$$("a.popupClose");for(var m=0;m<n.length;m++){var c=String.interpret(n[m].getAttribute("popup")).strip();if(c==d.getAttribute("id")){n[m].onclick=function(){var t=String.interpret(this.getAttribute("popup")).strip();var r=$(t);if(r){r.close()}return false}}}d.close=this.close;d.showDiv(p,h);if(window.ActiveXObject){d.style.filter="alpha(opacity=0)"}else{d.style.opacity=0}d.style.zIndex=100000006;d.style.overflow="hidden";d.animator=new Animator({duration:500,onComplete:function(){d.style.height=null;d.style.overflow="visible";if($("boxPreLoader")){document.body.removeChild($("boxPreLoader"))}}}).addSubject(new NumericalStyleSubject(d,"opacity",0,1)).addSubject(new NumericalStyleSubject(d,"height",0,d.getHeight()));d.animator.play()},close:function(){if(this.overlay){this.overlay.hideDiv()}var c=this;this.style.overflow="hidden";this.animator=new Animator({duration:500,onComplete:function(){c.style.height=null;c.style.overflow="visible";c.hideDiv()}}).addSubject(new NumericalStyleSubject(c,"opacity",1,0.5)).addSubject(new NumericalStyleSubject(c,"height",this.offsetHeight,0));this.animator.play()}});WAYN.Popup.showLoader=function(d){var c=$("preloader");new WAYN.Popup(c,d,false,false,true)};WAYN.Popup.hideLoader=function(){var c=$("preloader");if(c!=null){c=Element.extend(c);c.hideDiv()}};WAYN.isJSIncluded=function(c){var f=$$("script");for(var d=0;d<f.length;d++){if((f[d].src)&&(f[d].src.indexOf(c)>-1)){return true;break}}};WAYN.Popup.PayBy=Class.create({div:null,initialize:function(k,d,c,f){var h=this;if(!$("divPayByPopup")){this.div=new Element("div",{id:"divPayByPopup"});document.body.appendChild(h.div)}else{this.div=$("divPayByPopup")}h.div.innerHTML="";h.div.popupForm=h;WAYN.Popup.showLoader();var m="";if(f){m=encodeURIComponent(f)}var g=location.protocol+"//"+location.hostname+"/wayn.html?wci=upgrade&wce=paybypopup&item="+k+"&pkg="+c+"&retUrl="+m;var l=d.split(",");if(1==l.length){PayBySubmit(l[0].toLowerCase(),c,f)}else{if(l.length>1){new Ajax.Request(g,{onSuccess:function(r){try{var q=r.responseXML;for(var o=q.documentElement;o!=null;o=o.nextSibling){for(var n=o.firstChild;n!=null;n=n.nextSibling){if(n.nodeValue!=null&&n.nodeValue!=""){h.div.innerHTML=n.nodeValue;if($("InteractBox")){$("InteractBox").close()}new WAYN.Popup(h.div)}}}WAYN.Popup.hideLoader()}catch(p){}},onFailure:function(){alert("Sorry there was an error processing your request.\nPlease try again later");WAYN.Popup.hideLoader();return false},method:"get"})}else{alert("Sorry there was an error processing your request.\nPlease try again later");return false}}}});WAYN.Popup.AddUnknownDestination=Class.create({onOk:null,div:null,hint:null,initialize:function(h,f,d){var g=this;this.onOk=f;this.hint=h;if(!$("addUnknownDestinationComponent")){this.div=new Element("div",{id:"addUnknownDestinationComponent"});document.body.appendChild(g.div)}else{this.div=$("addUnknownDestinationComponent")}g.div.innerHTML="";g.div.popupForm=g;WAYN.Popup.showLoader();var c=location.protocol+"//"+location.hostname+"/wayntravels.html?wci=MyTrips&wce=AddUnknownDestinationComponent&town="+encodeURIComponent(h);if(d){c+="&search_type="+d}new Ajax.Request(c,{onSuccess:function(o){try{var n=o.responseXML;for(var l=n.documentElement;l!=null;l=l.nextSibling){for(var k=l.firstChild;k!=null;k=k.nextSibling){if(k.nodeValue!=null&&k.nodeValue!=""){g.div.innerHTML=k.nodeValue;new WAYN.Popup(g.div,false,true,true,true)}}}WAYN.Popup.hideLoader()}catch(m){}},onFailure:function(){alert("Sorry there was an error processing your request.\nPlease try again later");WAYN.Popup.hideLoader();return false},method:"get"})}});WAYN.Popup.BuyCredits=Class.create({cost:null,balance:null,initialize:function(g,f){var d=this;this.cost=g;this.balance=f;if(!$("InteractBox")){this.div=new Element("div",{id:"InteractBox"});document.body.appendChild(d.div)}else{this.div=$("InteractBox")}d.div.innerHTML="";d.div.popupForm=d;WAYN.Popup.showLoader();var c=location.protocol+"//"+location.hostname+"/wayncredits.html?wci=Purchase&wce=GetBuyCreditsBox&cost="+g+"&balance="+f;new Ajax.Request(c,{onSuccess:function(n){try{var m=n.responseXML;for(var k=m.documentElement;k!=null;k=k.nextSibling){for(var h=k.firstChild;h!=null;h=h.nextSibling){if(h.nodeValue!=null&&h.nodeValue!=""){d.div.innerHTML=h.nodeValue;new WAYN.Popup(d.div,false,false,false,"fuck")}}}WAYN.Popup.hideLoader()}catch(l){}},onFailure:function(){alert("Sorry there was an error processing your request.\nPlease try again later");WAYN.Popup.hideLoader();return false},method:"get"})}});WAYN.Popup.StarReviewer=Class.create({div:null,initialize:function(){var d=this;if(!$("divStarReviewer")){this.div=new Element("div",{id:"divStarReviewer"});document.body.appendChild(d.div)}else{this.div=$("divStarReviewer")}d.div.innerHTML="";d.div.popupForm=d;var f="";var c=location.protocol+"//"+location.hostname+"/wayntravels.html?wci=starreviewerpopup";new Ajax.Request(c,{onSuccess:function(m){try{var l=m.responseXML;for(var h=l.documentElement;h!=null;h=h.nextSibling){for(var g=h.firstChild;g!=null;g=g.nextSibling){if(g.nodeValue!=null&&g.nodeValue!=""){d.div.innerHTML=g.nodeValue;new WAYN.Popup(d.div)}}}}catch(k){}},onFailure:function(){alert("Sorry there was an error processing your request.\nPlease try again later");return false},method:"get"})}});WAYN.PopupDisable=function(f,c,g){var d=location.protocol+"//"+location.hostname+"/wayn.html?wci=Default&wce=PopUp&popup="+f+"&action="+c;if(g>0){d=d+"&days="+g}new Ajax.Request(d,{onSuccess:function(h){return},onFailure:function(){return false},method:"get"})};WAYN.ShowFooterPopup=function(){var f=null;var d="";var g=$("footer_popup");var c=location.protocol+"//"+location.hostname+"/wayn.html?wci=FooterPopup";new Ajax.Request(c,{onSuccess:function(l){responseXml=l.responseXML;for(var k=responseXml.firstChild;k!=null;k=k.nextSibling){for(var h=k.firstChild;h!=null;h=h.nextSibling){if(h.nodeValue!=null&&h.nodeValue!=""){d=h.nodeValue;if(d=="NOPOPUP"||d==""){$("globalPopup").close();g.innerHTML=""}else{g.innerHTML=d;new WAYN.Popup($("globalPopup"),true,false,false,true)}}}}},onFailure:function(){return false},method:"post"})};WAYN.StatsAdvertTrackerIncrease=function(d){var c=location.protocol+"//"+location.hostname+"/waynfx.html?wci=link&no_redirect=1&id="+d;new Ajax.Request(c,{onSuccess:function(f){return},onFailure:function(){return false},method:"get"})};Object.extend(WAYN.Popup.AddUnknownDestination,{acceptDestination:function(g,f){var h=$("addUnknownDestinationComponent").popupForm;if(g==null||name==null){var c=null;var m=null;var d=$$("select");for(var k=0;k<d.length;k++){var l=$(d[k]);if(l.descendantOf("addUnknownDestinationComponent")){if(l.getAttribute("name")=="countries"){c=l}if(l.getAttribute("name")=="towns"){m=l}}}if(c.selectedIndex==0){alert("Please select country.");return}if(m.selectedIndex==0){alert("Please select state.");return}g=(c.options[c.selectedIndex].value)+","+(m.options[m.selectedIndex].value)+",0";f=(h.hint)+", "+(m.options[m.selectedIndex].text)+", "+(c.options[c.selectedIndex].text)}if(Object.isFunction(h.onOk)){h.onOk(g,f)}h.div.close()},getStates:function(){var f=$("addUnknownDestinationComponent").popupForm;var d=$$("select");var c=null;var k=null;for(var g=0;g<d.length;g++){var h=$(d[g]);if(h.descendantOf("addUnknownDestinationComponent")){if(h.getAttribute("name")=="countries"){c=h}if(h.getAttribute("name")=="towns"){k=h}}}new Ajax.Request("/waynfx.html?wci=GetCitiesFromCountry&countryCode="+$F(c),{onSuccess:function(p){var n=p.responseXML.getElementsByTagName("setpoint");if(n.length>0){k.options.length=0;k.options[0]=new Option("Select State","-1");for(var o=0;o<n.length;o++){k.options.length++;k.options[k.options.length-1]=new Option(n.item(o).getAttribute("name"),n.item(o).getAttribute("code"))}}else{k.options.length=0;k.options[0]=new Option("State Not Found",0);if(c.selectedIndex==0){alert("Please select country.");return}var m=(c.options[c.selectedIndex].value)+",0,0";var l=(f.hint)+", "+(c.options[c.selectedIndex].text);if(Object.isFunction(f.onOk)){f.onOk(m,l)}f.div.close()}},onFailure:function(){alert("Sorry there was an error processing your request.\nPlease try again later")}})},close:function(){var c=$("addUnknownDestinationComponent").popupForm;c.onOk("0","");c.div.close()}});WAYN.onLoad.append(function(){var c=$("preloader");if(c==null){c=document.createElement("div");c.setAttribute("id","preloader");c.style.display="none";if(!g){var g=""}if(String.interpret(g).strip()==""){g="/"}var f=document.createElement("img");f.src=g+"friends/images/import/loader.gif";c.appendChild(f);document.body.appendChild(c);var d=new Element("img",{style:"width: 1px; height: 1px",src:g+"friends/images/import/loader.gif"});document.body.appendChild(d);document.body.appendChild(d)}});WAYN.onUnload.append(function(){WAYN.Popup.hideLoader()});WAYN.TipBox={currentBox:null,timer:null,show:function(d,c){var f=WAYN.TipBox;f.cancelPrevious();f.currentBox=d;if(!(d.showDiv)){Element.extend(d)}d.clonePosition(c);d.style.width="";d.style.height="";d.style.top=(parseInt(String.interpret(d.style.top).replace("/[^\d]/",""))+c.getHeight())+"px";d.style.left=(parseInt(String.interpret(d.style.left).replace("/[^\d]/",""))+c.getWidth())+"px";d.showDiv();d.onmouseover=f.stopKiller;d.onmouseout=f.kill;c.onmouseout=f.kill},cancelPrevious:function(){var c=WAYN.TipBox;if(c.currentBox!=null){if(c.timer!=null){c.stopKiller()}c.currentBox.hideDiv();c.currentBox=null}},kill:function(){WAYN.TipBox.timer=setTimeout("WAYN.TipBox.killNow();",500)},killNow:function(){WAYN.TipBox.cancelPrevious()},stopKiller:function(){clearTimeout(WAYN.TipBox.timer)}};document.write('<style type="text/css">input.styled { display: none; }</style>');WAYN.lightForm=(function(){function c(){var d=this}c.Init=function(){WAYN.lightForm.checkboxHeight=12;WAYN.lightForm.radioHeight=12;var f=$$("input.styled");var h=Array(),d,g,k;for(a=0;a<f.length;a++){if((f[a].type=="checkbox"||f[a].type=="radio")&&!f[a].dummy){h[a]=document.createElement("span");h[a].className=f[a].type;if(f[a].onchange){f[a]._onchange=f[a].onchange}if(f[a].onclick){f[a]._onclick=f[a].onclick}if(!Prototype.Browser.IE){f[a].onchange=function(m){WAYN.lightForm.trigger(this,true)}}else{var l=$$('label[for="'+f[a].id+'"]');if(l[0]){l[0].onclick=function(m){WAYN.lightForm.trigger($(this.readAttribute("for")),true)}}}f[a].parentNode.insertBefore(h[a],f[a]);f[a].dummy=h[a];h[a].device=f[a];if(!f[a].disabled){h[a].onmousedown=WAYN.lightForm.pushed;h[a].onmouseup=WAYN.lightForm.check;h[a].onmouseout=WAYN.lightForm.checkOut}}}WAYN.lightForm.recheck()};c.recheck=function(d){if(!d){var d=$$("input.styled")}for(a=0;a<d.length;a++){if((d[a].type=="checkbox"||d[a].type=="radio")){WAYN.lightForm.recompose(d[a],d[a].dummy)}}};c.pushed=function(){device=this.nextSibling;device.dummy.pushed=true;if(device.checked==true&&device.type=="checkbox"){this.style.backgroundPosition="0 -"+WAYN.lightForm.checkboxHeight*5+"px"}else{if(device.checked==true&&device.type=="radio"){this.style.backgroundPosition="0 -"+WAYN.lightForm.radioHeight*5+"px"}else{if(device.checked!=true&&device.type=="checkbox"){this.style.backgroundPosition="0 -"+WAYN.lightForm.checkboxHeight*4+"px"}else{this.style.backgroundPosition="0 -"+WAYN.lightForm.radioHeight*4+"px"}}}};c.checkOut=function(){if(this.pushed){WAYN.lightForm.recompose(this.device,this);this.pushed=false}};c.trigger=function(f,d){device=f;dummy=f.previousSibling;if(device.type=="checkbox"){if(!d||Prototype.Browser.IE){device.checked=!device.checked}}else{if(!device.checked){device.checked=true}}if(device._onchange){device._onchange()}if(device._onclick){device._onclick()}WAYN.lightForm.recompose(device,dummy)};c.recompose=function(d,g){position=0;if(d.type=="checkbox"){if(!d.checked){position=0}else{position=WAYN.lightForm.checkboxHeight}if(d.disabled){position+=WAYN.lightForm.checkboxHeight*2}}else{if(d.type=="radio"){if(d.checked==true){position=WAYN.lightForm.radioHeight;group=g.nextSibling.name;inputs=$$("input.styled");for(b=0;b<inputs.length;b++){if(inputs[b].name==group&&inputs[b]!=g.nextSibling){try{subPosition=0;if(inputs[b].disabled){subPosition+=WAYN.lightForm.radioHeight*2}inputs[b].previousSibling.style.backgroundPosition="0 -"+subPosition+"px"}catch(f){console.log(f+"@id:"+inputs[b].id+":name:"+inputs[b].name)}}}if(d.disabled){position+=WAYN.lightForm.radioHeight*2}}}else{}}g.style.backgroundPosition="0 -"+position+"px"};c.check=function(){device=this.nextSibling;device.dummy.pushed=false;WAYN.lightForm.trigger(device);try{device.onclick()}catch(d){}};return c})();WAYN.preLoad.override("lightforms",function(){WAYN.lightForm.Init()});WAYN.HintItem={listSelect:function(){this.hint.hidden.value=this.data;this.hint.input.value=String(this.innerHTML).stripTags();this.hint.hideList();this.hint.input.onchange();this.hint.input.focus()},listOver:function(){if(this.hint.selected!=null){this.hint.selected.unselectItem()}this.hint.selected=this;this.selectItem();if(!(this.hint.freeText)){this.hint.hidden.value=this.data;this.hint.input.onchange()}this.hint.input.value=String(this.innerHTML).stripTags()},listOut:function(){this.unselectItem();if(this.hint.freeText){if(this.hint.selected!=null){this.hint.input.value=this.hint.selected.innerHTML.stripTags();this.hint.hidden.value=this.hint.selected.data}else{}}},selectItem:function(){this.style.backgroundColor=this.hint.selBGColor;this.style.color=this.hint.selFGColor},unselectItem:function(){this.style.backgroundColor=this.hint.unselBGColor;this.style.color=this.hint.unselFGColor}};WAYN.Hint=Class.create({input:null,hidden:null,div:null,source:null,range:3,startChr:0,acceptResponse:false,selected:null,selBGColor:"#E1F5C0",unselBGColor:"#FFFFFF",selFGColor:"#3E3F41",unselFGColor:"#3E3F41",freeText:false,previousValue:"",initialize:function(c){this.extendItem=WAYN.HintItem;var d=c.attributes.id.value;this.hidden=$(d+"_key");if(!(this.hidden)){this.hidden=document.createElement("input");this.hidden.setAttribte("id",d+"_key");this.hidden.type="hidden";this.hidden.value="";this.input.parent.insertBefore(this.hidden,this.input)}this.hidden.hint=this;this.div=$(d+"_o");if(!(this.div)){this.div=$(document.createElement("div"));this.div.setAttribte("id",d+"_o");this.div.style.display="none";c.parent.insertAfter(this.div,c)}this.div=$(this.div);this.div.className="boxHint";this.div.hint=this;this.source=String.interpret(c.getAttribute("source"));this.freeText=(String.interpret(c.getAttribute("freetext")).strip()!="");c._onkeyup=c.onkeyup;c._onblur=c.onblur;c._onfocus=c.onfocus;c._onchange=c.onchange;c.hint=this;c.onkeyup=function(f){if(!(this.hint)&&(this.inputObject)){myself=this.inputObject}else{myself=this}myself.hint.keyup(f,myself)};c.onblur=function(){if(!(this.hint)&&(this.inputObject)){myself=this.inputObject}else{myself=this}myself.hint.blur(myself)};c.onfocus=function(){if(!(this.hint)&&(this.inputObject)){myself=this.inputObject}else{myself=this}myself.hint.focus(myself)};c.onchange=function(){if(!(this.hint)&&(this.inputObject)){myself=this.inputObject}else{myself=this}myself.hint.change(myself)};this.input=c},change:function(c){if(c==null){c=this}if(c.hint!=null){c=c.hint}if(c.input._onchange){c.input._onchange()}},focus:function(c){if(c==null){c=this}if(c.hint!=null){c=c.hint}c.acceptResponse=true;if(c.input._onfocus){c.input._onfocus()}},blur:function(c){if(c==null){c=this}if(!!c.hint){c=c.hint}c.acceptResponse=false;c.hideList();if(c.input._onblur){c.input._onblur()}},hideList:function(){var c=this;if(c.hint!=null){c=c.hint}c.acceptResponse=false;if(c.selected!=null){c.input.value=c.selected.innerHTML.stripTags();c.hidden.value=c.selected.data}c.div.innerHTML="";if(!(c.div.hideDiv)){Element.extend(c.div)}c.div.hideDiv();c.selected=null},keyup:function(c,m){if(m==null){m=this}if(m.hint!=null){m=m.hint}var g=m.input;if(!c){c=window.event}var l=false;var d="";g.setAttribute("maxlength",255);g.setAttribute("autocomplete","off");if(m.div.style.width==null||String(m.div.style.width).stripAllWhite()==""){m.div.style.width=g.style.width}if(c.keyCode==8||c.keyCode==46){l=true}if(!l){d=String.fromCharCode(c.keyCode).toLowerCase()}key=c.keyCode;switch(key){case 8:if(String(g.value).length<4){m.selected=null;m.hideList()}break;case 17:break;case 18:break;case 27:break;case 16:break;case 35:break;case 36:break;case 37:break;case 39:break;case 9:m.hideList();m.input.focus();break;case 13:m.hideList();m.input.focus();break;case 40:if(m.div.childNodes.length>0){var f=null;if(m.selected==null){f=m.div.childNodes[0]}else{m.selected.unselectItem();f=m.selected.nextSibling;if(f==null){f=m.div.childNodes[0]}}m.selected=f;m.input.value=String(f.innerHTML).stripTags();m.hidden.value=f.data;f.selectItem()}break;case 38:if(m.div.childNodes.length>0){var f=null;if(m.selected==null){f=m.div.childNodes[m.div.childNodes.length-1]}else{m.selected.unselectItem();f=m.selected.previousSibling;if(f==null){f=m.div.childNodes[m.div.childNodes.length-1]}}m.selected=f;m.input.value=String(f.innerHTML).stripTags();m.hidden.value=f.data;f.selectItem()}break;default:var n=String(g.value).strip();var h="";if(n.length>m.startChr){h=n.substr(m.startChr,n.length)}var k=false;if(n.length>=m.startChr+m.range){k=true}else{if(String(h).length<4){m.selected=null;m.hideList()}else{k=true}}m.previousValue=n;m.hidden.value=0;if((l&&k)||(!l&&k)){new Ajax.Request(m.source+encodeURIComponent(h),{onFailure:function(o){alert("Sorry we're unable to execute the search. Please try again later (2-"+xmlRequest.status+").");return},onSuccess:function(r){m.div.innerHTML="";var o=r.responseXML.getElementsByTagName("hi");if(o.length>0){for(i=0;i<o.length;i++){if(o[i].nodeName!="#text"){var p=document.createElement("div");Element.extend(p);p.hint=m;p.data=o[i].getAttribute("a");Object.extend(p,m.extendItem);p.onmousedown=p.listSelect;p.onmouseover=p.listOver;p.onmouseout=p.listOut;p.innerHTML=o[i].getAttribute("d");m.div.appendChild(p)}}}else{var o=r.responseXML.getElementsByTagName("i");for(i=0;i<o.length;i++){if(o[i].nodeName!="#text"){try{var p=document.createElement("div");Element.extend(p);p.hint=m;p.data=o[i].nextSibling.nextSibling.nextSibling.firstChild.nodeValue;Object.extend(p,m.extendItem);p.onmousedown=p.listSelect;p.onmouseover=p.listOver;p.onmouseout=p.listOut;p.innerHTML=o[i].nextSibling.nextSibling.firstChild.nodeValue;m.div.appendChild(p)}catch(q){}}}}m.div.showDiv();if(m.div.childNodes.length>0){if(!m.freeText){m.selected=m.div.childNodes[0];m.selected.selectItem()}else{m.hidden.value=0}}else{m.hidden.value=0;m.hideList()}}})}else{if((l&&h.length==1)||(!l&&h.length==0)){m.hideList()}}break}if(g._onkeydown){g._onkeydown(c)}}});WAYN.Hint.Init=function(){var d=$$("input.hint");for(var c=0;c<d.length;c++){if(!(d[c].hint)){new WAYN.Hint(d[c])}}};WAYN.preLoad.append(function(){WAYN.Hint.Init()});WAYN.Inputs=function(f){var g=this;this.inputObject=f.subject;this.waynInput=this;for(var d=0;d<this.inputObject.parentNode.childNodes.length;d++){var c=this.inputObject.parentNode.childNodes[d];if(c.nodeType==1){if(c.getAttribute("default_desc")=="1"){c=null;return}c=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(f.defaultValue){this.defaultValue=f.defaultValue}else{this.defaultValue=this.inputObject.value}if(f.textAlign){this.textAlign=f.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(){g.onfocus()};this.inputObject.onblur=function(){g.onblur()};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(){g.oDivOnClick(true)}}else{this.oDiv.onclick=function(){g.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(f.defaultFocus=="true"){this.oDivOnClick()}if(f.defaultFocus=="withdefault"){this.inputObject.focus()}};this.checkValue=function(){if(""==String.interpret(this.inputObject.value).strip()){this.showODiv()}else{this.hideODiv()}};this.oDivOnClick=function(h){if(h==true){this.inputObject.onclick()}if(g.oDivVisible){g.hideODiv();g.inputObject.focus()}else{g.inputObject.focus()}};this.onfocus=function(){g.oDivOnClick();if(this._iOnFocus){g._iOnFocus()}};this.onblur=function(){this.blurring=true;this.checkValue();if(this._iOnBlur){this._iOnBlur()}};this.showODiv=function(){g.hiding=false;var h;if(g.inputObject.getWidth()==0){h=parseInt(g.inputObject.getStyle("width"),10)}else{h=parseInt(g.inputObject.getWidth(),10)}h=h-parseInt(g.oDiv.style.paddingLeft,10)-parseInt(g.oDiv.style.paddingRight,10);if(h<0){h=0}g.oDiv.style.width=h+"px";g.oDiv.innerHTML=g.defaultValue;if(g.animator!=null){g.animator.seekTo(1)}else{g.initializeAnimation();g.animator.play()}g.oDivVisible=true};this.hideODiv=function(){if(g.oDivVisible==true){g.hiding=true;if(g.animator!=null){g.animator.seekTo(0)}else{g.initializeAnimation();g.animator.reverse()}g.oDivVisible=false}};this.initializeAnimation=function(){g.animator=new Animator({onComplete:function(){if(g.hiding){g.oDiv.innerHTML="";g.oDiv.style.width="1px"}}}).addSubject(new NumericalStyleSubject(g.oDiv,"opacity",0,1))};this.setDefault=function(){if(f.defaultClass){this.inputObject.className=f.defaultClass}if(f.defaultColor){this.inputObject.style.color=f.defaultColor}};this.setChanged=function(){if(f.activeclass){this.inputObject.className=f.activeclass}if(f.changedColor){this.inputObject.style.color=f.changedColor}};this.__init()};WAYN.Inputs.Init=function(){var d=document.getElementsByTagName("input");var c=document.getElementsByTagName("textarea");for(a=0;a<d.length;a++){if(d[a].getAttribute("defaultvalue",true)){if(!(d[a].waynInput)){new WAYN.Inputs({subject:d[a],defaultValue:d[a].getAttribute("defaultvalue",true),defaultFocus:d[a].getAttribute("defaultfocus",true)})}}}for(a=0;a<c.length;a++){if(c[a].getAttribute("defaultvalue",true)){if(!(c[a].waynInput)){new WAYN.Inputs({subject:c[a],textAlign:"top",defaultValue:c[a].getAttribute("defaultvalue",true),defaultFocus:c[a].getAttribute("defaultfocus",true)})}}}};WAYN.onLoad.append(function(){WAYN.Inputs.Init()});WAYN.TickUpdater=Class.create({tick:60000,source:"",timer:null,divId:"",initialize:function(d){if(!Object.isElement(d)){return}this.source=String.interpret(d.getAttribute("source")).strip();if(this.source==""){return}this.divId=String.interpret(d.attributes.id.value).strip();if(this.divId==""){return}var c=parseInt(d.getAttribute("tick"));if(!isNaN(c)){this.tick=c}d.updater=this;this.div=d;this.fire()},fire:function(){var c="$('"+this.divId+"').updater.doTick();";this.timer=setTimeout(c,this.tick)},doTick:function(){var c=this;new Ajax.Request(this.source,{onSuccess:function(g){try{responseXml=g.responseXML.getElementsByTagName("box");if(responseXml.length<1){c.fire()}for(var f=0;f<responseXml.length;f++){i=responseXml[f];for(j=i.firstChild;j!=null;j=j.nextSibling){if(j.nodeValue!=null&&j.nodeValue!=""){c.div.innerHTML=j.nodeValue}}}c.fire()}catch(d){c.fire()}},onFailure:function(){c.fire()},onException:function(){c.fire()}})}});WAYN.TickUpdater.Init=function(){var d=$$(".tickUpdater");for(var c=0;c<d.length;c++){if(!(d[c].updater)){new WAYN.TickUpdater(d[c])}}};WAYN.preLoad.append(function(){WAYN.TickUpdater.Init()});WAYN.Updater=Class.create({initialize:function(f,h,c){if(!(h.parentNode.getWidth)){Element.extend(h.parentNode)}var g=(h.parentNode.getHeight()-40)/2;var d='<center><div style="margin-top: '+g+'px"><img align="absmiddle" style="padding: 5px" src="'+appproxypath+'images/loading.gif" alt="" title=""/><b>Please wait whilst loading data ...</b></div></center>';h.innerHTML=d;return new Ajax.Request(f,c)}});WAYN.Hover=Class.create({initialize:function(c){if(!(Object.isElement(c))){return}c.hover=this;c.onmouseover=this.onMouseOver;c.onmouseout=this.onMouseOut},onMouseOver:function(){this.src=this.getAttribute("imagehover")},onMouseOut:function(){if(this.getAttribute("active")!="on"){this.src=this.getAttribute("image")}}});WAYN.Hover.Init=function(){var d=$$("img.hover");for(var c=0;c<d.length;c++){if(!(d[c].hover)){new WAYN.Hover(d[c])}}};WAYN.preLoad.append(function(){WAYN.Hover.Init()});WAYN.Tabs=Class.create({markerClass:"",defaultItem:null,ignoredClass:"ignored",items:Array(),index:0,collection:null,itemOnMouseOver:function(){if(this.tabs.timer){clearTimeout(this.tabs.timer)}this.tabs.mark(this);if(this.__onmouseover){this.__onmouseover()}},itemOnMouseOut:function(){},subMenuOnMouseOver:function(){if((this.upmenu.list)){clearTimeout(this.upmenu.list.timer)}},subMenuOnMouseOut:function(){if((this.upmenu.list)){this.upmenu.list.timer=setTimeout("WAYN.List.Switch("+this.upmenu.list.index+");",WAYN.globals.tabsSpeed)}},mark:function(g){if(g==null){return}var f=g.tabs;for(var d=0;d<f.items.length;d++){var c=f.items[d];if(c.submenu){if(f.items[d]==g){c.submenu.style.display=""}else{c.submenu.style.display="none"}}}},initialize:function(f,d){this.index=d;this.markerClass=String.interpret(f.getAttribute("marker"));ignoredClass=String.interpret(f.getAttribute("ignore")).strip();if(ignoredClass!=""){this.ignoredClass=ignoredClass}this.collection=$(String.interpret(f.getAttribute("submenus")).strip());if(!(this.collection)){return}for(var g=f.firstChild;g!=null;g=g.nextSibling){if(Object.isElement(g)){if(!(g.addClassName)){Element.extend(g)}if(!(g.hasClassName(this.ignoredClass))){g.__onmouseover=g.onmouseover;g.__onmouseout=g.onmouseout;g.onmouseover=this.itemOnMouseOver;g.onmouseout=this.itemOnMouseOut;g.menuname=String.interpret(g.getAttribute("menuname"));if(g.hasClassName(this.markerClass)){this.defaultItem=g}g.tabs=this;for(var c=this.collection.firstChild;c!=null;c=c.nextSibling){if(Object.isElement(c)){if(!(c.addClassName)){Element.extend(c)}if(String.interpret(c.getAttribute("menuname"))==g.menuname){g.submenu=c;c.upmenu=g;c.onmouseover=this.subMenuOnMouseOver;c.onmouseout=this.subMenuOnMouseOut}}}this.items.push(g)}}}f.tabs=this}});WAYN.Tabs.lists=Array();WAYN.Tabs.Init=function(){var d=$$(".waynTabs");for(var c=0;c<d.length;c++){if(!(d[c].tabs)){WAYN.Tabs.lists[c]=new WAYN.Tabs(d[c],c)}}};WAYN.preLoad.append(function(){WAYN.Tabs.Init()});WAYN.List=Class.create({markerClass:"",defaultItem:null,ignoredClass:"ignored",timer:null,items:Array(),index:0,clickAble:false,itemOnMouseOver:function(){if(this.timer){clearTimeout(this.timer)}if(this.list.timer){clearTimeout(this.list.timer)}this.timing=true;this.timer=setTimeout("WAYN.List.SwitchTo("+this.list.index+","+this.__index+");",WAYN.globals.tabsSelectSpeed)},itemOnMouseOut:function(){this.timing=false;this.list.timer=setTimeout("WAYN.List.Switch("+this.list.index+");",WAYN.globals.tabsSpeed)},itemOnClick:function(){if(this.parentNode.id=="photoBoxList"||this.parentNode.id=="peopleBoxList1"||this.parentNode.id=="peopleBoxList2"){this.timing=false;this.list.timer=setTimeout("WAYN.List.Switch("+this.list.index+");",0)}this.list.defaultItem=this;if(this._onclick){this._onclick()}},mark:function(f){if(f==null){return}var d=f.list;for(var c=0;c<d.items.length;c++){if(d.items[c]==f){d.items[c].addClassName(d.markerClass)}else{if(d.items[c].parentNode==f.parentNode){d.items[c].removeClassName(d.markerClass)}}}},initialize:function(f,c){this.index=c;this.markerClass=String.interpret(f.getAttribute("marker"));ignoredClass=String.interpret(f.getAttribute("ignore")).strip();if(ignoredClass!=""){this.ignoredClass=ignoredClass}clickAble=String.interpret(f.getAttribute("clickable")).strip();if(clickAble=="true"){this.clickAble=true}var d=0;for(var g=f.firstChild;g!=null;g=g.nextSibling){if(Object.isElement(g)){if(!(g.addClassName)){Element.extend(g)}if(!(g.hasClassName(this.ignoredClass))){g._onmouseover=g.onmouseover;g._onmouseout=g.onmouseout;g.onmouseover=this.itemOnMouseOver;g.onmouseout=this.itemOnMouseOut;g.__index=d++;if(this.clickAble){g.style.cursor="pointer";g._onclick=g.onclick;g.onclick=this.itemOnClick}if(g.hasClassName(this.markerClass)){this.defaultItem=g}g.list=this;this.items.push(g)}}}f.list=this}});WAYN.List.lists=Array();WAYN.List.Init=function(){var d=$$(".waynList");for(var c=0;c<d.length;c++){if(!(d[c].list)){WAYN.List.lists[c]=new WAYN.List(d[c],c)}}};WAYN.List.Switch=function(c){var d=WAYN.List.lists[c];d.mark(d.defaultItem);if(d.defaultItem){if(d.defaultItem._onmouseover){d.defaultItem._onmouseover()}}};WAYN.List.SwitchTo=function(d,c){var f=WAYN.List.lists[d];if(f.items[c].timing!=true){return}f.mark(f.items[c]);if(f.items[c]){if(f.items[c]._onmouseover){f.items[c]._onmouseover()}}};WAYN.preLoad.append(function(){WAYN.List.Init()});WAYN.Image={loaderSrc:"/images/loading.gif",transaprentSrc:"/images/1x1t.gif",imageSrc:null,Anchor:Class.create({imageWidth:null,imageHeight:null,imageSrc:null,initialize:function(c){c=$(c);this.imageSrc=c.href;c.href="#";this.anchor=c;c.waynImage=this;c.onclick=function(){this.waynImage.Next()}},showBox:function(){var k=$("WAYNImageImageBox");if(k==null){k=new Element("div",{id:"WAYNImageImageBox",style:"display: none"});var f=new Element("div");k.optionsDiv=f;var c=new Element("a",{popup:"WAYNImageImageBox",className:"popupClose",href:"#"});var g=new Element("a",{popup:"WAYNImageImageBox",className:"popupClose",href:"#"});k.appendChild(c);k.img=document.createElement("img");c.appendChild(k.img);var h=new Element("img",{src:appproxypath+"images/closelabel.gif",style:"clear: both; margin: 5px; float: right"});var d=new Element("br");k.appendChild(d);k.appendChild(f);f.appendChild(g);g.appendChild(h);document.body.appendChild(k)}this.applyImage(k.img)},Next:function(){var c=this.anchor.getAttribute("nextImgUrl");if(c&&c.length>0){document.location=c}else{return false}},applyImage:function(d){if(this.imageWidth==null){var c=$(this.anchor).getElementsByTagName("img");for(var f=0;f<c.length;f++){if(c[f].src==this.imageSrc&&!!(c[f].waynImage)){this.imageWidth=c[f].waynImage.sourceWidth;this.imageHeight=c[f].waynImage.sourceHeight}}}d.src=this.imageSrc;d.onload=function(g){g.parentNode.parentNode.style.width=g.waynImage.sourceWidth+"px";g.parentNode.parentNode.optionsDiv.style.width=g.waynImage.sourceWidth+"px"};if(this.imageWidth==null){new WAYN.Image.Picture(d)}else{new WAYN.Image.Picture(d,this.imageWidth,this.imageHeight)}}}),Picture:Class.create({imageSrc:null,maxWidth:null,maxHeight:null,sourceWidth:null,sourceHeight:null,currentWidth:null,currentHeight:null,_WAYN_Image_Picture_onLoad:function(){},initialize:function(f,d,c){f=$(f);this._WAYN_Image_Picture_onLoad=f.onload;f.onload=function(){};this.imageSrc=f.src;this.image=f;f.waynImage=this;this.maxWidth=f.getAttribute("waynimagewidth");this.maxHeight=f.getAttribute("waynimageheight");if(isNaN(d)||d===null){this.doPreload()}else{this.applySizes({offsetWidth:d,offsetHeight:c});this.doCover()}},doPreload:function(){var c=new Element("img");c.style.position="absolute";c.style.width="1px";c.style.height="1px";c.owner=this;document.body.appendChild(c);c.onload=function(){this.owner.image.src=this.src;this.style.width="auto";this.style.height="auto";this.owner.applySizes(this);this.owner.doCover();this.remove()};c.src=this.imageSrc},applySizes:function(f){var d=0;var c=0;if(!!(f.naturalWidth)){d=f.naturalWidth;c=f.naturalHeight}else{d=f.offsetWidth;c=f.offsetHeight}this.image.originalWidth=d;this.image.originalHeight=c;this.sourceWidth=d;this.sourceHeight=c;if(this.maxWidth!==null){if(d>this.maxWidth){c=parseInt((c*this.maxWidth)/d);d=this.maxWidth}}if(this.maxHeight!==null){if(c>this.maxHeight){d=parseInt((d*this.maxHeight)/c);c=this.maxHeight}}this.currentWidth=d;this.currentHeight=c;this.image.style.width=d+"px";this.image.style.height=c+"px";if("1"==this.image.getAttribute("scaleImage")){this.scaleImage()}},doCover:function(){if(this.image.getAttribute("nocover")!=1){var c=new Element("img");c.style.position="absolute";c.style.marginLeft="-"+this.currentWidth+"px";c.style.width=this.currentWidth+"px";c.style.height=this.currentHeight+"px";c.id="imageCover";c.src=WAYN.Image.transaprentSrc;if(this.image.nextSibling!=null){this.image.parentNode.insertBefore(c,this.image.nextSibling)}else{this.image.parentNode.appendChild(c)}if(Object.isFunction(this._WAYN_Image_Picture_onLoad)){this._WAYN_Image_Picture_onLoad(this.image)}if($("WAYNImageImageBox")){new WAYN.Popup($("WAYNImageImageBox"),true,false)}if(this.image.getAttribute("tagging")==1){showTaggingLink()}}},scaleImage:function(){var d;var h;if(typeof window.innerWidth!="undefined"){d=window.innerWidth,h=window.innerHeight}else{if(typeof document.documentElement!="undefined"&&typeof document.documentElement.clientWidth!="undefined"&&document.documentElement.clientWidth!=0){d=document.documentElement.clientWidth,h=document.documentElement.clientHeight}else{d=document.getElementsByTagName("body")[0].clientWidth,h=document.getElementsByTagName("body")[0].clientHeight}}if(this.image.height>h){try{this.image.setAttribute("originalWidth",this.image.width);this.image.setAttribute("originalHeight",this.image.height);var c=h-(h%10);var g=(this.image.width*c)/this.image.height;this.currentWidth=g;this.currentHeight=c;this.image.style.height=c+"px";this.image.style.width=g+"px"}catch(f){}}}}),initAnchors:function(){var f=$$("a.waynImage");for(var d=0;d<f.length;d++){var c=f[d];if(!(c.waynImage)){new WAYN.Image.Anchor(c)}}},initImages:function(){var c=$$("img.waynImage");for(var d=0;d<c.length;d++){var f=c[d];if(!(f.waynImage)){new WAYN.Image.Picture(f)}}}};WAYN.preLoad.append(function(){WAYN.Image.initImages()});WAYN.onLoad.append(function(){WAYN.Image.initAnchors()});WAYN.button=function(f){var k=f.color?f.color:"green";var c=f.width?parseInt(f.width):90;var h=new Element("div",{"class":"WAYNbuttonEdge"}).setStyle({background:"url('/images/mainset_03/waynbutton_"+k+"_left.gif') no-repeat"});var g=new Element("div",{"class":"WAYNbuttonCenter"}).setStyle({background:"url('/images/mainset_03/waynbutton_"+k+"_center.gif') repeat-x",width:c-12}).update(f.caption);var l=new Element("div",{"class":"WAYNbuttonEdge"}).setStyle({background:"url('/images/mainset_03/waynbutton_"+k+"_right.gif') no-repeat"});var d=new Element("div",{id:(f.id?f.id:"")}).setStyle({cursor:f.onclick?"pointer":"default",width:c}).insert(h).insert(g).insert(l);if(f.onclick){d.observe("click",f.onclick)}return(d)};WAYN.changeLanguage=function(d){var f=$F(d);var c="/wayn.html?wci=default&wce=language&language="+f+"&url="+encodeURIComponent(document.location.href);document.location.href=c};WAYN.Open=function(f,k,d,g,c){var m=null;var n="";if(isNaN(d)){if(k==null){k=""}try{if(d==null||d==""){m=window.open(f,k)}else{m=window.open(f,k,d)}}catch(l){}}else{if(k==null){try{m=window.open(f)}catch(l){}}else{LeftPosition=(screen.width)?(screen.width-d)/2:0;TopPosition=(screen.height)?(screen.height-g)/2:0;settings="toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,height="+g+",width="+d+",top="+TopPosition+",left="+LeftPosition+",scrollbars="+c;try{m=window.open(f,k,settings)}catch(l){}}}if(!m){n+="You seem to have blocked the new window from opening.\n\n";n+="If you are using POP-UP blocking software, we highly reccomend you disable it\n";n+="when using WAYN, or add our web address to your allowed list.\n\n";alert(n)}if(m){if(m.window.focus){m.window.focus()}}return m};WAYN.Import=function(k){var n=WAYN.Import.caller;var f;var m=k.split(".");var r=m[m.length-1];if(r=="js"){var d=document.createElement("script");var p=document.getElementsByTagName("script")}if(r=="css"){var d=document.createElement("link");var p=document.getElementsByTagName("link")}if(-1==k.search(/^http:\/\//)){var o=document.getElementsByTagName("script");for(var h=0;h<o.length;h++){if((o[h].src)&&((o[h].src.indexOf("/wayn.js")>-1)||(o[h].src.indexOf("=wayn.js")>-1))){var g=o[h].src}}var l=g.split("/");l.pop();var q=l.join("/");f=q+k;if(scriptprefix){if(scriptprefix.search(/waynfx\.html/)!=-1){f=scriptprefix+encodeURIComponent(k)}else{if(scriptprefix.indexOf("/")==0){scriptprefix=scriptprefix.substring(1)}if(k.indexOf("/")==0){f=scriptprefix+k.substring(1)}else{f=scriptprefix+k}f=location.protocol+"//"+location.hostname+"/"+f}}}else{f=k}for(var h=0;h<p.length;h++){if((p[h].src==f)||(p[h].src==k)||(p[h].href==f)||(p[h].href==k)){return}else{if(((p[h].src)&&(p[h].src.split("?")[0])&&(p[h].src.split("?")[0]==f))||((p[h].src)&&(p[h].src.split("?")[0])&&(p[h].src.split("?")[0]==k))||((p[h].href)&&(p[h].href.split("?")[0])&&(p[h].href.split("?")[0]==f))||((p[h].href)&&(p[h].href.split("?")[0])&&(p[h].href.split("?")[0]==k))){return}}}new Ajax.Request((f),{method:"get",asynchronous:false,onSuccess:function(c){if(r=="js"){d.setAttribute("src",f);d.setAttribute("type","text/javascript")}if(r=="css"){d.setAttribute("rel","stylesheet");d.setAttribute("type","text/css");d.setAttribute("href",f)}document.getElementsByTagName("head")[0].appendChild(d);if(n){}},onFailure:function(c,t){},onException:function(c,t){}})};function KillFrames(){if(self.parent.frames.length!=0){self.parent.location=document.location}}function addbookmark(){if(document.all){window.external.AddFavorite("http://www.wayn.com/","Where Are You Now?")}}function hideToolTips(){Element.extend($("toolTips")).hideDiv();SetStatus("")}function showToolTips(m,g,n,h,d,o){var k,f;if(!m){var m=window.event}k=m.clientX;f=m.clientY;f=f+document.body.scrollTop;if(n==""){n="#94BCDD"}if(h==""){h="#ffffff"}var l=$("toolTips");if(l){l.style.color=h;l.style.backgroundColor=n;l.style.left=k+5;l.style.top=f+15;if(d==null||d==""){l.style.width=null}else{l.style.width=d}l.innerHTML=g;l=Element.extend(l);if(o==1){l.style.display="block"}else{l.showDiv()}SetStatus("")}}function TimStatus(c){window.status=c}function SetStatus(c){window.status=c;setTimeout('TimStatus("'+c+'")',1)}function hidePreloader(){WAYN.Popup.hideLoader()}function isValidEmail(l,g,f){var h=/^(?:[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 c=h.test(l);if(c==false&&f==true){try{var d="";var m="";if(g==null){splace=""}d="/waynfx.html?wci=XMLInvalidEmailsLog";m+="invalid_email="+l+"&invalid_place="+g;xmlRequest=new Ajax.Request(d,{method:"POST",postBody:m,onSuccess:function(n){return},onFailure:function(n){return},onException:function(n){return}})}catch(k){}}return c}function isValidURL(f){var c="www.[A-Za-z0-9-]+.[A-Za-z0-9]+";var d=new RegExp(c);return d.test(f)}function isPositiveNumber(c){if(isNaN(parseInt(c))||parseInt(c)<0){return false}return true}function isNumber(c){if(isNaN(parseInt(c))){return false}return true}function stripCharsInBag(f,g){var d="";for(ph=0;ph<f.length;ph++){var h=f.charAt(ph);if(g.indexOf(h)==-1){d+=h}}return d}function stripCharsNotInBag(f,g){var d="";for(ph=0;ph<f.length;ph++){var h=f.charAt(ph);if(g.indexOf(h)!=-1){d+=h}}return d}function checkInternationalPhone(d){var c="()- ";var f=c+"+";var g=10;s=stripCharsInBag(d,f);return(isPositiveNumber(s)&&s.length>=g)}function checkDateFormat(g,f){if(f==""){f="DD/MM/YYYY"}var c=false;var l=new Date();var k=null;try{k=g.split("/");if(k.length!=3){alert("bad format use "+f);return false}if(k[0].length!=2){alert("bad day format (use DD)");return false}if(k[1].length!=2){alert("bad month format (use MM)");return false}if(k[2].length!=4){alert("bad year format (use YYYY)");return false}if(Number(k[0])>31){alert("bad day");return false}if(Number(k[1])>12){alert("bad month");return false}if(Number(k[2])>(l.getFullYear()+2)){alert("bad year");return false}return true}catch(h){alert("checkDateFormat: "+h);return false}}function keyRestrict(f,d){var c="",g="";if(window.event){c=window.event.keyCode}else{if(f){c=f.which}else{c=null}}if(c==null){return true}g=String.fromCharCode(c);g=g.toLowerCase();d=d.toLowerCase();if(d.indexOf(g)!=-1){return true}if(c==null||c==0||c==8||c==9||c==13||c==27||c==37||c==38||c==39||c==40||c==46){return true}return 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(t,f,u,k,o,p,m,l,g,r){if(!document.getElementById){return}this.DETECT_KEY=r?r:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(t){this.setAttribute("swf",t)}if(f){this.setAttribute("id",f)}if(u){this.setAttribute("width",u)}if(k){this.setAttribute("height",k)}if(o){this.setAttribute("version",new deconcept.PlayerVersion(o.toString().split(".")))}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true}if(p){this.addParam("bgcolor",p)}var d=m?m:"high";this.addParam("quality",d);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var n=(l)?l:window.location;this.setAttribute("xiRedirectUrl",n);this.setAttribute("redirectUrl","");if(g){this.setAttribute("redirectUrl",g)}};deconcept.SWFObject.prototype={useExpressInstall:function(c){this.xiSWFPath=!c?"expressinstall.swf":c;this.setAttribute("useExpressInstall",true)},setAttribute:function(c,d){this.attributes[c]=d},getAttribute:function(c){return this.attributes[c]},addParam:function(d,c){this.params[d]=c},getParams:function(){return this.params},addVariable:function(d,c){this.variables[d]=c},getVariable:function(c){return this.variables[c]},getVariables:function(){return this.variables},getVariablePairs:function(){var f=new Array();var d;var c=this.getVariables();for(d in c){f[f.length]=d+"="+c[d]}return f},getSWFHTML:function(){var d="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath)}d='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'"';d+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var k=this.getParams();for(var h in k){d+=[h]+'="'+k[h]+'" '}var g=this.getVariablePairs().join("&");if(g.length>0){d+='flashvars="'+g+'"'}d+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath)}d='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'">';d+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var f=this.getParams();for(var h in f){d+='<param name="'+h+'" value="'+f[h]+'" />'}var c=this.getVariablePairs().join("&");if(c.length>0){d+='<param name="flashvars" value="'+c+'" />'}d+="</object>"}return d},write:function(d){if(this.getAttribute("useExpressInstall")){var c=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(c)&&!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 f=(typeof d=="string")?$(d):d;f.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var h=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var c=navigator.plugins["Shockwave Flash"];if(c&&c.description){h=new deconcept.PlayerVersion(c.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 d=1;var f=3;while(d){try{f++;d=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+f);h=new deconcept.PlayerVersion([f,0,0])}catch(g){d=null}}}else{try{var d=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(g){try{var d=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");h=new deconcept.PlayerVersion([6,0,21]);d.AllowScriptAccess="always"}catch(g){if(h.major==6){return h}}try{d=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(g){}}if(d!=null){h=new deconcept.PlayerVersion(d.GetVariable("$version").split(" ")[1].split(","))}}}return h};deconcept.PlayerVersion=function(c){this.major=c[0]!=null?parseInt(c[0]):0;this.minor=c[1]!=null?parseInt(c[1]):0;this.rev=c[2]!=null?parseInt(c[2]):0};deconcept.PlayerVersion.prototype.versionIsValid=function(c){if(this.major<c.major){return false}if(this.major>c.major){return true}if(this.minor<c.minor){return false}if(this.minor>c.minor){return true}if(this.rev<c.rev){return false}return true};deconcept.util={getRequestParameter:function(f){var g=document.location.search||document.location.hash;if(f==null){return g}if(g){var d=g.substring(1).split("&");for(var c=0;c<d.length;c++){if(d[c].substring(0,d[c].indexOf("="))==f){return d[c].substring((d[c].indexOf("=")+1))}}}return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var d=document.getElementsByTagName("OBJECT");for(var f=d.length-1;f>=0;f--){d[f].style.display="none";for(var c in d[f]){if(typeof d[f][c]=="function"){d[f][c]=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(c){return document.all[c]}}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;WAYN.onLoad.append(function(){Element.addMethods()});function getFlashMovieObject(c){if(window.document[c]){return window.document[c]}if(navigator.appName.indexOf("Microsoft Internet")==-1){if(document.embeds&&document.embeds[c]){return document.embeds[c]}}else{return document.getElementById(c)}}function flashMapGetCountriesArray(d,c){var f=c.GetVariable("/:_root."+d+"Country");if(f!="undefined"){return f.split("\\")}else{return new Array()}}function flashMapGetCurrentCountriesArray(c){return flashMapGetCountriesArray("Current",c)}function flashMapGetPastCountriesArray(c){return flashMapGetCountriesArray("Past",c)}function flashMapGetFutureCountriesArray(c){return flashMapGetCountriesArray("Future",c)}function flashMapSetCountriesArray(f,c,h){var g="";for(var d=0;d<h.length;d++){if(d!=0){g+="|"}g+=h[d]}c.SetVariable("/:_root."+f+"Country",g)}function flashMapSetCurrentCountriesArray(c,d){flashMapSetCountriesArray("Current",c,d)}function flashMapSetPastCountriesArray(c,d){flashMapSetCountriesArray("Past",c,d)}function flashMapSetFutureCountriesArray(c,d){flashMapSetCountriesArray("Future",c,d)}function launchWIM(g,c){var f=null;if(!c){c="/"}ShowAdvertForUser(c);try{if(document.all){if(m_ShowAdvertForUser==true){f=WAYN.Open(c+"waynmessenger.html?wci=contactlist","WIMContactList_"+g,"240","561",false)}else{f=WAYN.Open(c+"waynmessenger.html?wci=contactlist","WIMContactList_"+g,"240","500",false)}}else{if(m_ShowAdvertForUser==true){f=WAYN.Open(c+"waynmessenger.html?wci=contactlist","WIMContactList_"+g,"245","570",false)}else{f=WAYN.Open(c+"waynmessenger.html?wci=contactlist","WIMContactList_"+g,"245","510",false)}}}catch(d){if(m_ShowAdvertForUser==true){f=WAYN.Open(c+"waynmessenger.html?wci=contactlist","WIMContactList_"+g,"245","570",false)}else{f=WAYN.Open(c+"waynmessenger.html?wci=contactlist","WIMContactList_"+g,"245","510",false)}}}function ShowAdvertForUser(c){new Ajax.Request(c+"waynmessenger.html?wci=messenger&wce=getUserAdvertInfo",{onFailure:function(){return false},onSuccess:function(f){var d=f.responseXML.getElementsByTagName("noAdvert");if(d[0].nodeName!="#text"){if(d[0].childNodes[0].nodeValue=="N"){m_ShowAdvertForUser=true}else{m_ShowAdvertForUser=false}}},method:"GET",asynchronous:false})}function validateImg(f,l,c){var n="";switch(c){case 0:n="images/thumbs/nophoto-hostel.jpg";break;case 1:n="images/thumbs/nophoto-camping.jpg";break;case 2:n="images/thumbs/nophoto-hotel.jpg";break;case 3:n="images/thumbs/nophoto-accomodation.jpg";break;default:n="images/thumbs/nophoto-travelguide.jpg"}if($(f).src==appproxypath+n){return}var d=window.location+"";var h=d.split(/\?/)[1];var o=d.split(/\&/);if(l==true){var m=1}for(var g=0;g<o.length;g++){if(o[g].split(/=/)[0]=="searchtype"){if(o[g].split(/=/)[1]=="5"){m=1}}}if(m==1){var k=$(f);if(k.fileSize){if(k.fileSize==1425){k.src=appproxypath+n}}}}WAYN.nav={};WAYN.nav.showHideTrust=function(c){if(c==1){$("trust_certificate").innerHTML=TRUST_DEFINED_TEXT}else{$("trust_certificate").innerHTML='<img style="margin-top: 15px;" src="'+appproxypath+'friends/images/import/TRUSTe_We_Dont_Spam.gif" border="0">'}};function messages_sendMessage(c,k,f,g,h,l){var d="/waynmessages.html?wci=";var c;if(c==""){if($("message_type")){c=$("message_type").value}}if(c==""){c="M"}c=c.toUpperCase();if(c=="M"){d=d+"newmessage"}else{if(c=="E"){d=d+"newecard"}else{if(c=="S"){d=d+"newsms"}else{return}}}if(k==""){k="M"}if(f!=0&&f!=""){if(k=="M"){d=d+"&member_key="}else{if(k=="C"){d=d+"&contact_key="}else{if(k=="S"){d=d+"&phone_num="}else{return}}}d=d+f}if(l==1){window.open(d)}else{document.location=d}return}WAYNTravels={};WAYNTrips={};WAYNProfile={};WAYNBlog={};WAYNPhotos={};WAYNVideos={};WAYNMessages={};function AC_AddExtension(d,c){if(d.indexOf("?")!=-1){return d.replace(/\?/,c+"?")}else{return d+c}}function AC_Generateobj(h,g,c){var f="<object ";for(var d in h){f+=d+'="'+h[d]+'" '}f+=">";for(var d in g){f+='<param name="'+d+'" value="'+g[d]+'" /> '}f+="<embed ";for(var d in c){f+=d+'="'+c[d]+'" '}f+=" ></embed></object>";document.write(f)}function AC_FL_RunContent(){var c=AC_GetArgs(arguments,".swf","movie","clsid:d27cdb6e-ae6d-11cf-96b8-444553540000","application/x-shockwave-flash");AC_Generateobj(c.objAttrs,c.params,c.embedAttrs)}function AC_SW_RunContent(){var c=AC_GetArgs(arguments,".dcr","src","clsid:166B1BCA-3F9C-11CF-8075-444553540000",null);AC_Generateobj(c.objAttrs,c.params,c.embedAttrs)}function AC_GetArgs(d,h,l,g,m){var c=new Object();c.embedAttrs=new Object();c.params=new Object();c.objAttrs=new Object();for(var f=0;f<d.length;f=f+2){var k=d[f].toLowerCase();switch(k){case"classid":break;case"pluginspage":c.embedAttrs[d[f]]=d[f+1];break;case"src":case"movie":d[f+1]=AC_AddExtension(d[f+1],h);c.embedAttrs.src=d[f+1];c.params[l]=d[f+1];break;case"onafterupdate":case"onbeforeupdate":case"onblur":case"oncellchange":case"onclick":case"ondblClick":case"ondrag":case"ondragend":case"ondragenter":case"ondragleave":case"ondragover":case"ondrop":case"onfinish":case"onfocus":case"onhelp":case"onmousedown":case"onmouseup":case"onmouseover":case"onmousemove":case"onmouseout":case"onkeypress":case"onkeydown":case"onkeyup":case"onload":case"onlosecapture":case"onpropertychange":case"onreadystatechange":case"onrowsdelete":case"onrowenter":case"onrowexit":case"onrowsinserted":case"onstart":case"onscroll":case"onbeforeeditfocus":case"onactivate":case"onbeforedeactivate":case"ondeactivate":case"type":case"codebase":c.objAttrs[d[f]]=d[f+1];break;case"width":case"height":case"align":case"vspace":case"hspace":case"class":case"title":case"accesskey":case"name":case"id":case"tabindex":c.embedAttrs[d[f]]=c.objAttrs[d[f]]=d[f+1];break;default:c.embedAttrs[d[f]]=c.params[d[f]]=d[f+1]}}c.objAttrs.classid=g;if(m){c.embedAttrs.type=m}return c}function WaynMapSetDefault(){}function safeString(c){if(c==null){return""}else{return c}}function formatNumber(h){var d="";var c=false;if(h&&!isNaN(h)&&h!="0"){h=parseInt(h);if(h<0){c=true;h=Math.abs(h)}var f=1000;var g=0;do{g=h%f;d=g+(d!=""?","+d:"");h-=g;h/=f}while(h>0);d=(c?"-"+d:d)}else{d="0"}return d}var refreshMsgTimeHeader;function refreshMessageCount(){try{new Ajax.Request("/waynmessages.html?wci=Ajax&wce=messagecounts",{onSuccess:function(g){try{var n=appproxypath;if(n==null){n="/"}var o=g.responseXML.documentElement;var d=parseInt(o.getAttribute("messages"));var f=parseInt(o.getAttribute("notifications"));var h=parseInt(o.getAttribute("unreads"));var k=o.getAttribute("credits");var q=o.getAttribute("rank");var p=parseInt(o.getAttribute("change"));var r=$("waynMessageCounters");if(r==null){var l=setTimeout("refreshMessageCount()",60000);return}if(f!=1){$("notifications_global_count").innerHTML=formatNumber(f)+" Notifications"}else{$("notifications_global_count").innerHTML="1 Notification"}if(f==0){$("notifications_img").src=n+"images/modern/IcoNewMsgOff.gif"}else{$("notifications_img").src=n+"images/modern/IcoNewMsg.gif"}if(k!="1"){$("waynmessagecounters_creditscount").innerHTML=k+" Credits"}else{$("waynmessagecounters_creditscount").innerHTML="1 Credit"}if(k=="0"){$("waynmessagecounters_creditsimg").src=n+"images/modern/IcoNewPointsOff.gif"}else{$("waynmessagecounters_creditsimg").src=n+"images/modern/IcoNewPoints.gif"}try{if(q!="0"){$("waynmessagecounters_credits_rank_link").innerHTML=q+"&nbsp;Rank";if(p>0){$("waynmessagecounters_credits_rank_img").src=n+"images/credits/top-green.gif"}else{if(0==p){$("waynmessagecounters_credits_rank_img").src=n+"images/1x1t.gif"}else{$("waynmessagecounters_credits_rank_img").src=n+"images/credits/top-red.gif"}}}else{}}catch(m){}if(h>0){$("waynmessagecounters_unreadcount0").innerHTML="&nbsp;("+formatNumber(h)+")";$("waynmessagecounters_unreadcount1").innerHTML="&nbsp;("+formatNumber(h)+")"}else{$("waynmessagecounters_unreadcount0").innerHTML="";$("waynmessagecounters_unreadcount1").innerHTML=""}}catch(m){}finally{window.clearTimeout(refreshMsgTimeHeader);refreshMsgTimeHeader=setTimeout("refreshMessageCount()",60000)}},onFailure:function(){window.clearTimeout(refreshMsgTimeHeader);refreshMsgTimeHeader=setTimeout("refreshMessageCount()",60000)},onError:function(){window.clearTimeout(refreshMsgTimeHeader);refreshMsgTimeHeader=setTimeout("refreshMessageCount()",60000)}})}catch(c){window.clearTimeout(refreshMsgTimeHeader);refreshMsgTimeHeader=setTimeout("refreshMessageCount()",60000)}}if(document.getElementById){window.alert_wayn=function(c){createCustomAlert("",c,"warning")};window.confirm_yn=function(c,d,g,f){createCustomAlert("",c,"query",d,g,f)};window.msgBox=function(k,f,d,l,h,g,c){createCustomAlert(h,f,k,d,l,0,g,c)}}var customMsgBoxWidth=0;function createCustomAlert(l,k,p,o,m,q,g,d){var n="";var c="blue";if(l){n=l}if(p=="information"){c="green"}if(p=="warning"){c="yellow"}if(p=="error"){c="red"}if(g==undefined||g==""){switch(p){case"querry":g="Yes";d="No";break;default:g="";d="OK";break}}var h="<div class='alert_"+c+"'><div class='frame'>";h+="<div class='headingBlackMiddle header'>"+n+"</div>";h+="<div class='textBlackMiddle alertContent'>"+k+"</div><div id='alert_hr'>&nbsp;</div><table style='width:100%;margin:10 0 10 0'><tr>";if(g!=""){h+="<td align='right'><a id='yesBtn' href='#' class='btn' onClick='firstAction();return false;'>"+g+"</a></td>"}if(d!=""){if(g){h+="<td>&nbsp;</td><td align='left'>"}else{h+="<td align='center'>"}h+="<a id='noBtn' href='#' class='btn' onClick='secondAction();return false;'>"+d+"</a></td>"}h+="</tr></table></div></div>";var f=new Element("DIV",{id:"alertBox"});f.update(h);window.firstAction=function(){window.setTimeout(function(){closePopUp()},q);try{if(o!=null){o();$("yesBtn").focus()}}catch(r){}try{e.cancelBubble=true}catch(r){}return false};window.secondAction=function(){closePopUp();try{if(m!=null){m();$("yesBtn").focus()}}catch(r){}return false};if(customMsgBoxWidth>0){customMsgBoxWidth=0}showPopUpDiv(f)}function removeCustomAlert(){try{document.getElementsByTagName("body")[0].removeChild(document.getElementById("modalContainer"))}catch(c){}}function Get_Cookie(c,h){if(document.cookie.length>0){var l=document.cookie.indexOf(c+"=");if(l!=-1){l=l+c.length+1;var f=document.cookie.indexOf(";",l);if(-1==f){f=document.cookie.length}var k=document.cookie.substring(l,f)}if(h){var d=k.split("&");k=null;for(var g=0;g<d.length;g++){crumb=d[g].split("=");if(unescape(crumb[0])==h){k=crumb[1]}}}k=unescape(k);return k}return null}function Delete_Cookie(c,f,d){if(Get_Cookie(c)){document.cookie=c+"="+((f)?";path="+f:"")+((d)?";domain="+d:"")+";expires=Thu, 01-Jan-1970 00:00:01 GMT"}}function Set_Cookie(f,h,c,m,g,l){var d=new Date();d.setTime(d.getTime());if(c){c=c*1000*60*60*24}var k=new Date(d.getTime()+(c));document.cookie=f+"="+escape(h)+((c)?";expires="+k.toGMTString():"")+((m)?";path="+m:"")+((g)?";domain="+g:"")+((l)?";secure":"")}function IsLoggedUser(){var c=true;if((document.cookie=="")||(document.cookie==null)||(document.cookie==undefined)){new Ajax.Request("/wayn.html?wci=GetIsMember",{method:"GET",asynchronous:false,onSuccess:function(f){var d=f.responseText;if(d==0){c=false}}})}else{c=Get_Cookie("WAYNSESSION","UserID")>0?true:false}return c}function ShowInteractBox(k,h,o,p,f){returl=document.location;if(!IsLoggedUser()){document.location=location.protocol+"//"+location.hostname+"/waynsplash.html?wci=login&url="+encodeURIComponent(returl);return false}if(k=="friend_request"){WAYN.AddFriend(h);return false}var g=document.createElement("div");g.id="boxPreLoader";g.style.opacity="1";g.style.zIndex=100000003;if(Prototype.Browser.ie6&&Prototype.Browser.IE){g.style.position="absolute"}else{g.style.position="fixed"}var m;var l;switch(k){case"share":l=420;m=410;break;case"open_gift":l=520;m=355;break;case"add_gift":if(Prototype.Browser.ie6&&Prototype.Browser.IE){l=520;m=368}else{l=520;m=355}break;case"sayhello":l=490;m=260;break;case"friend_request":if(Prototype.Browser.ie6&&Prototype.Browser.IE){l=540;m=335}else{l=540;m=310}break;case"story_request":if(Prototype.Browser.ie6&&Prototype.Browser.IE){l=540;m=378}else{l=540;m=387}break;case"tic_destinationmatches":l=280;m=280;break;case"tic_mutualfriends":l=430;m=305;break;case"tic_tripmatches":l=410;m=246;break;case"tic_placematches":l=415;m=235;break;case"tic_reviewmatches":l=435;m=325;break;case"tic_inviteontrip":l=415;m=282;break;case"tic_likes":l=430;m=305;break;case"tic_activities":l=430;m=305;break;case"superrates_who":l=385;m=210;break;case"superrates_pest":l=385;m=220;break;case"superrates_privacy":l=385;m=210;break;case"xmasskin2008":l=385;m=195;break;case"superrates_popup":l=360;m=246;break;case"guidelines":l=360;m=246;break;case"gifts_privacy":l=385;m=210;break;case"view_friends_privacy":l=385;m=210;break;default:l=320;m=170;break}var n=((document.viewport.getDimensions().windowHeight/2)-(m/2)-10);if(Prototype.Browser.ie6&&Prototype.Browser.IE){n+=document.body.scrollTop}if(n<10){n=10}var d=((document.viewport.getDimensions().windowWidth/2)-(l/2)-10);g.style.top=parseInt(n);g.style.left=parseInt(d);var c="";if(k!="story_request"){c=c+'<table border="0" cellspacing="0" cellpadding="0" >';c=c+"  <tr>";c=c+'    <td style="background-image: url(/friends/images/story_left_top_corner.gif); width: 10px; height: 10px;"></td>';c=c+'    <td style="background-image: url(/friends/images/story_top_border.gif); background-repeat:repeat-x; height: 10px;"></td>';c=c+'    <td style="background-image: url(/friends/images/story_right_top_corner.gif); width: 10px; height: 10px;"></td>';c=c+"  </tr>";c=c+"  <tr>";c=c+'    <td width="10" style="background-image: url(/friends/images/story_left_border.gif); background-repeat:repeat-y;">					</td>';c=c+'    <td style="background-color: white;">';c=c+'<div style="width:'+l+"px; height:"+m+'px;"><table border="0" width="100%" height="100%"><tr height="100%" valign="middle"><td ><center><img id="img_loader" src="/images/loading.gif"></center></td></tr></table></div>';c=c+" </td>";c=c+'  <td style="background-image: url(/friends/images/story_right_border.gif); background-repeat:repeat-y; width: 10px;"></td>';c=c+"</tr>";c=c+"<tr>";c=c+'  <td style="background-image: url(/friends/images/story_left_bottom_corner.gif); width: 10px; height: 10px;"></td>';c=c+'  <td style="background-image: url(/friends/images/story_bottom_border.gif); background-repeat:repeat-x; height: 10px;"></td>';c=c+'  <td style="background-image: url(/friends/images/story_right_bottom_corner.gif); width: 10px; height: 10px;"></td>';c=c+"</tr>";c=c+"</table>"}else{c=c+'<table border="0" cellspacing="0" cellpadding="0" >';c=c+"  <tr>";c=c+'    <td style="background-image: url(/messages/images/elmGreenTopLeft.gif); width: 10px; height: 10px;"></td>';c=c+'    <td style="background-image: url(/messages/images/elmGreenTopBorder.gif); background-repeat:repeat-x; height: 10px;"></td>';c=c+'    <td style="background-image: url(/messages/images/elmGreenTopRight.gif); width: 10px; height: 10px;"></td>';c=c+"  </tr>";c=c+"  <tr>";c=c+'    <td width="10" style="background-image: url(/messages/images/elmGreeLeftBorder.gif); background-repeat:repeat-y;">					</td>';c=c+'    <td style="background-color: white;">';c=c+'<div style="width:'+l+"px; height:"+m+'px;"><table border="0" width="100%" height="100%"><tr height="100%" valign="middle"><td ><center><img src="/images/loading.gif"></center></td></tr></table></div>';c=c+" </td>";c=c+'  <td style="background-image: url(/messages/images/elmGreenRightBorder.gif); background-repeat:repeat-y; width: 10px;"></td>';c=c+"</tr>";c=c+"<tr>";c=c+'  <td style="background-image: url(/messages/images/elmGreenBottomLeft.gif); width: 10px; height: 10px;"></td>';c=c+'  <td style="background-image: url(/messages/images/elmGreenBottomBorder.gif); background-repeat:repeat-x; height: 10px;"></td>';c=c+'  <td style="background-image: url(/messages/images/elmGreenBottomRight.gif); width: 10px; height: 10px;"></td>';c=c+"</tr>";c=c+"</table>"}g.innerHTML=c;document.body.appendChild(g);doImport(k,h,o,p,f)}function boxes_ShowInteractBox(k,d,m,h,g){var f;if(m){if($(m)){new WAYN.Popup($(m),true);return}}else{if($("InteractBox")){if(($("InteractBox").boxName==k)&&(k!="sayhello"&&k!="share"&&k!="friend_request"&&k!="add_gift"&&k!="open_gift"&&k!="superrates_popup")){new WAYN.Popup($("InteractBox"),true);return}else{var c=$("InteractBox");c.close();$("InteractBox").parentNode.removeChild($("InteractBox"))}}}if(g){if($("InteractInline")){new WAYN.Popup($("InteractInline"),true);return}}var l;if($("reply_annonymous")){l=$("reply_annonymous").value}else{l=""}switch(k){case"friend_request":url="/waynmessages.html?wci=friendrequest&member_key="+d+"&targetdiv="+g;f=true;break;case"story_request":url="/waynmessages.html?wci=storyrequest&member_key="+d+"&targetdiv="+g;f=false;break;case"share":if(d.indexOf("%")!=-1){url="/waynmessages.html?wci=share&item="+d+"&subtype="+h;f=true}else{url="/waynmessages.html?wci=share&item="+encodeURIComponent(d)+"&subtype="+h;f=true}break;case"sayhello":url="/waynmessages.html?wci=sayhello&member_key="+d;f=true;break;case"countries":url="/waynmessages.html?wci=interactivityfilter&wce=getbox&box=countries&filter_countries_full="+$("filter_countries_full").value+"&filter_countries_name_full="+$("filter_countries_name_full").value;f=false;break;case"tic_mutualfriends":url="/waynmessages.html?wci=thingsincommon&wce=getbox&boxtype=mutualfriends&member_key="+d;f=false;break;case"tic_likes":url="/waynmessages.html?wci=thingsincommon&wce=getbox&boxtype=likes&member_key="+d;f=false;break;case"tic_activities":url="/waynmessages.html?wci=thingsincommon&wce=getbox&boxtype=activities&member_key="+d;f=false;break;case"tic_destinationmatches":url="/waynmessages.html?wci=thingsincommon&wce=getbox&boxtype=destinationmatches&member_key="+d;f=false;break;case"tic_tripmatches":url="/waynmessages.html?wci=thingsincommon&wce=getbox&boxtype=tripmatches&member_key="+d;f=false;break;case"tic_placematches":url="/waynmessages.html?wci=thingsincommon&wce=getbox&boxtype=placematches&member_key="+d;f=false;break;case"tic_reviewmatches":url="/waynmessages.html?wci=thingsincommon&wce=getbox&boxtype=reviewmatches&member_key="+d;f=false;break;case"tic_inviteontrip":url="/waynmessages.html?wci=thingsincommon&wce=getbox&boxtype=inviteontrip&member_key="+d;f=false;break;case"add_gift":url="/waynmessages.html?wci=gifts&wce=getbox&boxtype=addgift_showbox&member_key="+d+"&annonymous_reply="+l;f=true;break;case"gifts_privacy":url="/waynmessages.html?wci=gifts&wce=getbox&boxtype=gifts_privacy&member_key="+d+"&annonymous_reply="+l;f=true;break;case"open_gift":url="/waynmessages.html?wci=gifts&wce=getbox&boxtype=opengift_openbox&member_gift_key="+d;f=true;break;case"superrates_who":url="/waynprofile.html?wci=content&wce=getbox&submittype=superrates_who&plain=1&rate="+d;f=false;break;case"superrates_pest":url="/waynprofile.html?wci=content&wce=getbox&submittype=superrates_pest&plain=1&pc="+d;f=false;break;case"superrates_privacy":url="/waynprofile.html?wci=content&wce=getbox&submittype=superrates_privacy&plain=1&receiver_key="+d;f=false;break;case"xmasskin2008":url="/waynprofile.html?wci=content&wce=getbox&submittype=XmasSkin2008&plain=1";f=false;break;case"superrates_popup":url="/waynprofile.html?wci=content&wce=getbox&submittype=superrates_popup&plain=1&member_key="+d;f=true;break;case"guidelines":url="/wayntravels.html?wci=destination&wce=getbox&box=guidelines";f=false;break;case"view_friends_privacy":url="/waynfriends.html?wci=friendlinks&wce=getbox&box=privacy&member_key="+d;f=true;break}url=location.protocol+"//"+location.hostname+url;new Ajax.Request(url,{onSuccess:function(r){var q=document.createElement("div");if(m){q.id=m}else{q.id="InteractBox";q.boxName=k}if(g){q.id="InteractInline"}q.innerHTML=r.responseText;if(r.responseText==""){return}switch(k){case"superrates_popup":if(r.responseText=="Privacy"){customMsgBoxWidth=340;var o="";o+="<span class='headingBlackMiddle'>Member doesn't want to receive Super Rates.</span><br/><br/><br/>";o+="<div id='alertBox'><div class='alert_red'><table class='alert_btn' style='width:80px;' cellspacing='0' cellpadding='0' border='0' onClick='$(\"boxPreLoader\").parentNode.removeChild($(\"boxPreLoader\"));'>";o+="<tr>";o+="<td style='background-color:#fff;' id='TL'>&nbsp;</td>";o+="<td style='background-color:#fff;' id='TC'>&nbsp;</td>";o+="<td style='background-color:#fff;' id='TR'>&nbsp;</td>";o+="</tr><tr>";o+="<td style='background-color:#fff;' id='LC'>&nbsp;</td>";o+="<td nowrap>";o+="<div id='yesBtn'>OK</div>";o+="</td>";o+="<td style='background-color:#fff;' id='RC'>&nbsp;</td>";o+="</tr><tr>";o+="<td style='background-color:#fff;' id='BL'>&nbsp;</td>";o+="<td style='background-color:#fff;' id='BC'>&nbsp;</td>";o+="<td style='background-color:#fff;' id='BR'>&nbsp;</td>";o+="</tr></table>";o+="</div></div>";$("img_loader").parentNode.innerHTML=o;return}if(r.responseText=="Friends"){if($("boxPreLoader")){$("boxPreLoader").style.display="none";document.body.removeChild($("boxPreLoader"))}ShowInteractBox("superrates_privacy",d);return}break}if(g){$(g).appendChild(q)}else{document.body.appendChild(q)}if(k=="superrates_popup"){try{var n=$("InteractBox");n.close();$("InteractBox").parentNode.removeChild($("InteractBox"))}catch(p){}}new WAYN.Popup(q,true,false,false,f);WAYN.Hint.Init()},onFailure:function(){},onException:function(){},method:"GET"})}function doImport(h,c,k,g,d){WAYN.Import("/messages/boxes.js");WAYN.Import("/messages/boxes.css");if(h=="share"){WAYN.Import("/js/WAYNFriends.js")}if(h=="friend_request"){WAYN.Import("/js/hint.js")}if(h=="add_gift"){WAYN.Import("/gifts/gifts.js")}try{if(h!="story_request"){setTimeout(function(){boxes_ShowInteractBox(h,c,k,g,d)},10)}else{boxes_ShowInteractBox(h,c,k,g,d)}}catch(f){}finally{}}function unicodeEscape(f){if(f==""){return""}var h=0;var g="";var d;var c=escape(f);while(h<c.length){d=c.substr(h,1);if(d=="%"){strNextChar=c.substr(h+1,1);if(strNextChar=="u"){g+=c.substr(h,6);h+=6}else{g+="%u00"+c.substr(h+1,2);h+=3}}else{g+=d;h++}}return g}function getDiffTime(f){if(f>0){var c=new Date();var d=c.getTime();return"00:00:"+parseInt((d-f)/1000)+":"+(d-f)%1000}}var messageIntervalID;var opacityLevel=100;var alertTimeOut=1500;function ShowAlert(g,d){var f=document.createElement("div");f.id="InteractBoxAlert";f.className="hidden";var c='<div id="iboxAlert"><table border="0" cellspacing="0" cellpadding="0">';c+="<tr>";c+='<td style="background-image: url(/messages/images/elmGreenTopLeft.gif); width: 10px; height: 10px;">';c+="</td>";c+='<td style="background-image: url(/messages/images/elmGreenTopBorder.gif); background-repeat:repeat-x; height: 10px;">';c+="</td>";c+='<td style="background-image: url(/messages/images/elmGreenTopRight.gif); width: 10px; height: 10px;">';c+="</td>";c+="</tr>";c+="<tr>";c+='<td width="10" style="background-image: url(/messages/images/elmGreeLeftBorder.gif); background-repeat:repeat-y;">';c+="</td>";c+='<td style="padding-right: 4px; background-color:#fbfff5; padding:15px;" align="center">';if(d!=1){c+='	<img id="ShowAlertImage" src="/messages/images/icoAlertSentSuccesful.gif" border="0" style="padding-bottom:4px;"><br>'}c+='<span class="HeadingBlackLarge">';c+=g;c+="</span>";c+="";c+="</td>";c+='<td width="10" style="background-image: url(/messages/images/elmGreenRightBorder.gif); background-repeat:repeat-y;">';c+="&nbsp;";c+="</td>";c+="</tr>";c+="<tr>";c+='<td style="background-image: url(/messages/images/elmGreenBottomLeft.gif); width: 10px; height: 10px;">';c+="</td>";c+='<td style="background-image: url(/messages/images/elmGreenBottomBorder.gif); background-repeat:repeat-x; height: 10px;">';c+="</td>";c+='<td style="background-image: url(/messages/images/elmGreenBottomRight.gif); width: 10px; height: 10px;">';c+="</td>";c+="</tr>";c+="</table></div>";f.innerHTML=c;f.className="show";document.body.appendChild(f);new WAYN.Popup(f);setTimeout('HideConfirmationBox("InteractBoxAlert")',alertTimeOut);if(alertTimeOut>1500){alertTimeOut=1500}}function HideConfirmationBox(d){var c=$(d);opacityLevel=opacityLevel-5;if(c){c.style.opacity=opacityLevel/100;c.style.filter="alpha(opacity="+opacityLevel+")";if(opacityLevel<=1){clearInterval(messageIntervalID);c.innerHTML="";c.style.opacity=0;c.style.filter="alpha(opacity=0)";opacityLevel=100;c.close();document.body.removeChild($(d))}else{setTimeout('HideConfirmationBox("'+d+'")',10)}}}function newXMLobject(){var c;if(window.ActiveXObject){try{c=new ActiveXObject("Microsoft.XMLHttp")}catch(d){c=false}}else{try{c=new XMLHttpRequest()}catch(d){c=false}}if(!c){alert("Sorry, there was an error. Please try again later.")}else{return c}}WAYN.IntervalRefresh=Class.create({lInitInterval:10000,lCurrentInterval:10000,lTempRefreshInterval:0,lNumberOfTempInterval:0,oInterval:null,oFunProcess:null,initialize:function(d,c){if(c&&Number(c)>0){this.lInitInterval=Number(c)}this.oFunProcess=d;if(this.lInitInterval>0){this.runInterval(this.lInitInterval)}},funExecute:function(c){if(this.lNumberOfTempInterval>0){this.lNumberOfTempInterval--}else{if(this.lCurrentInterval!=this.lInitInterval){this.runInterval(this.lInitInterval);this.lNumberOfTempInterval=0;this.lTempRefreshInterval=0}}try{c.oFunProcess()}catch(d){clearInterval(this.oInterval);msgBox("error","Oops - an error occurred.",null,null,"Error")}},changeInterval:function(d,c){if(d>2000&&c>0){this.lTempRefreshInterval=d;this.lNumberOfTempInterval=c;this.runInterval(this.lTempRefreshInterval)}},runInterval:function(d){this.lCurrentInterval=d;var c=this;clearInterval(this.oInterval);this.oInterval=setInterval(function(){c.funExecute(c)},d)}});function CreditsAlert(g){var c=new RegExp("/[a-z]+.html.+");var f=c.exec(document.location);if(f=="null"||f==""){f="wayn.html"}var d="/wayncredits.html?wci=purchase&url="+encodeURIComponent(f);if(g){d+="&cost="+g}document.location=d;return}function ShowSuperRatesPopUp(c){try{if(rateOld>0){rateOld=0}}catch(d){WAYN.Import("/profile/boxes/superrates.js");WAYN.Import("/profile/boxes/superrates.css")}ShowInteractBox("superrates_popup",c)}function ShowAddGiftBox(g,c){if(c==1&&$("reply_annonymous")){$("reply_annonymous").value="1"}var h;var f=encodeURIComponent(document.location);var d="/waynmessages.html?wci=gifts&wce=getbox&boxtype=check_receive_gifts&member_key="+g;d=location.protocol+"//"+location.hostname+d;new Ajax.Request(d,{onSuccess:function(k){h=k.responseText;if(h=="1"){ShowInteractBox("add_gift",g)}else{if(h=="2"){ShowInteractBox("gifts_privacy",g)}else{if(h=="0"){msgBox("error","Member doesn't want to receive gifts.")}else{document.location.href="/waynsplash.html?wci=login&url="+f}}}},onFailure:function(){document.location.href="/waynsplash.html?wci=login&url="+f},onException:function(){},method:"POST"})}WAYN.ConsoleClass=Class.create({__arrLog:null,__logLen:15,lTmp:0,initialize:function(){this.__arrLog=new Array()},log:function(f,c){try{if($("JSConsoleLogDiv")){if($("JSConsoleLogDiv").style.display=="none"){$("JSConsoleLogDiv").showDiv()}}if($("JSConsoleLog")){this.__addLog(f,c)}}catch(d){}},hide:function(){$("JSConsoleLogDiv").hideDiv();this.clearLog()},clearLog:function(){this.__arrLog=new Array();$("JSConsoleLog").innerHTML=""},__addLog:function(g,f){var c="";var h='<hr style="height:1px;border-width:0;color:#A9A9A9;background-color:#A9A9A9;"/>';this.__arrLog.unshift(this.__changeColor(g,f));if(this.__arrLog.length>this.__logLen){this.__arrLog.pop()}for(var d=0;d<this.__arrLog.length;d++){c=c+(c.length==0?"":h)+this.__arrLog[d]}$("JSConsoleLog").innerHTML=c;return c},__changeColor:function(d,c){switch(c){case"E":d='<span style="color:red;">E:'+d+"</span>";break;case"W":d='<span style="color:#FFC000;">W:'+d+"</span>";break;default:d='<span style="color:grey;">I:'+d+"</span>";break}return d}});WAYN.Console=new WAYN.ConsoleClass();function setModernTab(d,c){try{var l=document.getElementById(d);var h=document.getElementById(d+"_tab");if(l!=null){l.style.visibility="visible";l.style.display="block"}if(h!=null){h.className="TabActive divTab"}if(c!=null){var g=c.split(";");for(var f=0;f<g.length;f++){var l=document.getElementById(g[f]);var h=document.getElementById(g[f]+"_tab");if(l!=null){l.style.visibility="hidden";l.style.display="none"}if(h!=null){h.className="TabDisabled divTab"}}}}catch(k){}}WAYN.GetTripLocationsXML=function(d,f){var c=new Ajax.Request("/wayntrips.html?wci=view&wce=getxmllocations&trip_key="+d,{onSuccess:function(g){f(g.responseXML)},onFailure:function(g){alert("Sorry, there was an error processing your request.\nPlease try again later.")},method:"get"})};function reloadLightTab(c){$("lighttab_content_"+c).innerHTML='<CENTER><IMG src="'+appproxypath+'images/loading.gif" style="margin:15px;"></CENTER>'}function checklighttab(g,c){if(g.className.indexOf("lightTabActive")>=0){var d=g.parentNode.getElementsByTagName("LI");for(var f=0;f<d.length;f++){if(d[f].getAttribute("lightTab")!="off"){d[f].className="lightTab lightTabConteinterWithoutLine"}}$("lighttab_content_"+c).style.display="none";reloadLightTab(c);$("ul_container_"+c).className="lightTabConteinterWithoutLine";return false}else{var d=g.parentNode.getElementsByTagName("LI");for(var f=0;f<d.length;f++){if(d[f].getAttribute("lightTab")!="off"){d[f].className="lightTab lightTabDisabled"}}g.className="lightTab lightTabActive";$("lighttab_content_"+c).style.display="block";$("ul_container_"+c).className="lightTabConteinterWithLine";return true}}function closeAllLightTabs(d){tabs=$$("LI.lightTab");var c=null;tabs.each(function(f){c=f.getAttribute("item_key");if(c!=d&&c){f.className="lightTab lightTabConteinterWithoutLine";$("lighttab_content_"+c).style.display="none";$("ul_container_"+c).className="lightTabConteinterWithoutLine"}})}function clearLightTab(c){$("lighttab_content_"+c).innerHTML='<CENTER><IMG src="'+appproxypath+'images/loading.gif" style="margin:12px;"></CENTER>'}function chengeCounterLightTab(item_key,tab_id,change,thoroughlyCount,hideTABIfZero){if(hideTABIfZero==undefined){hideTABIfZero=1}var my_counter;var child=$(tab_id).childNodes;for(var i=0;i<child.length;i++){if(child[i].tagName=="SPAN"){if(thoroughlyCount==undefined){my_counter=child[i].innerHTML;if(my_counter==""){my_counter=0}else{my_counter=my_counter.replace("(","");my_counter=my_counter.replace(")","")}my_counter=parseFloat(my_counter)+change}else{my_counter=thoroughlyCount}if(my_counter>0){child[i].innerHTML="("+my_counter.toString()+")"}else{child[i].innerHTML=""}}else{if(child[i].tagName=="TABLE"){var child=$$("span.tmpclass");if(thoroughlyCount==undefined){my_counter=child[0].innerHTML;if(my_counter==""){my_counter=0}else{my_counter=my_counter.replace("(","");my_counter=my_counter.replace(")","")}my_counter=parseFloat(my_counter)+change}else{my_counter=thoroughlyCount}child[0].innerHTML="("+my_counter.toString()+")"}}}if(my_counter==0&&hideTABIfZero==1){$(tab_id).style.display="none";checklighttab($(tab_id),item_key);clearLightTab(item_key)}else{var mycall=$(tab_id).getAttribute("reload");eval(mycall)}}WAYNAJAX={};WAYNAJAX.Update=function(h,l,d,f,g,k,c){new WAYNAJAX.getXML(h,l,d,f,g,k,c)};WAYNAJAX.getXML=Class.create({_oDivCont:"",_bSetContent:true,_sContent:"",sUrl:false,bQuiet:true,bNoRotate:false,_lHeight:0,_lWidth:0,_oXml:null,initialize:function(h,l,d,f,g,k,c){this.sUrl=h;if(h==""){WAYN.Console.log("sUrl is empty!");return}if(!$(l)){WAYN.Console.log("Div container not exists !");return}this._oDivCont=$(l);this.bQuiet=(c==false?false:true);this.bNoRotate=(k==true?true:false);this._lWidth=(f>0?f:0);this._lHeight=(g>0?g:0);this._bSetContent=(d==false?false:true);if(this._bSetContent){this.getContent()}},getContent:function(){if(!this.bNoRotate){var c="";if(!this._lWidth>0){this._lWidth=this._oDivCont.getWidth()}if(!this._lHeight>0){this._lHeight=this._oDivCont.getHeight()}if(this._lWidth>0){c="width:"+this._lWidth+"px;"}if(this._lHeight>0){c+="height:"+this._lHeight+"px;"}this._oDivCont.innerHTML="<div style='text-align:center;vertical-align:middle;"+c+"' id='loading_rotator' name='loding_rotator'><img style='vertical-align:middle;position:relative;top:50%;' align='absmiddle' valign='absmiddle' src='"+appproxypath+"images/loading.gif'></div>"}this._oXml=new Ajax.Request(this.sUrl,{method:"GET",parentObject:this,onSuccess:function(h){var g=h.responseXML;for(var f=g.firstChild;f!=null;f=f.nextSibling){for(var d=f.firstChild;d!=null;d=d.nextSibling){if(d.nodeValue!=null&&d.nodeValue!=""){if(d.nodeValue!=""){h.parentObject._sContent=d.nodeValue}}}}if(h.parentObject._bSetContent){h.parentObject._oDivCont.innerHTML=h.parentObject._sContent}h.parentObject.afterSuccess(h.parentObject._sContent)},onFailure:function(d){if(!d.parentObject.bQuiet){msgBox("error","Oops - an error occurred. Please try again.",null,null,"Error")}return},onException:function(d){if(!d.options.parentObject.bQuiet){msgBox("error","Oops - an error occurred. Please try again.",null,null,"Error")}return}})},setContent:function(){this._oDivCont.innerHTML=this._sContent},afterSuccess:function(){}});function callAjax(f,d,k,h,g,l){var c=true;if(typeof(g)=="boolean"){c=g}new Ajax.Request(f,{onSuccess:function(o){responseXml=o.responseXML;if(!responseXml){return}for(var n=responseXml.firstChild;n!=null;n=n.nextSibling){for(var m=n.firstChild;m!=null;m=m.nextSibling){if(m.nodeValue!=null&&m.nodeValue!=""){if(k){if(h){d(m.nodeValue,n.getAttribute(k),n.getAttribute(h))}else{d(m.nodeValue,n.getAttribute(k))}}else{d(m.nodeValue)}}}}},onException:function(n,m){},asynchronous:c,method:(l)?"POST":"GET",postBody:l})}function bubble(c){if(!c){var c=window.event}try{c.cancelBubble=true}catch(c){}}function CreatePopup(d,k,g,f,h){if($(d)){document.body.removeChild($(d))}g=(g=="blue"?"blue":"green");var l=document.createElement("div");l.id=d;l.className="hidden";if(f>0){l.style.width=f}if(h>0){l.style.height=h}var c='<table border="0" cellspacing="0" cellpadding="0">';c+="<tr>";c+='<td class="'+g+'LT bSize"></td>';c+='<td class="'+g+'T bSize"></td>';c+='<td class="'+g+'RT bSize"></td>';c+="</tr>";c+="<tr>";c+='<td class="'+g+'L bSize"></td>';c+='<td class="popupContent"><div id="'+k+'">&nbsp;</div></td>';c+='<td class="'+g+'R bSize"></td>';c+="</tr>";c+="<tr>";c+='<td class="'+g+'LB bSize"></td>';c+='<td class="'+g+'B bSize"></td>';c+='<td class="'+g+'RB bSize"></td>';c+="</tr>";c+="</table>";l.innerHTML=c;document.body.appendChild(l)}WAYN.CustomPopup=function(l,n,o,f,c,p,m,h,r,q,k,d,g){new WAYN.cCustomPopup(l,n,o,f,c,p,m,h,r,q,k,d,g)};WAYN.cCustomPopup=Class.create({__sIdBox:"",__sIdBoxContent:"",__sUrl:"",__sContent:"",__sBoxColor:"blue",__lWidth:0,__lHeight:0,__bSetImmediate:true,__bQuiet:false,__bNoRotate:false,oAjaxUpdater:null,oPopup:null,__addOverlay:false,__setFixed:false,__disableAnimation:false,__shimOn:true,initialize:function(l,n,o,f,c,p,m,h,r,q,k,d,g){this.__sIdBox=l+"_box";this.__sIdBoxContent=l+"_content";this.__sBoxColor=(n=="green"?"green":"blue");this.__sContent=o;this.__sUrl=f;this.__lWidth=(c>0?c:0);this.__lHeight=(p>0?p:0);this.__bSetImmediate=(m==false?false:true);this.__bQuiet=(g==false?false:true);this.__bNoRotate=(d==true?true:false);this.__addOverlay=(h==true?true:false);this.__setFixed=(r==true?true:false);this.__disableAnimation=(q==true?true:false);this.__shimOn=(k==false?false:true);this.InitShow()},__prepareDivPopup:function(c){CreatePopup(this.__sIdBox,this.__sIdBoxContent,this.__sBoxColor,this.__lWidth,this.__lHeight);if(c==true){$(this.__sIdBox).className="show"}},__createPopupObj:function(){this.oPopup=new WAYN.Popup($(this.__sIdBox),this.__addOverlay,this.__setFixed,this.__disableAnimation,this.__shimOn)},__createAjaxUpdater:function(){this.oAjaxUpdater=new WAYNAJAX.getXML(this.__sUrl,this.__sIdBoxContent,this.__bSetImmediate,(this.__lWidth>0?this.__lWidth-20:0),(this.__lHeight>0?this.__lHeight-20:0),this.__bNoRotate,this.__bQuiet)},InitShow:function(){switch(this.__sContent.strip()){case"":if(this.__bSetImmediate){this.__prepareDivPopup(true);this.__createAjaxUpdater();this.__createPopupObj()}else{this.__prepareDivPopup(false);this.__createAjaxUpdater()}break;default:this.__prepareDivPopup(true);$(this.__sIdBoxContent).innerHTML=this.__sContent;this.__createPopupObj();break}},show:function(){$(this.__sIdBox).className="show";this.oAjaxUpdater.setContent();this.__createPopupObj()},close:function(){$(this.__sIdBox).close()}});WAYN.ShowLoginPopup=function(k,l,h,g){var c=document.location+"";var n=c.split("?")[1];var f;if(n){var m=n.split("&");m.each(function(o){if(o.split("=")[0]=="ref"){f=o.split("=")[1]}})}var d="";if(document.location.href.indexOf("invite=1")!=-1&&document.location.href.indexOf("tweet_id=")!=-1){d="/waynfriends.html?wci=GetFriendsTab&tab=twitter_login&context=6";$("idPage").value="INVITE";document.cookie="oauthbackurl="+escape(document.location.href)+"; path=/"}else{d="/waynsplash.html?wci=home&wce=loginpopup&ref="+f+"&page="+k+"&item_key="+l+"&contact_key="+h;if(g!=undefined){d+="&backurl="+encodeURIComponent(g)}}WAYN.CustomPopup(k+"_login_popup","blue","",d,400,205,true,true)};function checkLogin(h,f,g,d){var c=new Ajax.Request("/waynsplash.html?wci=home&wce=checklogin&username="+h+"&password="+f,{onSuccess:function(p){var o=p.responseXML;var n="";var k="";if(o.childNodes!=null){for(var m=0;m<o.childNodes.length;m++){if(o.childNodes.item(m).nodeName=="response"){for(var l=0;l<o.childNodes.item(m).childNodes.length;l++){if(o.childNodes.item(m).childNodes.item(l).nodeName=="message"){if(o.childNodes.item(m).childNodes.item(l).hasChildNodes){if(o.childNodes.item(m).childNodes.item(l).firstChild){n=o.childNodes.item(m).childNodes.item(l).firstChild.data}}}if(o.childNodes.item(m).childNodes.item(l).nodeName=="url"){if(o.childNodes.item(m).childNodes.item(l).hasChildNodes){if(o.childNodes.item(m).childNodes.item(l).firstChild){k=o.childNodes.item(m).childNodes.item(l).firstChild.data}}}}}}}if(k!=""){if(document.location.href.indexOf("logoff")>0){n=n.replace(/\<br\>/gi,"\n");alert(n)}else{msgBox("warning",n,function(){},function(){document.location.href=k})}}else{if(n==""){g.submit()}else{if(document.location.href.indexOf("logoff")>0){n=n.replace(/\<br\>/gi,"\n");alert(n);setFocusOnUsername(d)}else{msgBox("warning",n,function(){},function(){setFocusOnUsername(d)})}if(d==1){document.getElementById("username").value=""}return false}}},onFailure:function(k){msgBox("warning","Sorry, there was an error processing your request.<br>Please try again later.")},method:"get",asynchronous:false})}function setFocusOnUsername(c){if(c==1){uname_input=$("username_popup");passwd_input=$("passwd_popup")}else{uname_input=$("username");passwd_input=$("passwd")}if(uname_input){if(passwd_input){if(uname_input.value){passwd_input.focus()}else{if(uname_input.value){uname_input.focus()}}}else{uname_input.focus()}}return}function searchFrom_SearchBox(){var f="";var c;var d;c=$("rate").selectedIndex;d=$("rate").options[c].value;if(d!=""){f=f+"&rate="+d}if($("search_comments").checked==true){f=f+"&search_comments=1"}if($("search_notes").checked==true){f=f+"&search_notes=1"}if($("tag").value!=""){f=f+"&tag="+encodeURI($("tag").value)}document.searchphotoform.action=document.searchphotoform.action+f;document.searchphotoform.submit();return}var OtherLogins={magicVar:"",Show:function(){if($("other_logins_container")){window.clearTimeout(this.magicVar);$("other_logins_container").style.display="block"}},Hide:function(){if($("other_logins_container")){this.magicVar=setTimeout("$('other_logins_container').style.display = 'none';",300)}},SetClear:function(){this.magicVar=setTimeout("$('other_logins_container').style.display = 'none';",2000)}};WAYN.ContentAbusedPopUp=function(c){if(!c){c="content"}msgBox("warning","This "+c+" has been removed following a review by our support team, for violating our Terms & Conditions.",null,function(){document.location.href="/wayn.html";return})};function showTwitterWindow(g,k){if($("idPage")||k){if(k){h=k}else{var h="";var c=document.getElementsByName("oAuthTwitterPage");for(i=0;i<c.length;i++){if(c[i].value=="SHARE"){h="SHARE";break}}if(h==""){h=$("idPage").value}}var f="oauthpage="+escape(h)+"; path=/";document.cookie=f}else{var d=new Date();d.setMonth(d.getMonth()-1);document.cookie="oauthpage=deleted; expires="+d.toGMTString()+"; path=/"}if(!g){window.open("/app/waynoauth/twitter.aspx?func=auth&pu=1","twitteroauth","width=800,height=400,left=150,top=100,scrollbar=no,resize=no")}else{document.location.href="/app/waynoauth/twitter.aspx?func=auth"}}function twitter_cancelLink(d,c){msgBox("querry","Are you sure you want to disconnect Twitter from your WAYN account?",function(){var f="/waynfriends.html?wci=FriendImport&wce=Connections&type=cancel_twitter";try{document.cookie=d+"_ss=;expires=Thu, 01-Jan-70 00:00:01 GMT; path=/";document.cookie=d+"_sk=;expires=Thu, 01-Jan-70 00:00:01 GMT; path=/";switch(c){case"TWEET":preloader();break;case"II_FILTER":break}}catch(g){}callAjax(f,function(h){switch(c){case"TWEET":getPlanTab("twitter",0);break;case"II_FILTER":document.location.reload();break}})})}function twitter_changeAccount(){getPlanTab("twitter",0,"&allow=1")}function twitter_continue(){var h=$("twitter_username").value;var d=$("twitter_password").value;if(h==""||d==""){msgBox("warning","Username and Password are mandatory")}else{var c="/waynfriends.html?wci=FriendImport&wce=Connections&type=bind_twitter";var g="username="+h;g+="&password="+d;if($("icon_twitter")){try{preloader()}catch(f){}}else{clearLightTab(0)}new Ajax.Request(c,{onSuccess:function(k){responseXml=k.responseXML;for(var m=responseXml.firstChild;m!=null;m=m.nextSibling){for(var l=m.firstChild;l!=null;l=l.nextSibling){if(l.nodeValue!=null&&l.nodeValue!=""){if(l.nodeValue!="OK"){msgBox("error",l.nodeValue,null,null,"Twitter Alert")}if($("icon_twitter")){getPlanTab("twitter_hook",0)}else{getPlanTab("twitter",0)}}else{msgBox("error","Sorry there was an error processing your request.<br>Please try again later");getPlanTab("twitter",0)}}}},onFailure:function(){msgBox("error","Sorry there was an error processing your request.\nPlease try again later");getPlanTab("twitter",0)},method:"post",postBody:g})}}function donateCreditsMiniProfile(d,g,h,l){var f=$("donate_credits").value;if(f>10){msgBox("warning","You can not donate more than 10 credits.");$("donate_credits").select();$("donate_credits").focus();return false}var c="/wayncredits.html?wci=donate&wce=donatecredits&memberKey="+d+"&toMemberKey="+g+"&amount="+f;c+="&type="+h+"&elemKey="+l;try{xmlRequest=new Ajax.Request(c,{method:"GET",onSuccess:function(r){responseXml=r.responseXML;var o=responseXml.getElementsByTagName("donateInfo")[0].firstChild.data;var p=responseXml.getElementsByTagName("donateDesc")[0].firstChild.data;if($("donate_container_info")){cont=$("donate_container_info");cont.style.display="block";if(o=="ok"){cont.innerHTML="<span class='headingGreenMiddle'>"+p+"</span>"}else{if(o=="notEnough"){var m=new RegExp("/[a-z]+.html.+");var q=m.exec(document.location);var n="/wayncredits.html?wci=purchase&url="+encodeURIComponent(q);if(f){n+="&cost="+f}document.location=n}else{cont.innerHTML="<span class='headingRedMiddle'>"+p+"</span>"}}}},onFailure:function(m){return"<center><b>Sorry we're unable to load data at the moment. We will try again in few seconds.</b></center>"},onException:function(m){return"<center><b>Sorry we're unable to load data at the moment. We will try again in few seconds.</b></center>"}})}catch(k){}}var permission_dialog="";var permission_counter=0;var testLoginFacebookTimer;function facebookCheckStatusAccess(c){var d="/fbconnect/xmloutput.aspx?func=status_check";new Ajax.Request(d,{onSuccess:function(g){var l=g.responseXML;var h=l.getElementsByTagName("error.message");var k=l.getElementsByTagName("status");var f="";if(h.length>0){return false}else{f=k[0].firstChild.nodeValue;f=f.toUpperCase();if(f=="OK"){return true}else{callAjax("/waynfriends.html?wci=friendsselector&wce=logwarning&desc=facebookCheckStatusAccess.onSuccess:"+f,function(m){});c()}}},onFailure:function(){callAjax("/waynfriends.html?wci=friendsselector&wce=logwarning&desc=facebookCheckStatusAccess.onFailure",function(f){});return false},method:"get"})}function updateFacebookStatus(c,d){var f="/fbconnect/xmloutput.aspx?func=status_update";params="status="+c;new Ajax.Request(f,{onSuccess:function(g){var l=g.responseXML;var h=l.getElementsByTagName("error.message");if(h.length>0){var k=h[0].firstChild.nodeValue;callAjax("/waynfriends.html?wci=friendsselector&wce=logwarning&desc=updateFacebookStatus.onSuccess:"+k,function(m){});if(k=="permission_not_granted"){if(permission_counter==0){permission_dialog=c;window.setTimeout("FB.Connect.showPermissionDialog('status_update');",100);window.setTimeout("checkFacebookPermissionDialog('"+d+"')",1500);permission_counter=1}}}else{permission_dialog=""}},onFailure:function(){callAjax("/waynfriends.html?wci=friendsselector&wce=logwarning&desc=updateFacebookStatus.onFailure:"+params,function(g){});return false},method:"post",postBody:params})}function checkFacebookPermissionDialog(c){if(permission_dialog){if($("fb_dialog_header")){window.setTimeout("checkFacebookPermissionDialog('"+c+"')",1000)}else{updateFacebookStatus(permission_dialog,c);permission_dialog=""}}}WAYN.Facebook={ShowConnectionWindow:function(c){if(typeof fbConnectTimeout==="undefined"){WAYN.Import("/splash/fb_connect.js")}FB.Connect.requireSession(function(){fbConnectTimeout=setTimeout(testLoginFacebook,100);sendFBInvitation()})}};WAYN.Likes={Add:function(d){var c="waynprofile.html?wci=mylikes&wce=enter&type=add_mylike&member_key="+d;callAjax(c,function(f){switch(f){case"added success":ShowAlert("Added to Likes");break;case"already in likes":ShowAlert("This member is already in your Likes");break;case"error":ShowAlert("Oops... A small error occurred. Please try again in a few seconds.");break;case"not logged":document.location="waynsplash.html?wci=login&url="+encodeURIComponent(document.location);break}})},Remove:function(d){var c="waynprofile.html?wci=mylikes&wce=enter&type=remove_mylike&member_key="+d;callAjax(c,function(f){})}};WAYN.Interact={Icons:new Hash({FR:{label:"Add Friend",counter:0,action:function(){ShowInteractBox("friend_request",this.readAttribute("memberKey"));if($("matches_stats_imp")){MatchesIgnore(member_key,"friend")}}},LIKE:{label:"Add to Likes",counter:0,action:function(){var c=this.readAttribute("memberKey");WAYN.Likes.Add(c);this.className="Icon_LIKE_0 InteractInactive";this.stopObserving("mousemove").stopObserving("mouseout").setStyle({cursor:"default",textDecoration:"none"});if($("matches_stats_imp")){MatchesIgnore(c,"likes")}}},MESSAGE:{label:"Send Message",counter:0,action:"/waynmessages.html?wci=newmessage&member_key=_MEMBERKEY_"},GIFT:{label:"Send Gift",counter:0,action:function(){ShowAddGiftBox(this.readAttribute("memberKey"))}},RATE:{label:"Super Rate",counter:0,action:function(){ShowSuperRatesPopUp(this.readAttribute("memberKey"))}},HELO:{label:"Say Hello",counter:0,action:function(){ShowInteractBox("sayhello",this.readAttribute("memberKey"))}},CARD:{label:"Send eCard",counter:0,action:"/waynmessages.html?wci=newecard&member_key=_MEMBERKEY_"},SMS:{label:"Send SMS",counter:0,action:function(){messages_sendMessage("S","M",this.readAttribute("memberKey"),"")}},IM:{label:"Instant Messanger",counter:0,action:function(){window.open("/waynmessenger.html?wci=MessageWindow&contact_member_key="+this.readAttribute("memberKey")+"","WIM_"+this.readAttribute("memberKey")+"","width=650,height=430,resizable=yes,toolbar=no,menubar=no,location=no,scrollbars=yes")}},BLOCK:{label:"Block Member",counter:0,action:function(){var c="";var d=String(document.location);if(d.indexOf("wci=notifications")>0){c="notifications"}else{if(d.indexOf("wci=friends")>0){c="friends"}else{if(d.indexOf("wci=readmessage")>0){c="readmessage"}else{if(d.indexOf("wci=gifts")>0){c="Gifts"}else{if(d.indexOf("wci=readecard")>0){c="readecard"}else{if(d.indexOf("wci=wholikesme")>0){c="wholikesme"}else{if(d.indexOf("wci=mylikes")>0){c="mylikes"}}}}}}}blockMembers(this.readAttribute("memberKey"),c)}},PROFILE:{label:"Profile",counter:0,action:""},FR_PROPOSITION:{label:"View Friends",counter:1,action:function(){ShowInteractBox("view_friends_privacy",this.readAttribute("memberKey"))}},FRIENDS:{label:"Friends",counter:1,action:"/waynfriends.html?wci=friendlinks&friend_key=_MEMBERKEY_"},PHOTOS:{label:"Photos",counter:1,action:"/waynphotos.html?wci=album&member=_MEMBERKEY_"},VIDEOS:{label:"Videos",counter:1,action:"/waynvideos.html?wci=member&member=_MEMBERKEY_"},TRIPS:{label:"Trips",counter:1,action:"/wayntrips.html?wci=viewtrip&member_key=_MEMBERKEY_"},LIKES:{label:"Likes",counter:1,action:"/waynsearches.html?wci=wholikesmember&member_key=_MEMBERKEY_"},ACTIVITIES:{label:"Activities",counter:1,action:""},ENTRIES:{label:"Entries",counter:1,action:""},BLOG:{label:"Blog",counter:1,action:"/waynblog.html?wci=viewblog&member_key=_MEMBERKEY_"},TIC:{label:"Things in common",counter:1,action:"/waynmessages.html?wci=thingsincommon&member_key=_MEMBERKEY_"}}),Show:function(h){var c=h.getAttribute("member_key");var f=h.getAttribute("type");var g=h.getAttribute("random_key");var d=$("interact_icons_"+g);$("interact_link_"+g).addClassName("interactComboSelected");$("interact_icons_"+g).show();if(d.empty()){this.PrepareIconArea(d,f);this.GetIcons(d,f,c)}},Hide:function(d){var c=d.getAttribute("random_key");$("interact_link_"+c).removeClassName("interactComboSelected");$("interact_icons_"+c).hide()},GetIcons:function(f,d,c){var g="/wayn.html?wci=components&wce=InteractCombo&type="+d+"&member_key="+c;if((d=="interact")&&(WAYN.isJSIncluded("blocklist.js"))){g+="&bm=1"}callAjax(g,function(h){if(h!=""){var k=new Element("div").addClassName("comboIconsContainer");h.split("|").each(function(q){var o=q.split(",");var n=o[0];var l=parseInt(o[1]);var m=o.length==3?o[2]:"";if(n!=""&&l!=-1){var p=WAYN.Interact.getIcon(n,l,c,m);k.insert(p)}});$("interact_icons_"+f.readAttribute("random_key")+"_container").update(new Element("ul").insert(k))}})},getIcon:function(m,d,k,f){var o=WAYN.Interact.Icons.get(m).label;var g=WAYN.Interact.Icons.get(m).action;var h=WAYN.Interact.Icons.get(m).counter;var l=d>0?1:0;var c=d==0||typeof(g)=="function"?"div":"a";var n=new Element(c);if(h==1&&l==1){o+=" ("+d+")"}if(l==0){n.setStyle({cursor:"default"})}else{if(typeof(g)=="function"){n.observe("click",g).observe("mouseover",function(){this.setStyle({textDecoration:"underline"})}).observe("mouseout",function(){this.setStyle({textDecoration:"none"})}).setStyle({cursor:"pointer"})}else{n.writeAttribute("href",f!=""?f:g.gsub("_MEMBERKEY_",k)).addClassName("linkBlueDefault")}}n.writeAttribute("memberKey",k).addClassName(l==1?"InteractActive":"InteractInactive").addClassName("Icon_"+m+"_"+l).setStyle({display:"inline"}).update(o);return(new Element("li").insert(n))},PrepareIconArea:function(d,c){if(d.empty()){if(c=="view"){d.insert('<DIV class="InteractComboBorderBlue"  style="width:85px;">&nbsp;</DIV><DIV class="InteractComboBorderWhite" style="width:49px;">&nbsp;</DIV>')}else{d.insert('<DIV class="InteractComboBorderWhite" style="width:70px;">&nbsp;</DIV><DIV class="InteractComboBorderBlue"  style="width:53px;">&nbsp;</DIV>')}d.insert(new Element("div",{id:"interact_icons_"+d.readAttribute("random_key")+"_container"}).setStyle({clear:"both"}).insert(new Element("img",{src:"/images/loading.gif"}).setStyle({margin:"50 0 50 50px"})))}},Click:function(g,l){switch(g){case"FriendRequest":ShowInteractBox("friend_request",l);if($("matches_stats_imp")){MatchesIgnore(l,"friend")}break;case"SendMessage":messages_sendMessage("M","M",l,"");break;case"SendEmail":messages_sendMessage("M","C",l,"");break;case"SayHello":ShowInteractBox("sayhello",l);break;case"SendEcard":messages_sendMessage("E","M",l,"");break;case"SendGift":ShowAddGiftBox(l);break;case"SendSMS":messages_sendMessage("S","M",l,"");break;case"SuperRate":ShowSuperRatesPopUp(l);break;case"InstantMessanger":window.open("/waynmessenger.html?wci=MessageWindow&contact_member_key="+l+"","WIM_"+l+"","width=650,height=430,resizable=yes,toolbar=no,menubar=no,location=no,scrollbars=yes");break;case"BlockMember":var d="";var k=String(document.location);if(k.indexOf("wci=notifications")>0){d="notifications"}else{if(k.indexOf("wci=friends")>0){d="friends"}else{if(k.indexOf("wci=readmessage")>0){d="readmessage"}else{if(k.indexOf("wci=gifts")>0){d="Gifts"}else{if(k.indexOf("wci=readecard")>0){d="readecard"}else{if(k.indexOf("wci=wholikesme")>0){d="wholikesme"}else{if(k.indexOf("wci=mylikes")>0){d="mylikes"}}}}}}}blockMembers(l,d);break;case"AddToLikes":var c;var h;WAYN.Likes.Add(l);c=$("interact_send_icons_"+this.member_key+"_"+this.random_key+"_container");if(c){h=c.getElementsByTagName("DIV");for(var f=0;f<h.length;f++){switch(h[f].id){case"AddToLikes_ico_Active":$(h[f]).hide();break;case"AddToLikes_ico_Inactive":$(h[f]).show();break;case"AddToLikes_link_Active":$(h[f]).hide();break;case"AddToLikes_link_Inactive":$(h[f]).show();break}}h=$$("span.cssfake");for(var f=0;f<h.length;f++){if((h[f].readAttribute("member_key")==this.member_key)&&(h[f].readAttribute("item")=="LikesCounter")){h[f].innerHTML=parseInt(h[f].innerHTML)+1}}}if($("matches_stats_imp")){MatchesIgnore(l,"likes")}break;case"ViewFriends":if(l>0){ShowInteractBox("view_friends_privacy",l)}break}}};function whosAroundBoxChangePage(h,d){var f;var g="whos_around_box_container";switch(d){case"whosaround":f="/wayn.html?wci=homepage&wce=whosaroundbox&fp="+h;break;case"friendsonline":f="/whosaround?wce=friends&memberslink=no&fp="+h;break;case"friendsonlinemembers":f="/whosaround?wce=friends&memberslink=yes&fp="+h;break;default:f="/wayn.html?wci=homepage&wce=whosaroundbox&fp="+h;break}$(g).innerHTML='<center><table style="height: 256px"><tr><td class="headingBlueBig" style="vertical-align: middle; text-align: center"><img src="'+appproxypath+'images/loading.gif" align="absmidle"> Please wait</td></tr></table></center>';var c=new Ajax.Request(f,{onSuccess:function(l){respXML=l.responseXML.getElementsByTagName("box");for(var k=0;k<respXML.length;k++){$(g).innerHTML=respXML[k].firstChild.nodeValue}},onFailure:function(k){alert("Sorry, there was an error processing your request.\nPlease try again later.")},method:"get"})}var rankFadeTimeoutID;var rankOpacityLevel=0;var rankOpacityStep=5;function rankFade(){var d;try{d=$("waynmessagecounters_rank_standard");if(d){rankOpacityLevel+=rankOpacityStep;d.style.opacity=rankOpacityLevel/100;d.style.filter="alpha(opacity="+rankOpacityLevel+")";if(rankOpacityLevel>=100||rankOpacityLevel<=0){rankOpacityStep=-rankOpacityStep}}else{}rankFadeTimeoutID=setTimeout(rankFade,200)}catch(c){alert(c.message)}}function blockContent(){var c;if($("contentBlocker")){c=$("contentBlocker")}else{c=document.createElement("div");c.setAttribute("id","contentBlocker")}if(c){c.style.width=parseInt(document.body.clientWidth,10);c.style.height=parseInt(document.body.clientHeight+document.body.scrollTop,10);c.className="contentBlocker";document.body.appendChild(c);c.style.display="block"}return false}function unblockContent(){var c;c=$("contentBlocker");if(c){c.style.display="none"}return false}function showWaitLoader(){if($("loading_rotator")){if($("loading_rotator").style.display!="block"){$("loading_rotator").style.top=parseInt((document.body.clientHeight/2)+document.body.scrollTop-12,10);$("loading_rotator").style.left=parseInt((document.body.clientWidth/2)-5,10);$("loading_rotator").style.display="block"}}}function hideWaitLoader(){if($("loading_rotator")){$("loading_rotator").style.display="none"}}function isEnter_onkeydown(c){var d;if(window.event){d=c.keyCode}else{if(c.which){d=c.which}}return(d=="13")}WAYN.AddFriend=function(c){new Ajax.Request("/waynmessages.html?wci=friendrequest&wce=checkifsent&member_key="+c,{method:"GET",onSuccess:function(f){if(f.responseText=="0"){var d="/waynmessages.html?wci=friendrequest&wce=enter";params="member_key="+c;new Ajax.Request(d,{method:"POST",postBody:params,onSuccess:function(g){return},onFailure:function(g){return},onException:function(g){return}});ShowAlert("Friend request sent successfully")}else{msgBox("information","You have already sent this member a friend request.")}return},onFailure:function(d){return},onException:function(d){return}})};WAYN.ImportFriendsPopUP={show:function(){new Ajax.Request("/waynfriends.html?wci=friendimport&wce=getimportpopup",{method:"GET",onSuccess:function(d){if(d.responseText!="0"){if($("FriendsImportFinderDiv")){$("FriendsImportFinderDiv").parentNode.removeChild($("FriendsImportFinderDiv"))}WAYN.Import("/js/box/friendsimport.js");var c=document.createElement("div");c.id="friendsimportpopup";c.style.display="none";c.innerHTML=d.responseText;document.body.appendChild(c);new WAYN.Popup(c,true,false,false,true);WAYN.StatsAdvertTrackerIncrease(17458);new Ajax.Request("/waynfriends.html?wci=friendimport&wce=getservices",{method:"GET",onSuccess:function(l){var n=l.responseXML;var h=n.getElementsByTagName("service");services=new Array();api=new Array();for(var k=0;k<h.length;k++){if(h[k].getElementsByTagName("domain")[0].firstChild){var m=h[k].getElementsByTagName("domain")[0].firstChild.nodeValue;var f=h[k].getElementsByTagName("portal")[0].firstChild.nodeValue;services[m]=f}}h=n.getElementsByTagName("api");for(var k=0;k<h.length;k++){if(h[k].getElementsByTagName("portal")[0].firstChild){var f=h[k].getElementsByTagName("portal")[0].firstChild.nodeValue;var g=h[k].getElementsByTagName("portal_api")[0].firstChild.nodeValue;api[f]=g}}return},onFailure:function(f){return},onException:function(f){return}})}return},onFailure:function(c){return},onException:function(c){return}})},close:function(){if($("check_importpopup_dont_show")){if($("check_importpopup_dont_show").checked==true){WAYN.ImportFriendsPopUP.dontShow()}}$("friendsimportpopup").close();document.body.removeChild($("friendsimportpopup"))},dontShow:function(){var c="/waynfriends.html?wci=friendimport&wce=ImportPopUpDontShow";new Ajax.Request(c,{method:"GET",onSuccess:function(d){return},onFailure:function(d){return},onException:function(d){return}})}};function showVideoPlayer(m,n,l,q){var c="360";var r="296";var k="http://"+n+"coull.tv/v/"+m;var p="8.0.0";var f="http://players.content.coull.com/expressInstall.swf";var d={autoPlay:"true"};if(l=="1"){d.serviceHost="stage.coull.tv"}var g={allowfullscreen:"true",allowscriptaccess:"always",allownetworking:"all",wmode:"transparent"};var h={};try{if("http://"+n+"coull.tv/v/"==k){document.getElementById("coullPlayer_"+q).innerHTML="<h3 class='message'>Your video is currently being processed.<br>We will notify you when it will be ready to see.</h3>"}else{swfobject.embedSWF(k,"coullPlayer_"+q,c,r,p,f,d,g,h)}}catch(o){}}function GA_trackEvent(f,g,c){try{if("undefined"!==typeof c){_gaq.push(["_trackEvent",f,g,c])}else{_gaq.push(["_trackEvent",f,g])}}catch(d){}};
