var $config={survey:{see_results:Boolean(true)}};var $survey={submit:{singleAnswer:function(form){title=byid(form+'_title').innerHTML;form_id=form;if(getCookie('survey-'+form_id)=='answered'){alert('You have already answered this. / Ya ha respondido a esto.');document.location.href='index.php';return'';}
var tots='';form=byid(form);for(x=0;x
';html=str_replace('[by]',getCookie('user_page_id'),html);where.innerHTML=html;}}};function language(id){return l('index.php?view=language&id='+id);}
function getMovie(movieName){if(navigator.appName.indexOf("Microsoft")!=-1){return window[movieName];}else{return document[movieName];}}
function swfObjectGetMovie(movieName){return document.getElementById(movieName);}
function mya_checkLoginData(form_id){var un=document.getElementById('mya_un');var up=document.getElementById('mya_up');if(un.value==''||up.value==''){alert(l('index.php?view=language&id=mya_empty_login_form'));}else{document.forms[form_id].method='post';document.forms[form_id].action='index.php?view=myarea&action=login&viewTemplate=1';document.forms[form_id].submit();}}
function scroll_smooth(anchor_name){var top=window.pageYOffset;var pos=document.anchors[anchor_name].offsetTop;for(a=top;a0){var c_start=document.cookie.indexOf(c_name+"=");if(c_start!=-1){c_start=c_start+c_name.length+1;var c_end=document.cookie.indexOf(";",c_start);if(c_end==-1)c_end=document.cookie.length;return unescape(document.cookie.substring(c_start,c_end));}}
return"";}
if(!this.JSON){this.JSON={};}
(function(){function f(n){return n<10?'0'+n:n;}
if(typeof Date.prototype.toJSON!=='function'){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+'-'+
f(this.getUTCMonth()+1)+'-'+
f(this.getUTCDate())+'T'+
f(this.getUTCHours())+':'+
f(this.getUTCMinutes())+':'+
f(this.getUTCSeconds())+'Z':null;};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf();};}
var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\'},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==='string'?c:'\\u'+('0000'+a.charCodeAt(0).toString(16)).slice(-4);})+'"':'"'+string+'"';}
function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==='object'&&typeof value.toJSON==='function'){value=value.toJSON(key);}
if(typeof rep==='function'){value=rep.call(holder,key,value);}
switch(typeof value){case'string':return quote(value);case'number':return isFinite(value)?String(value):'null';case'boolean':case'null':return String(value);case'object':if(!value){return'null';}
gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==='[object Array]'){length=value.length;for(i=0;i