/* css */
var css_browser_selector = function() {var ua=navigator.userAgent.toLowerCase(),is=function(t){return ua.indexOf(t) != -1;},h=document.getElementsByTagName('html')[0],b=(!(/opera|webtv/i.test(ua))&&/msie (\d)/.test(ua))?('ie ie'+RegExp.$1):is('firefox/2')?'gecko ff2':is('firefox/3')?'gecko ff3':is('gecko/')?'gecko':is('opera/9')?'opera opera9':/opera (\d)/.test(ua)?'opera opera'+RegExp.$1:is('konqueror')?'konqueror':is('applewebkit/')?'webkit safari':is('mozilla/')?'gecko':'',os=(is('x11')||is('linux'))?' linux':is('mac')?' mac':is('win')?' win':'';var c=b+os+' js'; h.className += h.className?' '+c:c;}();
/* wysiwyg */
(function($){$.fn.document=function(){var element=this[0];if(element.nodeName.toLowerCase()=='iframe')return element.contentWindow.document;else return $(this)};$.fn.documentSelection=function(){var element=this[0];if(element.contentWindow.document.selection)return element.contentWindow.document.selection.createRange().text;else return element.contentWindow.getSelection().toString()};$.fn.wysiwyg=function(options){if(arguments.length>0&&arguments[0].constructor==String){var action=arguments[0].toString();var params=[];for(var i=1;i<arguments.length;i++)params[i-1]=arguments[i];if(action in Wysiwyg){return this.each(function(){$.data(this,'wysiwyg').designMode();Wysiwyg[action].apply(this,params)})}else return this}var controls={};if(options&&options.controls){var controls=options.controls;delete options.controls}var options=$.extend({html:'<'+'?xml version="1.0" encoding="UTF-8"?'+'><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es"><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">STYLE_SHEET</head><body>INITIAL_CONTENT</body></html>',css:{},debug:true,autoSave:true,rmUnwantedBr:true,brIE:true,controls:{},messages:{}},options);$.extend(options.messages,Wysiwyg.MSGS_EN);$.extend(options.controls,Wysiwyg.TOOLBAR);for(var control in controls){if(control in options.controls)$.extend(options.controls[control],controls[control]);else options.controls[control]=controls[control]}return this.each(function(){Wysiwyg(this,options)})};function Wysiwyg(element,options){return this instanceof Wysiwyg?this.init(element,options):new Wysiwyg(element,options)}$.extend(Wysiwyg,{insertImage:function(szURL,attributes){var self=$.data(this,'wysiwyg');if(self.constructor==Wysiwyg&&szURL&&szURL.length>0){if(attributes){self.editorDoc.execCommand('insertImage',false,'#jwysiwyg#');var img=self.getElementByAttributeValue('img','src','#jwysiwyg#');if(img){img.src=szURL;for(var attribute in attributes){img.setAttribute(attribute,attributes[attribute])}}}else{self.editorDoc.execCommand('insertImage',false,szURL)}}},createLink:function(szURL){var self=$.data(this,'wysiwyg');if(self.constructor==Wysiwyg&&szURL&&szURL.length>0){var selection=$(self.editor).documentSelection();if(selection.length>0){self.editorDoc.execCommand('unlink',false,[]);self.editorDoc.execCommand('createLink',false,szURL)}else if(self.options.messages.nonSelection)alert(self.options.messages.nonSelection)}},clear:function(){var self=$.data(this,'wysiwyg');self.setContent('');self.saveContent()},MSGS_EN:{nonSelection:'select the text you wish to link'},TOOLBAR:{bold:{visible:true,tags:['b','strong'],css:{fontWeight:'bold'}},italic:{visible:true,tags:['i','em'],css:{fontStyle:'italic'}},strikeThrough:{visible:false,tags:['s','strike'],css:{textDecoration:'line-through'}},underline:{visible:false,tags:['u'],css:{textDecoration:'underline'}},separator00:{visible:true,separator:true},justifyLeft:{visible:false,css:{textAlign:'left'}},justifyCenter:{visible:false,tags:['center'],css:{textAlign:'center'}},justifyRight:{visible:false,css:{textAlign:'right'}},justifyFull:{visible:false,css:{textAlign:'justify'}},separator01:{visible:false,separator:true},indent:{visible:false},outdent:{visible:false},separator02:{visible:false,separator:true},subscript:{visible:false,tags:['sub']},superscript:{visible:false,tags:['sup']},separator03:{visible:false,separator:true},undo:{visible:false},redo:{visible:false},separator04:{visible:false,separator:true},insertOrderedList:{visible:false,tags:['ol']},insertUnorderedList:{visible:false,tags:['ul']},insertHorizontalRule:{visible:false,tags:['hr']},separator05:{separator:false},createLink:{visible:false,exec:function(){var selection=$(this.editor).documentSelection();if(selection.length>0){if($.browser.msie)this.editorDoc.execCommand('createLink',true,null);else{var szURL=prompt('URL','http://');if(szURL&&szURL.length>0){this.editorDoc.execCommand('unlink',false,[]);this.editorDoc.execCommand('createLink',false,szURL)}}}else if(this.options.messages.nonSelection)alert(this.options.messages.nonSelection)},tags:['a']},insertImage:{visible:false,exec:function(){if($.browser.msie)this.editorDoc.execCommand('insertImage',true,null);else{var szURL=prompt('URL','http://');if(szURL&&szURL.length>0)this.editorDoc.execCommand('insertImage',false,szURL)}},tags:['img']},separator06:{separator:false},h1mozilla:{visible:false&&$.browser.mozilla,className:'h1',command:'heading',arguments:['h1'],tags:['h1']},h2mozilla:{visible:false&&$.browser.mozilla,className:'h2',command:'heading',arguments:['h2'],tags:['h2']},h3mozilla:{visible:false&&$.browser.mozilla,className:'h3',command:'heading',arguments:['h3'],tags:['h3']},h1:{visible:false&&!($.browser.mozilla),className:'<h1>',command:'formatBlock',arguments:['<h1>'],tags:['<h1>']},h2:{visible:false&&!($.browser.mozilla),className:'h2',command:'formatBlock',arguments:['Heading 2'],tags:['h2']},h3:{visible:false&&!($.browser.mozilla),className:'h3',command:'formatBlock',arguments:['Heading 3'],tags:['h3']},separator07:{visible:false,separator:true},cut:{visible:true},copy:{visible:true},paste:{visible:true},separator08:{separator:false&&!($.browser.msie)},increaseFontSize:{visible:false&&!($.browser.msie),tags:['big']},decreaseFontSize:{visible:false&&!($.browser.msie),tags:['small']},separator09:{separator:false},html:{visible:false,exec:function(){if(this.viewHTML){this.setContent($(this.original).val());$(this.original).hide()}else{this.saveContent();$(this.original).show()}this.viewHTML=!(this.viewHTML)}},removeFormat:{visible:false,exec:function(){this.editorDoc.execCommand('removeFormat',false,[]);this.editorDoc.execCommand('unlink',false,[])}}}});$.extend(Wysiwyg.prototype,{original:null,options:{},element:null,editor:null,init:function(element,options){var self=this;this.editor=element;this.options=options||{};$.data(element,'wysiwyg',this);var newX=element.width||element.clientWidth;var newY=element.height||element.clientHeight;if(element.nodeName.toLowerCase()=='textarea'){this.original=element;if(newX==0&&element.cols)newX=(element.cols*8)+21;if(newY==0&&element.rows)newY=(element.rows*16)+16;var editor=this.editor=$('<iframe></iframe>').css({minHeight:(newY-6).toString()+'px',width:(newX-8).toString()+'px'}).attr('id',$(element).attr('id')+'IFrame');if($.browser.msie){this.editor.css('height',(newY).toString()+'px')}}var panel=this.panel=$('<ul></ul>').addClass('panel');this.appendControls();this.element=$('<div></div>').css({width:(newX>0)?(newX).toString()+'px':'100%'}).addClass('wysiwyg').append(panel).append($('<div><!-- --></div>').css({clear:'both'})).append(editor);$(element).hide().before(this.element);this.viewHTML=false;this.initialHeight=newY-8;this.initialContent=$(element).text();this.initFrame();if(this.initialContent.length==0)this.setContent('');if(this.options.autoSave)$('form').submit(function(){self.saveContent()})},initFrame:function(){var self=this;var style='';if(this.options.css&&this.options.css.constructor==String)style='<link rel="stylesheet" type="text/css" media="screen" href="'+this.options.css+'" />';this.editorDoc=$(this.editor).document();this.editorDoc_designMode=false;try{this.editorDoc.designMode='on';this.editorDoc_designMode=true}catch(e){$(this.editorDoc).focus(function(){self.designMode()})}this.editorDoc.open();this.editorDoc.write(this.options.html.replace(/INITIAL_CONTENT/,this.initialContent).replace(/STYLE_SHEET/,style));this.editorDoc.close();this.editorDoc.contentEditable='true';if($.browser.msie){setTimeout(function(){$(self.editorDoc.body).css('border','none')},0)}$(this.editorDoc).click(function(event){self.checkTargets(event.target?event.target:event.srcElement)});$(this.original).focus(function(){$(self.editorDoc.body).focus()});if(this.options.autoSave){$(this.editorDoc).keydown(function(){self.saveContent()}).mousedown(function(){self.saveContent()})}if(this.options.css){setTimeout(function(){if(self.options.css.constructor==String){}else $(self.editorDoc).find('body').css(self.options.css)},0)}$(this.editorDoc).keydown(function(event){if($.browser.msie&&self.options.brIE&&event.keyCode==13){var rng=self.getRange();rng.pasteHTML('<br />');rng.collapse(false);rng.select();return false}})},designMode:function(){if(!(this.editorDoc_designMode)){try{this.editorDoc.designMode='on';this.editorDoc_designMode=true}catch(e){}}},getSelection:function(){return(window.getSelection)?window.getSelection():document.selection},getRange:function(){var selection=this.getSelection();if(!(selection))return null;return(selection.rangeCount>0)?selection.getRangeAt(0):selection.createRange()},getContent:function(){return $($(this.editor).document()).find('body').html()},setContent:function(newContent){$($(this.editor).document()).find('body').html(newContent)},saveContent:function(){if(this.original){var content=this.getContent();if(this.options.rmUnwantedBr)content=(content.substr(-4)=='<br />')?content.substr(0,content.length-4):content;$(this.original).val(content)}},appendMenu:function(cmd,args,className,fn){var self=this;var args=args||[];$('<li></li>').append($('<a><!-- --></a>').addClass(className||cmd)).mousedown(function(){if(fn)fn.apply(self);else self.editorDoc.execCommand(cmd,false,args);if(self.options.autoSave)self.saveContent()}).appendTo(this.panel)},appendMenuSeparator:function(){$('<li class="separator"></li>').appendTo(this.panel)},appendControls:function(){for(var name in this.options.controls){var control=this.options.controls[name];if(control.separator){if(control.visible!==false)this.appendMenuSeparator()}else if(control.visible){this.appendMenu(control.command||name,control.arguments||[],control.className||control.command||name||'empty',control.exec)}}},checkTargets:function(element){for(var name in this.options.controls){var control=this.options.controls[name];var className=control.className||control.command||name||'empty';$('.'+className,this.panel).removeClass('active');if(control.tags){var elm=element;do{if(elm.nodeType!=1)break;if($.inArray(elm.tagName.toLowerCase(),control.tags)!=-1)$('.'+className,this.panel).addClass('active')}while(elm=elm.parentNode)}if(control.css){var elm=$(element);do{if(elm[0].nodeType!=1)break;for(var cssProperty in control.css)if(elm.css(cssProperty).toString().toLowerCase()==control.css[cssProperty])$('.'+className,this.panel).addClass('active')}while(elm=elm.parent())}}},getElementByAttributeValue:function(tagName,attributeName,attributeValue){var elements=this.editorDoc.getElementsByTagName(tagName);for(var i=0;i<elements.length;i++){var value=elements[i].getAttribute(attributeName);if($.browser.msie){value=value.substr(value.length-attributeValue.length)}if(value==attributeValue)return elements[i]}return false}})})(jQuery);
/* swfobject */
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(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\"";_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var _1a=this.getParams();for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}var _1c=this.getVariablePairs().join("&");if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\">";_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var _1d=this.getParams();for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>";}return _19;},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!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 n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.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 axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false;}if(this.major>fv.major){return true;}if(this.minor<fv.minor){return false;}if(this.minor>fv.minor){return true;}if(this.rev<fv.rev){return false;}return true;};deconcept.util={getRequestParameter:function(_2b){var q=document.location.search||document.location.hash;if(_2b==null){return q;}if(q){var _2d=q.substring(1).split("&");for(var i=0;i<_2d.length;i++){if(_2d[i].substring(0,_2d[i].indexOf("="))==_2b){return _2d[i].substring((_2d[i].indexOf("=")+1));}}}return "";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var _2f=document.getElementsByTagName("OBJECT");for(var i=_2f.length-1;i>=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=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(id){return document.all[id];};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;
/* greybox */
var GB_DONE=false;var GB_HEIGHT=400;var GB_WIDTH=400;function GB_show(caption,url,height,width){GB_HEIGHT=height||400;GB_WIDTH=width||400;if(!GB_DONE){$(document.body).append("<div id='GB_overlay'></div><div id='GB_window'><div id='GB_caption'></div>"+"<span>Cerrar X</span></div>");$("#GB_window span").click(GB_hide);$("#GB_overlay").click(GB_hide);$(window).resize(GB_position);GB_DONE=true}$("#GB_frame").remove();$("#GB_window").append("<iframe id='GB_frame' src='"+url+"'></iframe>");$("#GB_caption").html(caption);$("#GB_overlay").show();GB_position();if(GB_ANIMATION)$("#GB_window").slideDown("slow");else $("#GB_window").show()}function GB_hide(){$("#GB_window,#GB_overlay").hide()}function GB_position(){var de=document.documentElement;var w=self.innerWidth||(de&&de.clientWidth)||document.body.clientWidth;$("#GB_window").css({width:GB_WIDTH+"px",height:GB_HEIGHT+"px",left:((w-GB_WIDTH)/2)+"px"});$("#GB_frame").css("height",GB_HEIGHT-32+"px")}
/* calendar */
var req;function navigate(month,year){var url="calendar.php?month="+month+"&year="+year;if(window.XMLHttpRequest){req=new XMLHttpRequest()}else if(window.ActiveXObject){req=new ActiveXObject("Microsoft.XMLHTTP")}req.open("GET",url,true);req.onreadystatechange=callback;req.send(null)}function callback(){obj=document.getElementById("calendar");setFade(0);if(req.readyState==4){if(req.status==200){response=req.responseText;obj.innerHTML=response;fade(0)}}}function fade(amt){if(amt<=100){setFade(amt);amt+=10;setTimeout("fade("+amt+")",5)}}function setFade(amt){obj=document.getElementById("calendar");amt=(amt==100)?99.999:amt;obj.style.filter="alpha(opacity:"+amt+")";obj.style.KHTMLOpacity=amt/100;obj.style.MozOpacity=amt/100;obj.style.opacity=amt/100}