var sTomorrow = '03.02.';

changeInnerCallback_constituent = function(id, event, row, attrNames, attrValues){
	var aConstituentType =id.split("_");
	try{
        idMonedas = 0;
		for (i=0;i<attrValues.length;i++){
			if (attrValues[i]!=''){
				if(attrNames[i] == 'PERFORMANCE_PCT'){
					var number = attrValues[i];
					var str = number.toString();
					var append_str  = '';
					
					var cv   = unformat($(id+'_'+i).innerHTML);
					var nv   = unformat(number);
					var diff = nv-cv; 

					if(diff>0.0) {
						$(id+'_'+i).className = "valor_porcentaje_verde";
					} else if(diff<0.0) {
						$(id+'_'+i).className ="valor_porcentaje_rojo";
					} else {
						$(id+'_'+i).className ="valor_porcentaje_cero";
					} 

					if((attrValues[3]!="")&&(attrValues[3]!='n.a.')){
						var sFecha = attrValues[3];
						$(id+'_3').innerHTML = sFecha;
					}
					
					if((sFecha.length==10) && (sFecha<"2010-02-02"))
					{
							$(id+'_1').innerHTML = '0';
							$(id+'_2').className ="valor_porcentaje_cero";
							$(id+'_2').innerHTML = '+0,00%';
							nv = 0;
							cv = 0;
							diff = 0.0;
					}
					else if
					((sFecha.length==6) && (sFecha!=sTomorrow) && (sFecha!="02.02."))
					{
							$(id+'_1').innerHTML = '0,0';
							$(id+'_2').className ="valor_porcentaje_cero";
							$(id+'_2').innerHTML = '+0,00%';
							nv = 0;
							cv = 0;
							diff = 0.0;
					}
					else{
					if((attrValues[0] != '') && (attrValues[0] != 'n.a.')){$(id+'_0').innerHTML = attrValues[0];}
					if((attrValues[2] != '') && (attrValues[2] != 'n.a.')){$(id+'_2').innerHTML = attrValues[2];}
					flash(id+'_'+i,nv,cv,(nv-cv),attrNames[i]);
				}}		
				
				if ((trim(attrNames[i]) == 'TOTAL_MONEY') || (trim(attrNames[i]) == 'TOTAL_VOLUME')){
					var totnv = unformat(attrValues[i]);
					var divnv = totnv/1000000;
					if (!isNaN(divnv)){
						$(id+'_'+i).innerHTML = divnv.toFixed(1).replace('.', ',');
					}else{
						$(id+'_'+i).innerHTML = '0,0';
					}
				}
			}
		}
		
	}catch(err){}
	
};

changeInnerGrapCallback = function(id, event, row, attrNames, attrValues){	
if(iCurrentNotation!='25812368' && iCurrentNotation!='25812372' && iCurrentNotation!='25812367' && iCurrentNotation!='25812371' && iCurrentNotation!='25812369' && iCurrentNotation!='25812370' && iCurrentNotation!=='25812366' && iCurrentNotation!=='25812362' && iCurrentNotation!='25812365' && iCurrentNotation!='25812364' && iCurrentNotation!='31245904' && iCurrentNotation!='25812363' && iCurrentNotation!='25812377' && iCurrentNotation!='25812376' && iCurrentNotation!='25812375' && iCurrentNotation!='25812373' && iCurrentNotation!='25880981'){
	try{
	    idMonedas = 0;
		if((id==iCurrentNotation) && (attrValues[0]!="")&&(attrValues[0]!='n.a.')){
			var perf_pct = attrValues[1];
			var perf = attrValues[2];
			var str_pct = perf_pct.toString();
			var str = perf.toString();
			var append_str  = '';
	
			var cv_pct   = unformat($(id+'_1').innerHTML);
			var nv_pct   = unformat(perf_pct);
			var diff_pct = nv_pct-cv_pct;
			var cv   = unformat($(id+'_2').innerHTML);
			var nv   = unformat(perf);
			var diff = nv-cv;
	
			if(diff_pct>0.0) {
				$(id+'_1').className = "grafico_valor_verde";
			} else if(diff<0.0) {
				$(id+'_1').className ="grafico_valor_roja";
			} else {
				$(id+'_1').className ="grafico_valor_gris";
			} 
			if(diff>0.0) {
				$(id+'_2').className = "grafico_valor_verde";
			} else if(diff<0.0) {
				$(id+'_2').className ="grafico_valor_roja";
			} else {
				$(id+'_2').className ="grafico_valor_gris";
			} 			
		
			$(id+'_0').innerHTML = attrValues[0];
			$(id+'_1').innerHTML = attrValues[1];
			$(id+'_2').innerHTML = attrValues[2];
			
			if((attrValues[5]!="")&&(attrValues[5]!='n.a.')){
			var sFecha = attrValues[5];
			$(id+'_5').innerHTML = sFecha;
			}

			if((sFecha.length==10) && (sFecha<"2010-02-02"))
			{
				$(id+'_1').className ="grafico_valor_gris";
				$(id+'_2').className ="grafico_valor_gris";
				$(id+'_2').innerHTML = '0,00';
				$(id+'_1').innerHTML = '+0,00%';
				nv = 0;
				cv = 0;
				diff = 0.0;
				nv_pct = 0;
				cv_pct = 0;
				diff_pct = 0.0;
			}
			else if
			((sFecha.length==6) && (sFecha!=sTomorrow) && (sFecha!="02.02."))
			{
				$(id+'_1').className ="grafico_valor_gris";
				$(id+'_2').className ="grafico_valor_gris";
				$(id+'_2').innerHTML = '0,00';
				$(id+'_1').innerHTML = '+0,00%';
				nv = 0;
				cv = 0;
				diff = 0.0;
				nv_pct = 0;
				cv_pct = 0;
				diff_pct = 0.0;
			}
		
			flash_graph(id+'_1',nv_pct,cv_pct,(nv_pct-cv_pct),attrNames[1])
			flash_graph(id+'_2',nv,cv,(nv-cv),attrNames[2])
			
			if((attrValues[3]!='')&&(attrValues[3]!='n.a.')&&(attrValues[4]!='')&&(attrValues[4]!='n.a.')){
				$(id+'_3').innerHTML = attrValues[3];
				$(id+'_4').innerHTML = attrValues[4];
			}
		}
	}catch(e)	{}		
}
}

function valueformat(id, event, row, attrNames, attrValues){
		
	var valor, str, number;
	number = attrValues;
	str = number.toString();
	valor = str.substring(0,str.length-1);
	if (attrNames=='DATE_BASE_QUOTE'){
		if ('02.02'==valor){
			$('igpamayores').className = "";
			$('igpabajas').className = "";
			$('igpatrans').className = "";
		}else{
			$('igpamayores').className = "palmares_cerrados";
			$('igpabajas').className = "palmares_cerrados";
			$('igpatrans').className = "palmares_cerrados";
		}		
	}
	
	return valor;

}

changeInnerCotizacionCallback = function(id, event, row, attrNames, attrValues){
	try{
	    idMonedas = 0;
		if((attrValues[10]!="")&&(attrValues[10]!='n.a.')){
			var sFecha = attrValues[10];
			$(id+'_10').innerHTML = sFecha;
			}
				
		for (i=0;i<attrValues.length;i++){
			if (attrValues[i]!=''){
				if((attrNames[i] == 'PERFORMANCE_PCT')&&(attrValues[i]!='n.a.')){
					var number = attrValues[i];
					var str = number.toString();
					var append_str  = '';
					
					var cv   = unformat($(id+'_'+i).innerHTML);
					var nv   = unformat(number);
					var diff = nv-cv; 
					
					if(diff>0.0) {
						$(id+'_'+i).className = "valor_porcentaje_verde";
					} else if(diff<0.0) {
						$(id+'_'+i).className ="valor_porcentaje_rojo";
					} else {
						$(id+'_'+i).className ="valor_porcentaje_cero";
					} 
						if((sFecha.length==10) && (sFecha<"2010-02-02")){
							$(id+'_2').innerHTML = '0';
							$(id+'_3').innerHTML = '0';
							$(id+'_9').innerHTML = '0';
							$(id+'_1').className ="valor_porcentaje_cero";
							$(id+'_1').innerHTML = '+0,00%';
							nv = 0;
							cv = 0;
							diff = 0.0;
						}
						else if
						((sFecha.length==6) && (sFecha!=sTomorrow) && (sFecha!="02.02."))
						{
							$(id+'_2').innerHTML = '0';
							$(id+'_3').innerHTML = '0';
							$(id+'_9').innerHTML = '0';
							$(id+'_1').className ="valor_porcentaje_cero";
							$(id+'_1').innerHTML = '+0,00%';
							nv = 0;
							cv = 0;
							diff = 0.0;
						}
						else{
							$(id+'_0').innerHTML = attrValues[0];
							$(id+'_1').innerHTML = attrValues[1];
							
							if(attrValues[2] != ''){$(id+'_2').innerHTML = attrValues[2];}
							if(attrValues[3] != ''){$(id+'_3').innerHTML = attrValues[3];}
							if(attrValues[4] != ''){$(id+'_4').innerHTML = attrValues[4];}
							if(attrValues[5] != ''){$(id+'_5').innerHTML = attrValues[5];}
							if(attrValues[6] != ''){$(id+'_6').innerHTML = attrValues[6];}
							if(attrValues[7] != ''){$(id+'_7').innerHTML = attrValues[7];}
							if(attrValues[8] != ''){$(id+'_8').innerHTML = attrValues[8];}
							if(attrValues[9] != ''){$(id+'_9').innerHTML = attrValues[9];}
				
							flash(id+'_1',nv,cv,(nv-cv),attrNames[1])
						}				
				}
			}
		}
	}catch(err){}
}

var idNews=0; var idMercados=0; var idMonedas=0; var idTasa=0; var idCommodity=0; var idTops=0; var idFlops=0; var idTrans=0; var sLevel = ""; 
var sQualityPrice = 4; var idTimeCelfin = 0; var idMaxTimeCelfin = 120; var idKeepCnn=0;
var aPeriod = new Array ("1D", "5D", "1M", "6M", "1Y", "YTD", "5Y", "10Y", "MAX");

var iCurrentNotation = '17242077';
var iCurrentIndex = iCurrentNotation;
var timeRange = aPeriod[0];
var a = '';

c=new Array();c['AU']='';c['BE']='';c['BR']='';c['CL']='';c['CN']='';c['DE']='';c['GB']='';c['HK']='';c['IN']='';c['JP']='';c['US']='';c['MX']='';c['CN']='';c['RU']='';c['FR']='';c['NL']='';c['PT']='';c['KR']='';

var aBenchmark = new Array(0,0,0);

var oFlashChart= new Object();

var STATUS_UNDEFINED = ""; var STATUS_INIT = ""; var STATUS_ERROR = ""; var STATUS_OK = ""; var STATUS_LOST_CONNECTION = "";
var requiredMajorVersion = 8; var requiredMinorVersion = 9; var requiredRevision = 124;


function closeStatusLHTML(){ try {$("idStatusLHTML").style.display="none";}catch(e){}}
var Prototype={Version:"1.6.0.2",Browser:{IE:!!(window.attachEvent&&!window.opera),Opera:!!window.opera,WebKit:navigator.userAgent.indexOf("AppleWebKit/")>-1,Gecko:navigator.userAgent.indexOf("Gecko")>-1&&navigator.userAgent.indexOf("KHTML")==-1,MobileSafari:!!navigator.userAgent.match(/Apple.*Mobile.*Safari/)},BrowserFeatures:{XPath:!!document.evaluate,ElementExtensions:!!window.HTMLElement,SpecificElementExtensions:document.createElement("div").__proto__&&document.createElement("div").__proto__!==document.createElement("form").__proto__},ScriptFragment:"<script[^>]*>([\\S\\s]*?)<\/script>",JSONFilter:/^\/\*-secure-([\s\S]*)\*\/\s*$/,emptyFunction:function(){},K:function(a){return a}};if(Prototype.Browser.MobileSafari){Prototype.BrowserFeatures.SpecificElementExtensions=false}var Class={create:function(){var e=null,d=$A(arguments);if(Object.isFunction(d[0])){e=d.shift()}function a(){this.initialize.apply(this,arguments)}Object.extend(a,Class.Methods);a.superclass=e;a.subclasses=[];if(e){var b=function(){};b.prototype=e.prototype;a.prototype=new b;e.subclasses.push(a)}for(var c=0;c<d.length;c++){a.addMethods(d[c])}if(!a.prototype.initialize){a.prototype.initialize=Prototype.emptyFunction}a.prototype.constructor=a;return a}};Class.Methods={addMethods:function(g){var c=this.superclass&&this.superclass.prototype;var b=Object.keys(g);if(!Object.keys({toString:true}).length){b.push("toString","valueOf")}for(var a=0,d=b.length;a<d;a++){var f=b[a],e=g[f];if(c&&Object.isFunction(e)&&e.argumentNames().first()=="$super"){var h=e,e=Object.extend((function(i){return function(){return c[i].apply(this,arguments)}})(f).wrap(h),{valueOf:function(){return h},toString:function(){return h.toString()}})}this.prototype[f]=e}return this}};var Abstract={};Object.extend=function(a,c){for(var b in c){a[b]=c[b]}return a};Object.extend(Object,{inspect:function(a){try{if(Object.isUndefined(a)){return"undefined"}if(a===null){return"null"}return a.inspect?a.inspect():String(a)}catch(b){if(b instanceof RangeError){return"..."}throw b}},toJSON:function(a){var c=typeof a;switch(c){case"undefined":case"function":case"unknown":return;case"boolean":return a.toString()}if(a===null){return"null"}if(a.toJSON){return a.toJSON()}if(Object.isElement(a)){return}var b=[];for(var e in a){var d=Object.toJSON(a[e]);if(!Object.isUndefined(d)){b.push(e.toJSON()+": "+d)}}return"{"+b.join(", ")+"}"},toQueryString:function(a){return $H(a).toQueryString()},toHTML:function(a){return a&&a.toHTML?a.toHTML():String.interpret(a)},keys:function(a){var b=[];for(var c in a){b.push(c)}return b},values:function(b){var a=[];for(var c in b){a.push(b[c])}return a},clone:function(a){return Object.extend({},a)},isElement:function(a){return a&&a.nodeType==1},isArray:function(a){return a!=null&&typeof a=="object"&&"splice" in a&&"join" in a},isHash:function(a){return a instanceof Hash},isFunction:function(a){return typeof a=="function"},isString:function(a){return typeof a=="string"},isNumber:function(a){return typeof a=="number"},isUndefined:function(a){return typeof a=="undefined"}});Object.extend(Function.prototype,{argumentNames:function(){var a=this.toString().match(/^[\s\(]*function[^(]*\((.*?)\)/)[1].split(",").invoke("strip");return a.length==1&&!a[0]?[]:a},bind:function(){if(arguments.length<2&&Object.isUndefined(arguments[0])){return this}var a=this,c=$A(arguments),b=c.shift();return function(){return a.apply(b,c.concat($A(arguments)))}},bindAsEventListener:function(){var a=this,c=$A(arguments),b=c.shift();return function(d){return a.apply(b,[d||window.event].concat(c))}},curry:function(){if(!arguments.length){return this}var a=this,b=$A(arguments);return function(){return a.apply(this,b.concat($A(arguments)))}},delay:function(){var a=this,b=$A(arguments),c=b.shift()*1000;return window.setTimeout(function(){return a.apply(a,b)},c)},wrap:function(b){var a=this;return function(){return b.apply(this,[a.bind(this)].concat($A(arguments)))}},methodize:function(){if(this._methodized){return this._methodized}var a=this;return this._methodized=function(){return a.apply(null,[this].concat($A(arguments)))}}});Function.prototype.defer=Function.prototype.delay.curry(0.01);Date.prototype.toJSON=function(){return'"'+this.getUTCFullYear()+"-"+(this.getUTCMonth()+1).toPaddedString(2)+"-"+this.getUTCDate().toPaddedString(2)+"T"+this.getUTCHours().toPaddedString(2)+":"+this.getUTCMinutes().toPaddedString(2)+":"+this.getUTCSeconds().toPaddedString(2)+'Z"'};var Try={these:function(){var c;for(var b=0,d=arguments.length;b<d;b++){var a=arguments[b];try{c=a();break}catch(f){}}return c}};RegExp.prototype.match=RegExp.prototype.test;RegExp.escape=function(a){return String(a).replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")};var PeriodicalExecuter=Class.create({initialize:function(b,a){this.callback=b;this.frequency=a;this.currentlyExecuting=false;this.registerCallback()},registerCallback:function(){this.timer=setInterval(this.onTimerEvent.bind(this),this.frequency*1000)},execute:function(){this.callback(this)},stop:function(){if(!this.timer){return}clearInterval(this.timer);this.timer=null},onTimerEvent:function(){if(!this.currentlyExecuting){try{this.currentlyExecuting=true;this.execute()}finally{this.currentlyExecuting=false}}}});Object.extend(String,{interpret:function(a){return a==null?"":String(a)},specialChar:{"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","\\":"\\\\"}});Object.extend(String.prototype,{gsub:function(e,c){var a="",d=this,b;c=arguments.callee.prepareReplacement(c);while(d.length>0){if(b=d.match(e)){a+=d.slice(0,b.index);a+=String.interpret(c(b));d=d.slice(b.index+b[0].length)}else{a+=d,d=""}}return a},sub:function(c,a,b){a=this.gsub.prepareReplacement(a);b=Object.isUndefined(b)?1:b;return this.gsub(c,function(d){if(--b<0){return d[0]}return a(d)})},scan:function(b,a){this.gsub(b,a);return String(this)},truncate:function(b,a){b=b||30;a=Object.isUndefined(a)?"...":a;return this.length>b?this.slice(0,b-a.length)+a:String(this)},strip:function(){return this.replace(/^\s+/,"").replace(/\s+$/,"")},stripTags:function(){return this.replace(/<\/?[^>]+>/gi,"")},stripScripts:function(){return this.replace(new RegExp(Prototype.ScriptFragment,"img"),"")},extractScripts:function(){var b=new RegExp(Prototype.ScriptFragment,"img");var a=new RegExp(Prototype.ScriptFragment,"im");return(this.match(b)||[]).map(function(c){return(c.match(a)||["",""])[1]})},evalScripts:function(){return this.extractScripts().map(function(script){return eval(script)})},escapeHTML:function(){var a=arguments.callee;a.text.data=this;return a.div.innerHTML},unescapeHTML:function(){var a=new Element("div");a.innerHTML=this.stripTags();return a.childNodes[0]?(a.childNodes.length>1?$A(a.childNodes).inject("",function(b,c){return b+c.nodeValue}):a.childNodes[0].nodeValue):""},toQueryParams:function(b){var a=this.strip().match(/([^?#]*)(#.*)?$/);if(!a){return{}}return a[1].split(b||"&").inject({},function(e,f){if((f=f.split("="))[0]){var c=decodeURIComponent(f.shift());var d=f.length>1?f.join("="):f[0];if(d!=undefined){d=decodeURIComponent(d)}if(c in e){if(!Object.isArray(e[c])){e[c]=[e[c]]}e[c].push(d)}else{e[c]=d}}return e})},toArray:function(){return this.split("")},succ:function(){return this.slice(0,this.length-1)+String.fromCharCode(this.charCodeAt(this.length-1)+1)},times:function(a){return a<1?"":new Array(a+1).join(this)},camelize:function(){var d=this.split("-"),a=d.length;if(a==1){return d[0]}var c=this.charAt(0)=="-"?d[0].charAt(0).toUpperCase()+d[0].substring(1):d[0];for(var b=1;b<a;b++){c+=d[b].charAt(0).toUpperCase()+d[b].substring(1)}return c},capitalize:function(){return this.charAt(0).toUpperCase()+this.substring(1).toLowerCase()},underscore:function(){return this.gsub(/::/,"/").gsub(/([A-Z]+)([A-Z][a-z])/,"#{1}_#{2}").gsub(/([a-z\d])([A-Z])/,"#{1}_#{2}").gsub(/-/,"_").toLowerCase()},dasherize:function(){return this.gsub(/_/,"-")},inspect:function(b){var a=this.gsub(/[\x00-\x1f\\]/,function(c){var d=String.specialChar[c[0]];return d?d:"\\u00"+c[0].charCodeAt().toPaddedString(2,16)});if(b){return'"'+a.replace(/"/g,'\\"')+'"'}return"'"+a.replace(/'/g,"\\'")+"'"},toJSON:function(){return this.inspect(true)},unfilterJSON:function(a){return this.sub(a||Prototype.JSONFilter,"#{1}")},isJSON:function(){var a=this;if(a.blank()){return false}a=this.replace(/\\./g,"@").replace(/"[^"\\\n\r]*"/g,"");return(/^[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]*$/).test(a)},evalJSON:function(sanitize){var json=this.unfilterJSON();try{if(!sanitize||json.isJSON()){return eval("("+json+")")}}catch(e){}throw new SyntaxError("Badly formed JSON string: "+this.inspect())},include:function(a){return this.indexOf(a)>-1},startsWith:function(a){return this.indexOf(a)===0},endsWith:function(a){var b=this.length-a.length;return b>=0&&this.lastIndexOf(a)===b},empty:function(){return this==""},blank:function(){return/^\s*$/.test(this)},interpolate:function(a,b){return new Template(this,b).evaluate(a)}});if(Prototype.Browser.WebKit||Prototype.Browser.IE){Object.extend(String.prototype,{escapeHTML:function(){return this.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")},unescapeHTML:function(){return this.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">")}})}String.prototype.gsub.prepareReplacement=function(b){if(Object.isFunction(b)){return b}var a=new Template(b);return function(c){return a.evaluate(c)}};String.prototype.parseQuery=String.prototype.toQueryParams;Object.extend(String.prototype.escapeHTML,{div:document.createElement("div"),text:document.createTextNode("")});with(String.prototype.escapeHTML){div.appendChild(text)}var Template=Class.create({initialize:function(a,b){this.template=a.toString();this.pattern=b||Template.Pattern},evaluate:function(a){if(Object.isFunction(a.toTemplateReplacements)){a=a.toTemplateReplacements()}return this.template.gsub(this.pattern,function(d){if(a==null){return""}var f=d[1]||"";if(f=="\\"){return d[2]}var b=a,g=d[3];var e=/^([^.[]+|\[((?:.*?[^\\])?)\])(\.|\[|$)/;d=e.exec(g);if(d==null){return f}while(d!=null){var c=d[1].startsWith("[")?d[2].gsub("\\\\]","]"):d[1];b=b[c];if(null==b||""==d[3]){break}g=g.substring("["==d[3]?d[1].length:d[0].length);d=e.exec(g)}return f+String.interpret(b)})}});Template.Pattern=/(^|.|\r|\n)(#\{(.*?)\})/;var $break={};var Enumerable={each:function(c,b){var a=0;c=c.bind(b);try{this._each(function(e){c(e,a++)})}catch(d){if(d!=$break){throw d}}return this},eachSlice:function(d,c,b){c=c?c.bind(b):Prototype.K;var a=-d,e=[],f=this.toArray();while((a+=d)<f.length){e.push(f.slice(a,a+d))}return e.collect(c,b)},all:function(c,b){c=c?c.bind(b):Prototype.K;var a=true;this.each(function(e,d){a=a&&!!c(e,d);if(!a){throw $break}});return a},any:function(c,b){c=c?c.bind(b):Prototype.K;var a=false;this.each(function(e,d){if(a=!!c(e,d)){throw $break}});return a},collect:function(c,b){c=c?c.bind(b):Prototype.K;var a=[];this.each(function(e,d){a.push(c(e,d))});return a},detect:function(c,b){c=c.bind(b);var a;this.each(function(e,d){if(c(e,d)){a=e;throw $break}});return a},findAll:function(c,b){c=c.bind(b);var a=[];this.each(function(e,d){if(c(e,d)){a.push(e)}});return a},grep:function(d,c,b){c=c?c.bind(b):Prototype.K;var a=[];if(Object.isString(d)){d=new RegExp(d)}this.each(function(f,e){if(d.match(f)){a.push(c(f,e))}});return a},include:function(a){if(Object.isFunction(this.indexOf)){if(this.indexOf(a)!=-1){return true}}var b=false;this.each(function(c){if(c==a){b=true;throw $break}});return b},inGroupsOf:function(b,a){a=Object.isUndefined(a)?null:a;return this.eachSlice(b,function(c){while(c.length<b){c.push(a)}return c})},inject:function(a,c,b){c=c.bind(b);this.each(function(e,d){a=c(a,e,d)});return a},invoke:function(b){var a=$A(arguments).slice(1);return this.map(function(c){return c[b].apply(c,a)})},max:function(c,b){c=c?c.bind(b):Prototype.K;var a;this.each(function(e,d){e=c(e,d);if(a==null||e>=a){a=e}});return a},min:function(c,b){c=c?c.bind(b):Prototype.K;var a;this.each(function(e,d){e=c(e,d);if(a==null||e<a){a=e}});return a},partition:function(d,b){d=d?d.bind(b):Prototype.K;var c=[],a=[];this.each(function(f,e){(d(f,e)?c:a).push(f)});return[c,a]},pluck:function(b){var a=[];this.each(function(c){a.push(c[b])});return a},reject:function(c,b){c=c.bind(b);var a=[];this.each(function(e,d){if(!c(e,d)){a.push(e)}});return a},sortBy:function(b,a){b=b.bind(a);return this.map(function(d,c){return{value:d,criteria:b(d,c)}}).sort(function(f,e){var d=f.criteria,c=e.criteria;return d<c?-1:d>c?1:0}).pluck("value")},toArray:function(){return this.map()},zip:function(){var b=Prototype.K,a=$A(arguments);if(Object.isFunction(a.last())){b=a.pop()}var c=[this].concat(a).map($A);return this.map(function(e,d){return b(c.pluck(d))})},size:function(){return this.toArray().length},inspect:function(){return"#<Enumerable:"+this.toArray().inspect()+">"}};Object.extend(Enumerable,{map:Enumerable.collect,find:Enumerable.detect,select:Enumerable.findAll,filter:Enumerable.findAll,member:Enumerable.include,entries:Enumerable.toArray,every:Enumerable.all,some:Enumerable.any});function $A(c){if(!c){return[]}if(c.toArray){return c.toArray()}var b=c.length||0,a=new Array(b);while(b--){a[b]=c[b]}return a}if(Prototype.Browser.WebKit){$A=function(c){if(!c){return[]}if(!(Object.isFunction(c)&&c=="[object NodeList]")&&c.toArray){return c.toArray()}var b=c.length||0,a=new Array(b);while(b--){a[b]=c[b]}return a}}Array.from=$A;Object.extend(Array.prototype,Enumerable);if(!Array.prototype._reverse){Array.prototype._reverse=Array.prototype.reverse}Object.extend(Array.prototype,{_each:function(b){for(var a=0,c=this.length;a<c;a++){b(this[a])}},clear:function(){this.length=0;return this},first:function(){return this[0]},last:function(){return this[this.length-1]},compact:function(){return this.select(function(a){return a!=null})},flatten:function(){return this.inject([],function(b,a){return b.concat(Object.isArray(a)?a.flatten():[a])})},without:function(){var a=$A(arguments);return this.select(function(b){return !a.include(b)})},reverse:function(a){return(a!==false?this:this.toArray())._reverse()},reduce:function(){return this.length>1?this:this[0]},uniq:function(a){return this.inject([],function(d,c,b){if(0==b||(a?d.last()!=c:!d.include(c))){d.push(c)}return d})},intersect:function(a){return this.uniq().findAll(function(b){return a.detect(function(c){return b===c})})},clone:function(){return[].concat(this)},size:function(){return this.length},inspect:function(){return"["+this.map(Object.inspect).join(", ")+"]"},toJSON:function(){var a=[];this.each(function(b){var c=Object.toJSON(b);if(!Object.isUndefined(c)){a.push(c)}});return"["+a.join(", ")+"]"}});if(Object.isFunction(Array.prototype.forEach)){Array.prototype._each=Array.prototype.forEach}if(!Array.prototype.indexOf){Array.prototype.indexOf=function(c,a){a||(a=0);var b=this.length;if(a<0){a=b+a}for(;a<b;a++){if(this[a]===c){return a}}return -1}}if(!Array.prototype.lastIndexOf){Array.prototype.lastIndexOf=function(b,a){a=isNaN(a)?this.length:(a<0?this.length+a:a)+1;var c=this.slice(0,a).reverse().indexOf(b);return(c<0)?c:a-c-1}}Array.prototype.toArray=Array.prototype.clone;function $w(a){if(!Object.isString(a)){return[]}a=a.strip();return a?a.split(/\s+/):[]}if(Prototype.Browser.Opera){Array.prototype.concat=function(){var e=[];for(var b=0,c=this.length;b<c;b++){e.push(this[b])}for(var b=0,c=arguments.length;b<c;b++){if(Object.isArray(arguments[b])){for(var a=0,d=arguments[b].length;a<d;a++){e.push(arguments[b][a])}}else{e.push(arguments[b])}}return e}}Object.extend(Number.prototype,{toColorPart:function(){return this.toPaddedString(2,16)},succ:function(){return this+1},times:function(a){$R(0,this,true).each(a);return this},toPaddedString:function(c,b){var a=this.toString(b||10);return"0".times(c-a.length)+a},toJSON:function(){return isFinite(this)?this.toString():"null"}});$w("abs round ceil floor").each(function(a){Number.prototype[a]=Math[a].methodize()});function $H(a){return new Hash(a)}var Hash=Class.create(Enumerable,(function(){function a(b,c){if(Object.isUndefined(c)){return b}return b+"="+encodeURIComponent(String.interpret(c))}return{initialize:function(b){this._object=Object.isHash(b)?b.toObject():Object.clone(b)},_each:function(c){for(var b in this._object){var d=this._object[b],e=[b,d];e.key=b;e.value=d;c(e)}},set:function(b,c){return this._object[b]=c},get:function(b){return this._object[b]},unset:function(b){var c=this._object[b];delete this._object[b];return c},toObject:function(){return Object.clone(this._object)},keys:function(){return this.pluck("key")},values:function(){return this.pluck("value")},index:function(c){var b=this.detect(function(d){return d.value===c});return b&&b.key},merge:function(b){return this.clone().update(b)},update:function(b){return new Hash(b).inject(this,function(c,d){c.set(d.key,d.value);return c})},toQueryString:function(){return this.map(function(d){var c=encodeURIComponent(d.key),b=d.value;if(b&&typeof b=="object"){if(Object.isArray(b)){return b.map(a.curry(c)).join("&")}}return a(c,b)}).join("&")},inspect:function(){return"#<Hash:{"+this.map(function(b){return b.map(Object.inspect).join(": ")}).join(", ")+"}>"},toJSON:function(){return Object.toJSON(this.toObject())},clone:function(){return new Hash(this)}}})());Hash.prototype.toTemplateReplacements=Hash.prototype.toObject;Hash.from=$H;var ObjectRange=Class.create(Enumerable,{initialize:function(c,a,b){this.start=c;this.end=a;this.exclusive=b},_each:function(a){var b=this.start;while(this.include(b)){a(b);b=b.succ()}},include:function(a){if(a<this.start){return false}if(this.exclusive){return a<this.end}return a<=this.end}});var $R=function(c,a,b){return new ObjectRange(c,a,b)};var Ajax={getTransport:function(){return Try.these(function(){return new XMLHttpRequest()},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")})||false},activeRequestCount:0};Ajax.Responders={responders:[],_each:function(a){this.responders._each(a)},register:function(a){if(!this.include(a)){this.responders.push(a)}},unregister:function(a){this.responders=this.responders.without(a)},dispatch:function(d,b,c,a){this.each(function(f){if(Object.isFunction(f[d])){try{f[d].apply(f,[b,c,a])}catch(g){}}})}};Object.extend(Ajax.Responders,Enumerable);Ajax.Responders.register({onCreate:function(){Ajax.activeRequestCount++},onComplete:function(){Ajax.activeRequestCount--}});Ajax.Base=Class.create({initialize:function(a){this.options={method:"post",asynchronous:true,contentType:"application/x-www-form-urlencoded",encoding:"UTF-8",parameters:"",evalJSON:true,evalJS:true};Object.extend(this.options,a||{});this.options.method=this.options.method.toLowerCase();if(Object.isString(this.options.parameters)){this.options.parameters=this.options.parameters.toQueryParams()}else{if(Object.isHash(this.options.parameters)){this.options.parameters=this.options.parameters.toObject()}}}});Ajax.Request=Class.create(Ajax.Base,{_complete:false,initialize:function($super,b,a){$super(a);this.transport=Ajax.getTransport();this.request(b)},request:function(b){this.url=b;this.method=this.options.method;var d=Object.clone(this.options.parameters);if(!["get","post"].include(this.method)){d._method=this.method;this.method="post"}this.parameters=d;if(d=Object.toQueryString(d)){if(this.method=="get"){this.url+=(this.url.include("?")?"&":"?")+d}else{if(/Konqueror|Safari|KHTML/.test(navigator.userAgent)){d+="&_="}}}try{var a=new Ajax.Response(this);if(this.options.onCreate){this.options.onCreate(a)}Ajax.Responders.dispatch("onCreate",this,a);this.transport.open(this.method.toUpperCase(),this.url,this.options.asynchronous);if(this.options.asynchronous){this.respondToReadyState.bind(this).defer(1)}this.transport.onreadystatechange=this.onStateChange.bind(this);this.setRequestHeaders();this.body=this.method=="post"?(this.options.postBody||d):null;this.transport.send(this.body);if(!this.options.asynchronous&&this.transport.overrideMimeType){this.onStateChange()}}catch(c){this.dispatchException(c)}},onStateChange:function(){var a=this.transport.readyState;if(a>1&&!((a==4)&&this._complete)){this.respondToReadyState(this.transport.readyState)}},setRequestHeaders:function(){var e={"X-Requested-With":"XMLHttpRequest","X-Prototype-Version":Prototype.Version,Accept:"text/javascript, text/html, application/xml, text/xml, */*"};if(this.method=="post"){e["Content-type"]=this.options.contentType+(this.options.encoding?"; charset="+this.options.encoding:"");if(this.transport.overrideMimeType&&(navigator.userAgent.match(/Gecko\/(\d{4})/)||[0,2005])[1]<2005){e.Connection="close"}}if(typeof this.options.requestHeaders=="object"){var c=this.options.requestHeaders;if(Object.isFunction(c.push)){for(var b=0,d=c.length;b<d;b+=2){e[c[b]]=c[b+1]}}else{$H(c).each(function(f){e[f.key]=f.value})}}for(var a in e){this.transport.setRequestHeader(a,e[a])}},success:function(){var a=this.getStatus();return !a||(a>=200&&a<300)},getStatus:function(){try{return this.transport.status||0}catch(a){return 0}},respondToReadyState:function(a){var c=Ajax.Request.Events[a],b=new Ajax.Response(this);if(c=="Complete"){try{this._complete=true;(this.options["on"+b.status]||this.options["on"+(this.success()?"Success":"Failure")]||Prototype.emptyFunction)(b,b.headerJSON)}catch(d){this.dispatchException(d)}var f=b.getHeader("Content-type");if(this.options.evalJS=="force"||(this.options.evalJS&&this.isSameOrigin()&&f&&f.match(/^\s*(text|application)\/(x-)?(java|ecma)script(;.*)?\s*$/i))){this.evalResponse()}}try{(this.options["on"+c]||Prototype.emptyFunction)(b,b.headerJSON);Ajax.Responders.dispatch("on"+c,this,b,b.headerJSON)}catch(d){this.dispatchException(d)}if(c=="Complete"){this.transport.onreadystatechange=Prototype.emptyFunction}},isSameOrigin:function(){var a=this.url.match(/^\s*https?:\/\/[^\/]*/);return !a||(a[0]=="#{protocol}//#{domain}#{port}".interpolate({protocol:location.protocol,domain:document.domain,port:location.port?":"+location.port:""}))},getHeader:function(a){try{return this.transport.getResponseHeader(a)||null}catch(b){return null}},evalResponse:function(){try{return eval((this.transport.responseText||"").unfilterJSON())}catch(e){this.dispatchException(e)}},dispatchException:function(a){(this.options.onException||Prototype.emptyFunction)(this,a);Ajax.Responders.dispatch("onException",this,a)}});Ajax.Request.Events=["Uninitialized","Loading","Loaded","Interactive","Complete"];Ajax.Response=Class.create({initialize:function(c){this.request=c;var d=this.transport=c.transport,a=this.readyState=d.readyState;if((a>2&&!Prototype.Browser.IE)||a==4){this.status=this.getStatus();this.statusText=this.getStatusText();this.responseText=String.interpret(d.responseText);this.headerJSON=this._getHeaderJSON()}if(a==4){var b=d.responseXML;this.responseXML=Object.isUndefined(b)?null:b;this.responseJSON=this._getResponseJSON()}},status:0,statusText:"",getStatus:Ajax.Request.prototype.getStatus,getStatusText:function(){try{return this.transport.statusText||""}catch(a){return""}},getHeader:Ajax.Request.prototype.getHeader,getAllHeaders:function(){try{return this.getAllResponseHeaders()}catch(a){return null}},getResponseHeader:function(a){return this.transport.getResponseHeader(a)},getAllResponseHeaders:function(){return this.transport.getAllResponseHeaders()},_getHeaderJSON:function(){var a=this.getHeader("X-JSON");if(!a){return null}a=decodeURIComponent(escape(a));try{return a.evalJSON(this.request.options.sanitizeJSON||!this.request.isSameOrigin())}catch(b){this.request.dispatchException(b)}},_getResponseJSON:function(){var a=this.request.options;if(!a.evalJSON||(a.evalJSON!="force"&&!(this.getHeader("Content-type")||"").include("application/json"))||this.responseText.blank()){return null}try{return this.responseText.evalJSON(a.sanitizeJSON||!this.request.isSameOrigin())}catch(b){this.request.dispatchException(b)}}});Ajax.Updater=Class.create(Ajax.Request,{initialize:function($super,a,c,b){this.container={success:(a.success||a),failure:(a.failure||(a.success?null:a))};b=Object.clone(b);var d=b.onComplete;b.onComplete=(function(e,f){this.updateContent(e.responseText);if(Object.isFunction(d)){d(e,f)}}).bind(this);$super(c,b)},updateContent:function(d){var c=this.container[this.success()?"success":"failure"],a=this.options;if(!a.evalScripts){d=d.stripScripts()}if(c=$(c)){if(a.insertion){if(Object.isString(a.insertion)){var b={};b[a.insertion]=d;c.insert(b)}else{a.insertion(c,d)}}else{c.update(d)}}}});Ajax.PeriodicalUpdater=Class.create(Ajax.Base,{initialize:function($super,a,c,b){$super(b);this.onComplete=this.options.onComplete;this.frequency=(this.options.frequency||2);this.decay=(this.options.decay||1);this.updater={};this.container=a;this.url=c;this.start()},start:function(){this.options.onComplete=this.updateComplete.bind(this);this.onTimerEvent()},stop:function(){this.updater.options.onComplete=undefined;clearTimeout(this.timer);(this.onComplete||Prototype.emptyFunction).apply(this,arguments)},updateComplete:function(a){if(this.options.decay){this.decay=(a.responseText==this.lastText?this.decay*this.options.decay:1);this.lastText=a.responseText}this.timer=this.onTimerEvent.bind(this).delay(this.decay*this.frequency)},onTimerEvent:function(){this.updater=new Ajax.Updater(this.container,this.url,this.options)}});function $(b){if(arguments.length>1){for(var a=0,d=[],c=arguments.length;a<c;a++){d.push($(arguments[a]))}return d}if(Object.isString(b)){b=document.getElementById(b)}return Element.extend(b)}if(Prototype.BrowserFeatures.XPath){document._getElementsByXPath=function(f,a){var c=[];var e=document.evaluate(f,$(a)||document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);for(var b=0,d=e.snapshotLength;b<d;b++){c.push(Element.extend(e.snapshotItem(b)))}return c}}if(!window.Node){var Node={}}if(!Node.ELEMENT_NODE){Object.extend(Node,{ELEMENT_NODE:1,ATTRIBUTE_NODE:2,TEXT_NODE:3,CDATA_SECTION_NODE:4,ENTITY_REFERENCE_NODE:5,ENTITY_NODE:6,PROCESSING_INSTRUCTION_NODE:7,COMMENT_NODE:8,DOCUMENT_NODE:9,DOCUMENT_TYPE_NODE:10,DOCUMENT_FRAGMENT_NODE:11,NOTATION_NODE:12})}(function(){var a=this.Element;this.Element=function(d,c){c=c||{};d=d.toLowerCase();var b=Element.cache;if(Prototype.Browser.IE&&c.name){d="<"+d+' name="'+c.name+'">';delete c.name;return Element.writeAttribute(document.createElement(d),c)}if(!b[d]){b[d]=Element.extend(document.createElement(d))}return Element.writeAttribute(b[d].cloneNode(false),c)};Object.extend(this.Element,a||{})}).call(window);Element.cache={};Element.Methods={visible:function(a){return $(a).style.display!="none"},toggle:function(a){a=$(a);Element[Element.visible(a)?"hide":"show"](a);return a},hide:function(a){$(a).style.display="none";return a},show:function(a){$(a).style.display="";return a},remove:function(a){a=$(a);a.parentNode.removeChild(a);return a},update:function(a,b){a=$(a);if(b&&b.toElement){b=b.toElement()}if(Object.isElement(b)){return a.update().insert(b)}b=Object.toHTML(b);a.innerHTML=b.stripScripts();b.evalScripts.bind(b).defer();return a},replace:function(b,c){b=$(b);if(c&&c.toElement){c=c.toElement()}else{if(!Object.isElement(c)){c=Object.toHTML(c);var a=b.ownerDocument.createRange();a.selectNode(b);c.evalScripts.bind(c).defer();c=a.createContextualFragment(c.stripScripts())}}b.parentNode.replaceChild(c,b);return b},insert:function(c,e){c=$(c);if(Object.isString(e)||Object.isNumber(e)||Object.isElement(e)||(e&&(e.toElement||e.toHTML))){e={bottom:e}}var d,f,b,g;for(var a in e){d=e[a];a=a.toLowerCase();f=Element._insertionTranslations[a];if(d&&d.toElement){d=d.toElement()}if(Object.isElement(d)){f(c,d);continue}d=Object.toHTML(d);b=((a=="before"||a=="after")?c.parentNode:c).tagName.toUpperCase();g=Element._getContentFromAnonymousElement(b,d.stripScripts());if(a=="top"||a=="after"){g.reverse()}g.each(f.curry(c));d.evalScripts.bind(d).defer()}return c},wrap:function(b,c,a){b=$(b);if(Object.isElement(c)){$(c).writeAttribute(a||{})}else{if(Object.isString(c)){c=new Element(c,a)}else{c=new Element("div",c)}}if(b.parentNode){b.parentNode.replaceChild(c,b)}c.appendChild(b);return c},inspect:function(b){b=$(b);var a="<"+b.tagName.toLowerCase();$H({id:"id",className:"class"}).each(function(f){var e=f.first(),c=f.last();var d=(b[e]||"").toString();if(d){a+=" "+c+"="+d.inspect(true)}});return a+">"},recursivelyCollect:function(a,c){a=$(a);var b=[];while(a=a[c]){if(a.nodeType==1){b.push(Element.extend(a))}}return b},ancestors:function(a){return $(a).recursivelyCollect("parentNode")},descendants:function(a){return $(a).select("*")},firstDescendant:function(a){a=$(a).firstChild;while(a&&a.nodeType!=1){a=a.nextSibling}return $(a)},immediateDescendants:function(a){if(!(a=$(a).firstChild)){return[]}while(a&&a.nodeType!=1){a=a.nextSibling}if(a){return[a].concat($(a).nextSiblings())}return[]},previousSiblings:function(a){return $(a).recursivelyCollect("previousSibling")},nextSiblings:function(a){return $(a).recursivelyCollect("nextSibling")},siblings:function(a){a=$(a);return a.previousSiblings().reverse().concat(a.nextSiblings())},match:function(b,a){if(Object.isString(a)){a=new Selector(a)}return a.match($(b))},up:function(b,d,a){b=$(b);if(arguments.length==1){return $(b.parentNode)}var c=b.ancestors();return Object.isNumber(d)?c[d]:Selector.findElement(c,d,a)},down:function(b,c,a){b=$(b);if(arguments.length==1){return b.firstDescendant()}return Object.isNumber(c)?b.descendants()[c]:b.select(c)[a||0]},previous:function(b,d,a){b=$(b);if(arguments.length==1){return $(Selector.handlers.previousElementSibling(b))}var c=b.previousSiblings();return Object.isNumber(d)?c[d]:Selector.findElement(c,d,a)},next:function(c,d,b){c=$(c);if(arguments.length==1){return $(Selector.handlers.nextElementSibling(c))}var a=c.nextSiblings();return Object.isNumber(d)?a[d]:Selector.findElement(a,d,b)},select:function(){var a=$A(arguments),b=$(a.shift());return Selector.findChildElements(b,a)},adjacent:function(){var a=$A(arguments),b=$(a.shift());return Selector.findChildElements(b.parentNode,a).without(b)},identify:function(b){b=$(b);var c=b.readAttribute("id"),a=arguments.callee;if(c){return c}do{c="anonymous_element_"+a.counter++}while($(c));b.writeAttribute("id",c);return c},readAttribute:function(c,a){c=$(c);if(Prototype.Browser.IE){var b=Element._attributeTranslations.read;if(b.values[a]){return b.values[a](c,a)}if(b.names[a]){a=b.names[a]}if(a.include(":")){return(!c.attributes||!c.attributes[a])?null:c.attributes[a].value}}return c.getAttribute(a)},writeAttribute:function(e,c,f){e=$(e);var b={},d=Element._attributeTranslations.write;if(typeof c=="object"){b=c}else{b[c]=Object.isUndefined(f)?true:f}for(var a in b){c=d.names[a]||a;f=b[a];if(d.values[a]){c=d.values[a](e,f)}if(f===false||f===null){e.removeAttribute(c)}else{if(f===true){e.setAttribute(c,c)}else{e.setAttribute(c,f)}}}return e},getHeight:function(a){return $(a).getDimensions().height},getWidth:function(a){return $(a).getDimensions().width},classNames:function(a){return new Element.ClassNames(a)},hasClassName:function(a,b){if(!(a=$(a))){return}var c=a.className;return(c.length>0&&(c==b||new RegExp("(^|\\s)"+b+"(\\s|$)").test(c)))},addClassName:function(a,b){if(!(a=$(a))){return}if(!a.hasClassName(b)){a.className+=(a.className?" ":"")+b}return a},removeClassName:function(a,b){if(!(a=$(a))){return}a.className=a.className.replace(new RegExp("(^|\\s+)"+b+"(\\s+|$)")," ").strip();return a},toggleClassName:function(a,b){if(!(a=$(a))){return}return a[a.hasClassName(b)?"removeClassName":"addClassName"](b)},cleanWhitespace:function(b){b=$(b);var c=b.firstChild;while(c){var a=c.nextSibling;if(c.nodeType==3&&!/\S/.test(c.nodeValue)){b.removeChild(c)}c=a}return b},empty:function(a){return $(a).innerHTML.blank()},descendantOf:function(f,d){f=$(f),d=$(d);var h=d;if(f.compareDocumentPosition){return(f.compareDocumentPosition(d)&8)===8}if(f.sourceIndex&&!Prototype.Browser.Opera){var g=f.sourceIndex,c=d.sourceIndex,b=d.nextSibling;if(!b){do{d=d.parentNode}while(!(b=d.nextSibling)&&d.parentNode)}if(b&&b.sourceIndex){return(g>c&&g<b.sourceIndex)}}while(f=f.parentNode){if(f==h){return true}}return false},scrollTo:function(a){a=$(a);var b=a.cumulativeOffset();window.scrollTo(b[0],b[1]);return a},getStyle:function(b,c){b=$(b);c=c=="float"?"cssFloat":c.camelize();var d=b.style[c];if(!d){var a=document.defaultView.getComputedStyle(b,null);d=a?a[c]:null}if(c=="opacity"){return d?parseFloat(d):1}return d=="auto"?null:d},getOpacity:function(a){return $(a).getStyle("opacity")},setStyle:function(b,c){b=$(b);var e=b.style,a;if(Object.isString(c)){b.style.cssText+=";"+c;return c.include("opacity")?b.setOpacity(c.match(/opacity:\s*(\d?\.?\d*)/)[1]):b}for(var d in c){if(d=="opacity"){b.setOpacity(c[d])}else{e[(d=="float"||d=="cssFloat")?(Object.isUndefined(e.styleFloat)?"cssFloat":"styleFloat"):d]=c[d]}}return b},setOpacity:function(a,b){a=$(a);a.style.opacity=(b==1||b==="")?"":(b<0.00001)?0:b;return a},getDimensions:function(c){c=$(c);var g=$(c).getStyle("display");if(g!="none"&&g!=null){return{width:c.offsetWidth,height:c.offsetHeight}}var b=c.style;var f=b.visibility;var d=b.position;var a=b.display;b.visibility="hidden";b.position="absolute";b.display="block";var h=c.clientWidth;var e=c.clientHeight;b.display=a;b.position=d;b.visibility=f;return{width:h,height:e}},makePositioned:function(a){a=$(a);var b=Element.getStyle(a,"position");if(b=="static"||!b){a._madePositioned=true;a.style.position="relative";if(window.opera){a.style.top=0;a.style.left=0}}return a},undoPositioned:function(a){a=$(a);if(a._madePositioned){a._madePositioned=undefined;a.style.position=a.style.top=a.style.left=a.style.bottom=a.style.right=""}return a},makeClipping:function(a){a=$(a);if(a._overflow){return a}a._overflow=Element.getStyle(a,"overflow")||"auto";if(a._overflow!=="hidden"){a.style.overflow="hidden"}return a},undoClipping:function(a){a=$(a);if(!a._overflow){return a}a.style.overflow=a._overflow=="auto"?"":a._overflow;a._overflow=null;return a},cumulativeOffset:function(b){var a=0,c=0;do{a+=b.offsetTop||0;c+=b.offsetLeft||0;b=b.offsetParent}while(b);return Element._returnOffset(c,a)},positionedOffset:function(b){var a=0,d=0;do{a+=b.offsetTop||0;d+=b.offsetLeft||0;b=b.offsetParent;if(b){if(b.tagName=="BODY"){break}var c=Element.getStyle(b,"position");if(c!=="static"){break}}}while(b);return Element._returnOffset(d,a)},absolutize:function(b){b=$(b);if(b.getStyle("position")=="absolute"){return}var d=b.positionedOffset();var f=d[1];var e=d[0];var c=b.clientWidth;var a=b.clientHeight;b._originalLeft=e-parseFloat(b.style.left||0);b._originalTop=f-parseFloat(b.style.top||0);b._originalWidth=b.style.width;b._originalHeight=b.style.height;b.style.position="absolute";b.style.top=f+"px";b.style.left=e+"px";b.style.width=c+"px";b.style.height=a+"px";return b},relativize:function(a){a=$(a);if(a.getStyle("position")=="relative"){return}a.style.position="relative";var c=parseFloat(a.style.top||0)-(a._originalTop||0);var b=parseFloat(a.style.left||0)-(a._originalLeft||0);a.style.top=c+"px";a.style.left=b+"px";a.style.height=a._originalHeight;a.style.width=a._originalWidth;return a},cumulativeScrollOffset:function(b){var a=0,c=0;do{a+=b.scrollTop||0;c+=b.scrollLeft||0;b=b.parentNode}while(b);return Element._returnOffset(c,a)},getOffsetParent:function(a){if(a.offsetParent){return $(a.offsetParent)}if(a==document.body){return $(a)}while((a=a.parentNode)&&a!=document.body){if(Element.getStyle(a,"position")!="static"){return $(a)}}return $(document.body)},viewportOffset:function(d){var a=0,c=0;var b=d;do{a+=b.offsetTop||0;c+=b.offsetLeft||0;if(b.offsetParent==document.body&&Element.getStyle(b,"position")=="absolute"){break}}while(b=b.offsetParent);b=d;do{if(!Prototype.Browser.Opera||b.tagName=="BODY"){a-=b.scrollTop||0;c-=b.scrollLeft||0}}while(b=b.parentNode);return Element._returnOffset(c,a)},clonePosition:function(b,d){var a=Object.extend({setLeft:true,setTop:true,setWidth:true,setHeight:true,offsetTop:0,offsetLeft:0},arguments[2]||{});d=$(d);var e=d.viewportOffset();b=$(b);var f=[0,0];var c=null;if(Element.getStyle(b,"position")=="absolute"){c=b.getOffsetParent();f=c.viewportOffset()}if(c==document.body){f[0]-=document.body.offsetLeft;f[1]-=document.body.offsetTop}if(a.setLeft){b.style.left=(e[0]-f[0]+a.offsetLeft)+"px"}if(a.setTop){b.style.top=(e[1]-f[1]+a.offsetTop)+"px"}if(a.setWidth){b.style.width=d.offsetWidth+"px"}if(a.setHeight){b.style.height=d.offsetHeight+"px"}return b}};Element.Methods.identify.counter=1;Object.extend(Element.Methods,{getElementsBySelector:Element.Methods.select,childElements:Element.Methods.immediateDescendants});Element._attributeTranslations={write:{names:{className:"class",htmlFor:"for"},values:{}}};if(Prototype.Browser.Opera){Element.Methods.getStyle=Element.Methods.getStyle.wrap(function(d,b,c){switch(c){case"left":case"top":case"right":case"bottom":if(d(b,"position")==="static"){return null}case"height":case"width":if(!Element.visible(b)){return null}var e=parseInt(d(b,c),10);if(e!==b["offset"+c.capitalize()]){return e+"px"}var a;if(c==="height"){a=["border-top-width","padding-top","padding-bottom","border-bottom-width"]}else{a=["border-left-width","padding-left","padding-right","border-right-width"]}return a.inject(e,function(f,g){var h=d(b,g);return h===null?f:f-parseInt(h,10)})+"px";default:return d(b,c)}});Element.Methods.readAttribute=Element.Methods.readAttribute.wrap(function(c,a,b){if(b==="title"){return a.title}return c(a,b)})}else{if(Prototype.Browser.IE){Element.Methods.getOffsetParent=Element.Methods.getOffsetParent.wrap(function(c,b){b=$(b);var a=b.getStyle("position");if(a!=="static"){return c(b)}b.setStyle({position:"relative"});var d=c(b);b.setStyle({position:a});return d});$w("positionedOffset viewportOffset").each(function(a){Element.Methods[a]=Element.Methods[a].wrap(function(e,c){c=$(c);var b=c.getStyle("position");if(b!=="static"){return e(c)}var d=c.getOffsetParent();if(d&&d.getStyle("position")==="fixed"){d.setStyle({zoom:1})}c.setStyle({position:"relative"});var f=e(c);c.setStyle({position:b});return f})});Element.Methods.getStyle=function(a,b){a=$(a);b=(b=="float"||b=="cssFloat")?"styleFloat":b.camelize();var c=a.style[b];if(!c&&a.currentStyle){c=a.currentStyle[b]}if(b=="opacity"){if(c=(a.getStyle("filter")||"").match(/alpha\(opacity=(.*)\)/)){if(c[1]){return parseFloat(c[1])/100}}return 1}if(c=="auto"){if((b=="width"||b=="height")&&(a.getStyle("display")!="none")){return a["offset"+b.capitalize()]+"px"}return null}return c};Element.Methods.setOpacity=function(b,e){function f(g){return g.replace(/alpha\([^\)]*\)/gi,"")}b=$(b);var a=b.currentStyle;if((a&&!a.hasLayout)||(!a&&b.style.zoom=="normal")){b.style.zoom=1}var d=b.getStyle("filter"),c=b.style;if(e==1||e===""){(d=f(d))?c.filter=d:c.removeAttribute("filter");return b}else{if(e<0.00001){e=0}}c.filter=f(d)+"alpha(opacity="+(e*100)+")";return b};Element._attributeTranslations={read:{names:{"class":"className","for":"htmlFor"},values:{_getAttr:function(a,b){return a.getAttribute(b,2)},_getAttrNode:function(a,c){var b=a.getAttributeNode(c);return b?b.value:""},_getEv:function(a,b){b=a.getAttribute(b);return b?b.toString().slice(23,-2):null},_flag:function(a,b){return $(a).hasAttribute(b)?b:null},style:function(a){return a.style.cssText.toLowerCase()},title:function(a){return a.title}}}};Element._attributeTranslations.write={names:Object.extend({cellpadding:"cellPadding",cellspacing:"cellSpacing"},Element._attributeTranslations.read.names),values:{checked:function(a,b){a.checked=!!b},style:function(a,b){a.style.cssText=b?b:""}}};Element._attributeTranslations.has={};$w("colSpan rowSpan vAlign dateTime accessKey tabIndex encType maxLength readOnly longDesc").each(function(a){Element._attributeTranslations.write.names[a.toLowerCase()]=a;Element._attributeTranslations.has[a.toLowerCase()]=a});(function(a){Object.extend(a,{href:a._getAttr,src:a._getAttr,type:a._getAttr,action:a._getAttrNode,disabled:a._flag,checked:a._flag,readonly:a._flag,multiple:a._flag,onload:a._getEv,onunload:a._getEv,onclick:a._getEv,ondblclick:a._getEv,onmousedown:a._getEv,onmouseup:a._getEv,onmouseover:a._getEv,onmousemove:a._getEv,onmouseout:a._getEv,onfocus:a._getEv,onblur:a._getEv,onkeypress:a._getEv,onkeydown:a._getEv,onkeyup:a._getEv,onsubmit:a._getEv,onreset:a._getEv,onselect:a._getEv,onchange:a._getEv})})(Element._attributeTranslations.read.values)}else{if(Prototype.Browser.Gecko&&/rv:1\.8\.0/.test(navigator.userAgent)){Element.Methods.setOpacity=function(a,b){a=$(a);a.style.opacity=(b==1)?0.999999:(b==="")?"":(b<0.00001)?0:b;return a}}else{if(Prototype.Browser.WebKit){Element.Methods.setOpacity=function(a,b){a=$(a);a.style.opacity=(b==1||b==="")?"":(b<0.00001)?0:b;if(b==1){if(a.tagName=="IMG"&&a.width){a.width++;a.width--}else{try{var d=document.createTextNode(" ");a.appendChild(d);a.removeChild(d)}catch(c){}}}return a};Element.Methods.cumulativeOffset=function(b){var a=0,c=0;do{a+=b.offsetTop||0;c+=b.offsetLeft||0;if(b.offsetParent==document.body){if(Element.getStyle(b,"position")=="absolute"){break}}b=b.offsetParent}while(b);return Element._returnOffset(c,a)}}}}}if(Prototype.Browser.IE||Prototype.Browser.Opera){Element.Methods.update=function(b,c){b=$(b);if(c&&c.toElement){c=c.toElement()}if(Object.isElement(c)){return b.update().insert(c)}c=Object.toHTML(c);var a=b.tagName.toUpperCase();if(a in Element._insertionTranslations.tags){$A(b.childNodes).each(function(d){b.removeChild(d)});Element._getContentFromAnonymousElement(a,c.stripScripts()).each(function(d){b.appendChild(d)})}else{b.innerHTML=c.stripScripts()}c.evalScripts.bind(c).defer();return b}}if("outerHTML" in document.createElement("div")){Element.Methods.replace=function(c,e){c=$(c);if(e&&e.toElement){e=e.toElement()}if(Object.isElement(e)){c.parentNode.replaceChild(e,c);return c}e=Object.toHTML(e);var d=c.parentNode,b=d.tagName.toUpperCase();if(Element._insertionTranslations.tags[b]){var f=c.next();var a=Element._getContentFromAnonymousElement(b,e.stripScripts());d.removeChild(c);if(f){a.each(function(g){d.insertBefore(g,f)})}else{a.each(function(g){d.appendChild(g)})}}else{c.outerHTML=e.stripScripts()}e.evalScripts.bind(e).defer();return c}}Element._returnOffset=function(b,c){var a=[b,c];a.left=b;a.top=c;return a};Element._getContentFromAnonymousElement=function(c,b){var d=new Element("div"),a=Element._insertionTranslations.tags[c];if(a){d.innerHTML=a[0]+b+a[1];a[2].times(function(){d=d.firstChild})}else{d.innerHTML=b}return $A(d.childNodes)};Element._insertionTranslations={before:function(a,b){a.parentNode.insertBefore(b,a)},top:function(a,b){a.insertBefore(b,a.firstChild)},bottom:function(a,b){a.appendChild(b)},after:function(a,b){a.parentNode.insertBefore(b,a.nextSibling)},tags:{TABLE:["<table>","</table>",1],TBODY:["<table><tbody>","</tbody></table>",2],TR:["<table><tbody><tr>","</tr></tbody></table>",3],TD:["<table><tbody><tr><td>","</td></tr></tbody></table>",4],SELECT:["<select>","</select>",1]}};(function(){Object.extend(this.tags,{THEAD:this.tags.TBODY,TFOOT:this.tags.TBODY,TH:this.tags.TD})}).call(Element._insertionTranslations);Element.Methods.Simulated={hasAttribute:function(a,c){c=Element._attributeTranslations.has[c]||c;var b=$(a).getAttributeNode(c);return b&&b.specified}};Element.Methods.ByTag={};Object.extend(Element,Element.Methods);if(!Prototype.BrowserFeatures.ElementExtensions&&document.createElement("div").__proto__){window.HTMLElement={};window.HTMLElement.prototype=document.createElement("div").__proto__;Prototype.BrowserFeatures.ElementExtensions=true}Element.extend=(function(){if(Prototype.BrowserFeatures.SpecificElementExtensions){return Prototype.K}var a={},b=Element.Methods.ByTag;var c=Object.extend(function(f){if(!f||f._extendedByPrototype||f.nodeType!=1||f==window){return f}var d=Object.clone(a),e=f.tagName,h,g;if(b[e]){Object.extend(d,b[e])}for(h in d){g=d[h];if(Object.isFunction(g)&&!(h in f)){f[h]=g.methodize()}}f._extendedByPrototype=Prototype.emptyFunction;return f},{refresh:function(){if(!Prototype.BrowserFeatures.ElementExtensions){Object.extend(a,Element.Methods);Object.extend(a,Element.Methods.Simulated)}}});c.refresh();return c})();Element.hasAttribute=function(a,b){if(a.hasAttribute){return a.hasAttribute(b)}return Element.Methods.Simulated.hasAttribute(a,b)};Element.addMethods=function(c){var h=Prototype.BrowserFeatures,d=Element.Methods.ByTag;if(!c){Object.extend(Form,Form.Methods);Object.extend(Form.Element,Form.Element.Methods);Object.extend(Element.Methods.ByTag,{FORM:Object.clone(Form.Methods),INPUT:Object.clone(Form.Element.Methods),SELECT:Object.clone(Form.Element.Methods),TEXTAREA:Object.clone(Form.Element.Methods)})}if(arguments.length==2){var b=c;c=arguments[1]}if(!b){Object.extend(Element.Methods,c||{})}else{if(Object.isArray(b)){b.each(g)}else{g(b)}}function g(j){j=j.toUpperCase();if(!Element.Methods.ByTag[j]){Element.Methods.ByTag[j]={}}Object.extend(Element.Methods.ByTag[j],c)}function a(l,k,j){j=j||false;for(var n in l){var m=l[n];if(!Object.isFunction(m)){continue}if(!j||!(n in k)){k[n]=m.methodize()}}}function e(l){var j;var k={OPTGROUP:"OptGroup",TEXTAREA:"TextArea",P:"Paragraph",FIELDSET:"FieldSet",UL:"UList",OL:"OList",DL:"DList",DIR:"Directory",H1:"Heading",H2:"Heading",H3:"Heading",H4:"Heading",H5:"Heading",H6:"Heading",Q:"Quote",INS:"Mod",DEL:"Mod",A:"Anchor",IMG:"Image",CAPTION:"TableCaption",COL:"TableCol",COLGROUP:"TableCol",THEAD:"TableSection",TFOOT:"TableSection",TBODY:"TableSection",TR:"TableRow",TH:"TableCell",TD:"TableCell",FRAMESET:"FrameSet",IFRAME:"IFrame"};if(k[l]){j="HTML"+k[l]+"Element"}if(window[j]){return window[j]}j="HTML"+l+"Element";if(window[j]){return window[j]}j="HTML"+l.capitalize()+"Element";if(window[j]){return window[j]}window[j]={};window[j].prototype=document.createElement(l).__proto__;return window[j]}if(h.ElementExtensions){a(Element.Methods,HTMLElement.prototype);a(Element.Methods.Simulated,HTMLElement.prototype,true)}if(h.SpecificElementExtensions){for(var i in Element.Methods.ByTag){var f=e(i);if(Object.isUndefined(f)){continue}a(d[i],f.prototype)}}Object.extend(Element,Element.Methods);delete Element.ByTag;if(Element.extend.refresh){Element.extend.refresh()}Element.cache={}};document.viewport={getDimensions:function(){var a={};var b=Prototype.Browser;$w("width height").each(function(e){var c=e.capitalize();a[e]=(b.WebKit&&!document.evaluate)?self["inner"+c]:(b.Opera)?document.body["client"+c]:document.documentElement["client"+c]});return a},getWidth:function(){return this.getDimensions().width},getHeight:function(){return this.getDimensions().height},getScrollOffsets:function(){return Element._returnOffset(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft,window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop)}};var Selector=Class.create({initialize:function(a){this.expression=a.strip();this.compileMatcher()},shouldUseXPath:function(){if(!Prototype.BrowserFeatures.XPath){return false}var a=this.expression;if(Prototype.Browser.WebKit&&(a.include("-of-type")||a.include(":empty"))){return false}if((/(\[[\w-]*?:|:checked)/).test(this.expression)){return false}return true},compileMatcher:function(){if(this.shouldUseXPath()){return this.compileXPathMatcher()}var e=this.expression,ps=Selector.patterns,h=Selector.handlers,c=Selector.criteria,le,p,m;if(Selector._cache[e]){this.matcher=Selector._cache[e];return}this.matcher=["this.matcher = function(root) {","var r = root, h = Selector.handlers, c = false, n;"];while(e&&le!=e&&(/\S/).test(e)){le=e;for(var i in ps){p=ps[i];if(m=e.match(p)){this.matcher.push(Object.isFunction(c[i])?c[i](m):new Template(c[i]).evaluate(m));e=e.replace(m[0],"");break}}}this.matcher.push("return h.unique(n);\n}");eval(this.matcher.join("\n"));Selector._cache[this.expression]=this.matcher},compileXPathMatcher:function(){var f=this.expression,g=Selector.patterns,b=Selector.xpath,d,a;if(Selector._cache[f]){this.xpath=Selector._cache[f];return}this.matcher=[".//*"];while(f&&d!=f&&(/\S/).test(f)){d=f;for(var c in g){if(a=f.match(g[c])){this.matcher.push(Object.isFunction(b[c])?b[c](a):new Template(b[c]).evaluate(a));f=f.replace(a[0],"");break}}}this.xpath=this.matcher.join("");Selector._cache[this.expression]=this.xpath},findElements:function(a){a=a||document;if(this.xpath){return document._getElementsByXPath(this.xpath,a)}return this.matcher(a)},match:function(j){this.tokens=[];var o=this.expression,a=Selector.patterns,f=Selector.assertions;var b,d,g;while(o&&b!==o&&(/\S/).test(o)){b=o;for(var k in a){d=a[k];if(g=o.match(d)){if(f[k]){this.tokens.push([k,Object.clone(g)]);o=o.replace(g[0],"")}else{return this.findElements(document).include(j)}}}}var n=true,c,l;for(var k=0,h;h=this.tokens[k];k++){c=h[0],l=h[1];if(!Selector.assertions[c](j,l)){n=false;break}}return n},toString:function(){return this.expression},inspect:function(){return"#<Selector:"+this.expression.inspect()+">"}});Object.extend(Selector,{_cache:{},xpath:{descendant:"//*",child:"/*",adjacent:"/following-sibling::*[1]",laterSibling:"/following-sibling::*",tagName:function(a){if(a[1]=="*"){return""}return"[local-name()='"+a[1].toLowerCase()+"' or local-name()='"+a[1].toUpperCase()+"']"},className:"[contains(concat(' ', @class, ' '), ' #{1} ')]",id:"[@id='#{1}']",attrPresence:function(a){a[1]=a[1].toLowerCase();return new Template("[@#{1}]").evaluate(a)},attr:function(a){a[1]=a[1].toLowerCase();a[3]=a[5]||a[6];return new Template(Selector.xpath.operators[a[2]]).evaluate(a)},pseudo:function(a){var b=Selector.xpath.pseudos[a[1]];if(!b){return""}if(Object.isFunction(b)){return b(a)}return new Template(Selector.xpath.pseudos[a[1]]).evaluate(a)},operators:{"=":"[@#{1}='#{3}']","!=":"[@#{1}!='#{3}']","^=":"[starts-with(@#{1}, '#{3}')]","$=":"[substring(@#{1}, (string-length(@#{1}) - string-length('#{3}') + 1))='#{3}']","*=":"[contains(@#{1}, '#{3}')]","~=":"[contains(concat(' ', @#{1}, ' '), ' #{3} ')]","|=":"[contains(concat('-', @#{1}, '-'), '-#{3}-')]"},pseudos:{"first-child":"[not(preceding-sibling::*)]","last-child":"[not(following-sibling::*)]","only-child":"[not(preceding-sibling::* or following-sibling::*)]",empty:"[count(*) = 0 and (count(text()) = 0 or translate(text(), ' \t\r\n', '') = '')]",checked:"[@checked]",disabled:"[@disabled]",enabled:"[not(@disabled)]",not:function(b){var j=b[6],h=Selector.patterns,a=Selector.xpath,f,c;var g=[];while(j&&f!=j&&(/\S/).test(j)){f=j;for(var d in h){if(b=j.match(h[d])){c=Object.isFunction(a[d])?a[d](b):new Template(a[d]).evaluate(b);g.push("("+c.substring(1,c.length-1)+")");j=j.replace(b[0],"");break}}}return"[not("+g.join(" and ")+")]"},"nth-child":function(a){return Selector.xpath.pseudos.nth("(count(./preceding-sibling::*) + 1) ",a)},"nth-last-child":function(a){return Selector.xpath.pseudos.nth("(count(./following-sibling::*) + 1) ",a)},"nth-of-type":function(a){return Selector.xpath.pseudos.nth("position() ",a)},"nth-last-of-type":function(a){return Selector.xpath.pseudos.nth("(last() + 1 - position()) ",a)},"first-of-type":function(a){a[6]="1";return Selector.xpath.pseudos["nth-of-type"](a)},"last-of-type":function(a){a[6]="1";return Selector.xpath.pseudos["nth-last-of-type"](a)},"only-of-type":function(a){var b=Selector.xpath.pseudos;return b["first-of-type"](a)+b["last-of-type"](a)},nth:function(g,e){var h,i=e[6],d;if(i=="even"){i="2n+0"}if(i=="odd"){i="2n+1"}if(h=i.match(/^(\d+)$/)){return"["+g+"= "+h[1]+"]"}if(h=i.match(/^(-?\d*)?n(([+-])(\d+))?/)){if(h[1]=="-"){h[1]=-1}var f=h[1]?Number(h[1]):1;var c=h[2]?Number(h[2]):0;d="[((#{fragment} - #{b}) mod #{a} = 0) and ((#{fragment} - #{b}) div #{a} >= 0)]";return new Template(d).evaluate({fragment:g,a:f,b:c})}}}},criteria:{tagName:'n = h.tagName(n, r, "#{1}", c);      c = false;',className:'n = h.className(n, r, "#{1}", c);    c = false;',id:'n = h.id(n, r, "#{1}", c);           c = false;',attrPresence:'n = h.attrPresence(n, r, "#{1}", c); c = false;',attr:function(a){a[3]=(a[5]||a[6]);return new Template('n = h.attr(n, r, "#{1}", "#{3}", "#{2}", c); c = false;').evaluate(a)},pseudo:function(a){if(a[6]){a[6]=a[6].replace(/"/g,'\\"')}return new Template('n = h.pseudo(n, "#{1}", "#{6}", r, c); c = false;').evaluate(a)},descendant:'c = "descendant";',child:'c = "child";',adjacent:'c = "adjacent";',laterSibling:'c = "laterSibling";'},patterns:{laterSibling:/^\s*~\s*/,child:/^\s*>\s*/,adjacent:/^\s*\+\s*/,descendant:/^\s/,tagName:/^\s*(\*|[\w\-]+)(\b|$)?/,id:/^#([\w\-\*]+)(\b|$)/,className:/^\.([\w\-\*]+)(\b|$)/,pseudo:/^:((first|last|nth|nth-last|only)(-child|-of-type)|empty|checked|(en|dis)abled|not)(\((.*?)\))?(\b|$|(?=\s|[:+~>]))/,attrPresence:/^\[([\w]+)\]/,attr:/\[((?:[\w-]*:)?[\w-]+)\s*(?:([!^$*~|]?=)\s*((['"])([^\4]*?)\4|([^'"][^\]]*?)))?\]/},assertions:{tagName:function(a,b){return b[1].toUpperCase()==a.tagName.toUpperCase()},className:function(a,b){return Element.hasClassName(a,b[1])},id:function(a,b){return a.id===b[1]},attrPresence:function(a,b){return Element.hasAttribute(a,b[1])},attr:function(b,c){var a=Element.readAttribute(b,c[1]);return a&&Selector.operators[c[2]](a,c[5]||c[6])}},handlers:{concat:function(d,c){for(var e=0,f;f=c[e];e++){d.push(f)}return d},mark:function(a){var d=Prototype.emptyFunction;for(var b=0,c;c=a[b];b++){c._countedByPrototype=d}return a},unmark:function(a){for(var b=0,c;c=a[b];b++){c._countedByPrototype=undefined}return a},index:function(a,d,g){a._countedByPrototype=Prototype.emptyFunction;if(d){for(var b=a.childNodes,e=b.length-1,c=1;e>=0;e--){var f=b[e];if(f.nodeType==1&&(!g||f._countedByPrototype)){f.nodeIndex=c++}}}else{for(var e=0,c=1,b=a.childNodes;f=b[e];e++){if(f.nodeType==1&&(!g||f._countedByPrototype)){f.nodeIndex=c++}}}},unique:function(b){if(b.length==0){return b}var d=[],e;for(var c=0,a=b.length;c<a;c++){if(!(e=b[c])._countedByPrototype){e._countedByPrototype=Prototype.emptyFunction;d.push(Element.extend(e))}}return Selector.handlers.unmark(d)},descendant:function(a){var d=Selector.handlers;for(var c=0,b=[],e;e=a[c];c++){d.concat(b,e.getElementsByTagName("*"))}return b},child:function(a){var e=Selector.handlers;for(var d=0,c=[],f;f=a[d];d++){for(var b=0,g;g=f.childNodes[b];b++){if(g.nodeType==1&&g.tagName!="!"){c.push(g)}}}return c},adjacent:function(a){for(var c=0,b=[],e;e=a[c];c++){var d=this.nextElementSibling(e);if(d){b.push(d)}}return b},laterSibling:function(a){var d=Selector.handlers;for(var c=0,b=[],e;e=a[c];c++){d.concat(b,Element.nextSiblings(e))}return b},nextElementSibling:function(a){while(a=a.nextSibling){if(a.nodeType==1){return a}}return null},previousElementSibling:function(a){while(a=a.previousSibling){if(a.nodeType==1){return a}}return null},tagName:function(a,j,c,b){var k=c.toUpperCase();var e=[],g=Selector.handlers;if(a){if(b){if(b=="descendant"){for(var f=0,d;d=a[f];f++){g.concat(e,d.getElementsByTagName(c))}return e}else{a=this[b](a)}if(c=="*"){return a}}for(var f=0,d;d=a[f];f++){if(d.tagName.toUpperCase()===k){e.push(d)}}return e}else{return j.getElementsByTagName(c)}},id:function(b,a,j,f){var g=$(j),d=Selector.handlers;if(!g){return[]}if(!b&&a==document){return[g]}if(b){if(f){if(f=="child"){for(var c=0,e;e=b[c];c++){if(g.parentNode==e){return[g]}}}else{if(f=="descendant"){for(var c=0,e;e=b[c];c++){if(Element.descendantOf(g,e)){return[g]}}}else{if(f=="adjacent"){for(var c=0,e;e=b[c];c++){if(Selector.handlers.previousElementSibling(g)==e){return[g]}}}else{b=d[f](b)}}}}for(var c=0,e;e=b[c];c++){if(e==g){return[g]}}return[]}return(g&&Element.descendantOf(g,a))?[g]:[]},className:function(b,a,c,d){if(b&&d){b=this[d](b)}return Selector.handlers.byClassName(b,a,c)},byClassName:function(c,b,f){if(!c){c=Selector.handlers.descendant([b])}var h=" "+f+" ";for(var e=0,d=[],g,a;g=c[e];e++){a=g.className;if(a.length==0){continue}if(a==f||(" "+a+" ").include(h)){d.push(g)}}return d},attrPresence:function(c,b,a,g){if(!c){c=b.getElementsByTagName("*")}if(c&&g){c=this[g](c)}var e=[];for(var d=0,f;f=c[d];d++){if(Element.hasAttribute(f,a)){e.push(f)}}return e},attr:function(a,j,h,k,c,b){if(!a){a=j.getElementsByTagName("*")}if(a&&b){a=this[b](a)}var l=Selector.operators[c],f=[];for(var e=0,d;d=a[e];e++){var g=Element.readAttribute(d,h);if(g===null){continue}if(l(g,k)){f.push(d)}}return f},pseudo:function(b,c,e,a,d){if(b&&d){b=this[d](b)}if(!b){b=a.getElementsByTagName("*")}return Selector.pseudos[c](b,e,a)}},pseudos:{"first-child":function(b,f,a){for(var d=0,c=[],e;e=b[d];d++){if(Selector.handlers.previousElementSibling(e)){continue}c.push(e)}return c},"last-child":function(b,f,a){for(var d=0,c=[],e;e=b[d];d++){if(Selector.handlers.nextElementSibling(e)){continue}c.push(e)}return c},"only-child":function(b,g,a){var e=Selector.handlers;for(var d=0,c=[],f;f=b[d];d++){if(!e.previousElementSibling(f)&&!e.nextElementSibling(f)){c.push(f)}}return c},"nth-child":function(b,c,a){return Selector.pseudos.nth(b,c,a)},"nth-last-child":function(b,c,a){return Selector.pseudos.nth(b,c,a,true)},"nth-of-type":function(b,c,a){return Selector.pseudos.nth(b,c,a,false,true)},"nth-last-of-type":function(b,c,a){return Selector.pseudos.nth(b,c,a,true,true)},"first-of-type":function(b,c,a){return Selector.pseudos.nth(b,"1",a,false,true)},"last-of-type":function(b,c,a){return Selector.pseudos.nth(b,"1",a,true,true)},"only-of-type":function(b,d,a){var c=Selector.pseudos;return c["last-of-type"](c["first-of-type"](b,d,a),d,a)},getIndices:function(d,c,e){if(d==0){return c>0?[c]:[]}return $R(1,e).inject([],function(a,b){if(0==(b-c)%d&&(b-c)/d>=0){a.push(b)}return a})},nth:function(c,s,u,r,e){if(c.length==0){return[]}if(s=="even"){s="2n+0"}if(s=="odd"){s="2n+1"}var q=Selector.handlers,p=[],d=[],g;q.mark(c);for(var o=0,f;f=c[o];o++){if(!f.parentNode._countedByPrototype){q.index(f.parentNode,r,e);d.push(f.parentNode)}}if(s.match(/^\d+$/)){s=Number(s);for(var o=0,f;f=c[o];o++){if(f.nodeIndex==s){p.push(f)}}}else{if(g=s.match(/^(-?\d*)?n(([+-])(\d+))?/)){if(g[1]=="-"){g[1]=-1}var v=g[1]?Number(g[1]):1;var t=g[2]?Number(g[2]):0;var w=Selector.pseudos.getIndices(v,t,c.length);for(var o=0,f,k=w.length;f=c[o];o++){for(var n=0;n<k;n++){if(f.nodeIndex==w[n]){p.push(f)}}}}}q.unmark(c);q.unmark(d);return p},empty:function(b,f,a){for(var d=0,c=[],e;e=b[d];d++){if(e.tagName=="!"||(e.firstChild&&!e.innerHTML.match(/^\s*$/))){continue}c.push(e)}return c},not:function(a,d,k){var g=Selector.handlers,l,c;var j=new Selector(d).findElements(k);g.mark(j);for(var f=0,e=[],b;b=a[f];f++){if(!b._countedByPrototype){e.push(b)}}g.unmark(j);return e},enabled:function(b,f,a){for(var d=0,c=[],e;e=b[d];d++){if(!e.disabled){c.push(e)}}return c},disabled:function(b,f,a){for(var d=0,c=[],e;e=b[d];d++){if(e.disabled){c.push(e)}}return c},checked:function(b,f,a){for(var d=0,c=[],e;e=b[d];d++){if(e.checked){c.push(e)}}return c}},operators:{"=":function(b,a){return b==a},"!=":function(b,a){return b!=a},"^=":function(b,a){return b.startsWith(a)},"$=":function(b,a){return b.endsWith(a)},"*=":function(b,a){return b.include(a)},"~=":function(b,a){return(" "+b+" ").include(" "+a+" ")},"|=":function(b,a){return("-"+b.toUpperCase()+"-").include("-"+a.toUpperCase()+"-")}},split:function(b){var a=[];b.scan(/(([\w#:.~>+()\s-]+|\*|\[.*?\])+)\s*(,|$)/,function(c){a.push(c[1].strip())});return a},matchElements:function(f,g){var e=$$(g),d=Selector.handlers;d.mark(e);for(var c=0,b=[],a;a=f[c];c++){if(a._countedByPrototype){b.push(a)}}d.unmark(e);return b},findElement:function(b,c,a){if(Object.isNumber(c)){a=c;c=false}return Selector.matchElements(b,c||"*")[a||0]},findChildElements:function(e,g){g=Selector.split(g.join(","));var d=[],f=Selector.handlers;for(var c=0,b=g.length,a;c<b;c++){a=new Selector(g[c].strip());f.concat(d,a.findElements(e))}return(b>1)?f.unique(d):d}});if(Prototype.Browser.IE){Object.extend(Selector.handlers,{concat:function(d,c){for(var e=0,f;f=c[e];e++){if(f.tagName!=="!"){d.push(f)}}return d},unmark:function(a){for(var b=0,c;c=a[b];b++){c.removeAttribute("_countedByPrototype")}return a}})}function $$(){return Selector.findChildElements(document,$A(arguments))}var Form={reset:function(a){$(a).reset();return a},serializeElements:function(g,b){if(typeof b!="object"){b={hash:!!b}}else{if(Object.isUndefined(b.hash)){b.hash=true}}var c,f,a=false,e=b.submit;var d=g.inject({},function(h,i){if(!i.disabled&&i.name){c=i.name;f=$(i).getValue();if(f!=null&&(i.type!="submit"||(!a&&e!==false&&(!e||c==e)&&(a=true)))){if(c in h){if(!Object.isArray(h[c])){h[c]=[h[c]]}h[c].push(f)}else{h[c]=f}}}return h});return b.hash?d:Object.toQueryString(d)}};Form.Methods={serialize:function(b,a){return Form.serializeElements(Form.getElements(b),a)},getElements:function(a){return $A($(a).getElementsByTagName("*")).inject([],function(b,c){if(Form.Element.Serializers[c.tagName.toLowerCase()]){b.push(Element.extend(c))}return b})},getInputs:function(g,c,d){g=$(g);var a=g.getElementsByTagName("input");if(!c&&!d){return $A(a).map(Element.extend)}for(var e=0,h=[],f=a.length;e<f;e++){var b=a[e];if((c&&b.type!=c)||(d&&b.name!=d)){continue}h.push(Element.extend(b))}return h},disable:function(a){a=$(a);Form.getElements(a).invoke("disable");return a},enable:function(a){a=$(a);Form.getElements(a).invoke("enable");return a},findFirstElement:function(b){var c=$(b).getElements().findAll(function(d){return"hidden"!=d.type&&!d.disabled});var a=c.findAll(function(d){return d.hasAttribute("tabIndex")&&d.tabIndex>=0}).sortBy(function(d){return d.tabIndex}).first();return a?a:c.find(function(d){return["input","select","textarea"].include(d.tagName.toLowerCase())})},focusFirstElement:function(a){a=$(a);a.findFirstElement().activate();return a},request:function(b,a){b=$(b),a=Object.clone(a||{});var d=a.parameters,c=b.readAttribute("action")||"";if(c.blank()){c=window.location.href}a.parameters=b.serialize(true);if(d){if(Object.isString(d)){d=d.toQueryParams()}Object.extend(a.parameters,d)}if(b.hasAttribute("method")&&!a.method){a.method=b.method}return new Ajax.Request(c,a)}};Form.Element={focus:function(a){$(a).focus();return a},select:function(a){$(a).select();return a}};Form.Element.Methods={serialize:function(a){a=$(a);if(!a.disabled&&a.name){var b=a.getValue();if(b!=undefined){var c={};c[a.name]=b;return Object.toQueryString(c)}}return""},getValue:function(a){a=$(a);var b=a.tagName.toLowerCase();return Form.Element.Serializers[b](a)},setValue:function(a,b){a=$(a);var c=a.tagName.toLowerCase();Form.Element.Serializers[c](a,b);return a},clear:function(a){$(a).value="";return a},present:function(a){return $(a).value!=""},activate:function(a){a=$(a);try{a.focus();if(a.select&&(a.tagName.toLowerCase()!="input"||!["button","reset","submit"].include(a.type))){a.select()}}catch(b){}return a},disable:function(a){a=$(a);a.blur();a.disabled=true;return a},enable:function(a){a=$(a);a.disabled=false;return a}};var Field=Form.Element;var $F=Form.Element.Methods.getValue;Form.Element.Serializers={input:function(a,b){switch(a.type.toLowerCase()){case"checkbox":case"radio":return Form.Element.Serializers.inputSelector(a,b);default:return Form.Element.Serializers.textarea(a,b)}},inputSelector:function(a,b){if(Object.isUndefined(b)){return a.checked?a.value:null}else{a.checked=!!b}},textarea:function(a,b){if(Object.isUndefined(b)){return a.value}else{a.value=b}},select:function(d,a){if(Object.isUndefined(a)){return this[d.type=="select-one"?"selectOne":"selectMany"](d)}else{var c,f,g=!Object.isArray(a);for(var b=0,e=d.length;b<e;b++){c=d.options[b];f=this.optionValue(c);if(g){if(f==a){c.selected=true;return}}else{c.selected=a.include(f)}}}},selectOne:function(b){var a=b.selectedIndex;return a>=0?this.optionValue(b.options[a]):null},selectMany:function(d){var a,e=d.length;if(!e){return null}for(var c=0,a=[];c<e;c++){var b=d.options[c];if(b.selected){a.push(this.optionValue(b))}}return a},optionValue:function(a){return Element.extend(a).hasAttribute("value")?a.value:a.text}};Abstract.TimedObserver=Class.create(PeriodicalExecuter,{initialize:function($super,a,b,c){$super(c,b);this.element=$(a);this.lastValue=this.getValue()},execute:function(){var a=this.getValue();if(Object.isString(this.lastValue)&&Object.isString(a)?this.lastValue!=a:String(this.lastValue)!=String(a)){this.callback(this.element,a);this.lastValue=a}}});Form.Element.Observer=Class.create(Abstract.TimedObserver,{getValue:function(){return Form.Element.getValue(this.element)}});Form.Observer=Class.create(Abstract.TimedObserver,{getValue:function(){return Form.serialize(this.element)}});Abstract.EventObserver=Class.create({initialize:function(a,b){this.element=$(a);this.callback=b;this.lastValue=this.getValue();if(this.element.tagName.toLowerCase()=="form"){this.registerFormCallbacks()}else{this.registerCallback(this.element)}},onElementEvent:function(){var a=this.getValue();if(this.lastValue!=a){this.callback(this.element,a);this.lastValue=a}},registerFormCallbacks:function(){Form.getElements(this.element).each(this.registerCallback,this)},registerCallback:function(a){if(a.type){switch(a.type.toLowerCase()){case"checkbox":case"radio":Event.observe(a,"click",this.onElementEvent.bind(this));break;default:Event.observe(a,"change",this.onElementEvent.bind(this));break}}}});Form.Element.EventObserver=Class.create(Abstract.EventObserver,{getValue:function(){return Form.Element.getValue(this.element)}});Form.EventObserver=Class.create(Abstract.EventObserver,{getValue:function(){return Form.serialize(this.element)}});if(!window.Event){var Event={}}Object.extend(Event,{KEY_BACKSPACE:8,KEY_TAB:9,KEY_RETURN:13,KEY_ESC:27,KEY_LEFT:37,KEY_UP:38,KEY_RIGHT:39,KEY_DOWN:40,KEY_DELETE:46,KEY_HOME:36,KEY_END:35,KEY_PAGEUP:33,KEY_PAGEDOWN:34,KEY_INSERT:45,cache:{},relatedTarget:function(b){var a;switch(b.type){case"mouseover":a=b.fromElement;break;case"mouseout":a=b.toElement;break;default:return null}return Element.extend(a)}});Event.Methods=(function(){var a;if(Prototype.Browser.IE){var b={0:1,1:4,2:2};a=function(d,c){return d.button==b[c]}}else{if(Prototype.Browser.WebKit){a=function(d,c){switch(c){case 0:return d.which==1&&!d.metaKey;case 1:return d.which==1&&d.metaKey;default:return false}}}else{a=function(d,c){return d.which?(d.which===c+1):(d.button===c)}}}return{isLeftClick:function(c){return a(c,0)},isMiddleClick:function(c){return a(c,1)},isRightClick:function(c){return a(c,2)},element:function(d){var c=Event.extend(d).target;return Element.extend(c.nodeType==Node.TEXT_NODE?c.parentNode:c)},findElement:function(d,f){var c=Event.element(d);if(!f){return c}var e=[c].concat(c.ancestors());return Selector.findElement(e,f,0)},pointer:function(c){return{x:c.pageX||(c.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft)),y:c.pageY||(c.clientY+(document.documentElement.scrollTop||document.body.scrollTop))}},pointerX:function(c){return Event.pointer(c).x},pointerY:function(c){return Event.pointer(c).y},stop:function(c){Event.extend(c);c.preventDefault();c.stopPropagation();c.stopped=true}}})();Event.extend=(function(){var a=Object.keys(Event.Methods).inject({},function(b,c){b[c]=Event.Methods[c].methodize();return b});if(Prototype.Browser.IE){Object.extend(a,{stopPropagation:function(){this.cancelBubble=true},preventDefault:function(){this.returnValue=false},inspect:function(){return"[object Event]"}});return function(b){if(!b){return false}if(b._extendedByPrototype){return b}b._extendedByPrototype=Prototype.emptyFunction;var c=Event.pointer(b);Object.extend(b,{target:b.srcElement,relatedTarget:Event.relatedTarget(b),pageX:c.x,pageY:c.y});return Object.extend(b,a)}}else{Event.prototype=Event.prototype||document.createEvent("HTMLEvents").__proto__;Object.extend(Event.prototype,a);return Prototype.K}})();Object.extend(Event,(function(){var b=Event.cache;function c(j){if(j._prototypeEventID){return j._prototypeEventID[0]}arguments.callee.id=arguments.callee.id||1;return j._prototypeEventID=[++arguments.callee.id]}function g(j){if(j&&j.include(":")){return"dataavailable"}return j}function a(j){return b[j]=b[j]||{}}function f(l,j){var k=a(l);return k[j]=k[j]||[]}function h(k,j,l){var o=c(k);var n=f(o,j);if(n.pluck("handler").include(l)){return false}var m=function(p){if(!Event||!Event.extend||(p.eventName&&p.eventName!=j)){return false}try{Event.extend(p);l.call(k,p)}catch(q){}};m.handler=l;n.push(m);return m}function i(m,j,k){var l=f(m,j);return l.find(function(n){return n.handler==k})}function d(m,j,k){var l=a(m);if(!l[j]){return false}l[j]=l[j].without(i(m,j,k))}function e(){for(var k in b){for(var j in b[k]){b[k][j]=null}}}if(window.attachEvent){window.attachEvent("onunload",e)}return{observe:function(l,j,m){l=$(l);var k=g(j);var n=h(l,j,m);if(!n){return l}if(l.addEventListener){l.addEventListener(k,n,false)}else{l.attachEvent("on"+k,n)}return l},stopObserving:function(l,j,m){l=$(l);var o=c(l),k=g(j);if(!m&&j){f(o,j).each(function(p){l.stopObserving(j,p.handler)});return l}else{if(!j){Object.keys(a(o)).each(function(p){l.stopObserving(p)});return l}}var n=i(o,j,m);if(!n){return l}if(l.removeEventListener){l.removeEventListener(k,n,false)}else{l.detachEvent("on"+k,n)}d(o,j,m);return l},fire:function(l,k,j){l=$(l);if(l==document&&document.createEvent&&!l.dispatchEvent){l=document.documentElement}var m;if(document.createEvent){m=document.createEvent("HTMLEvents");m.initEvent("dataavailable",true,true)}else{m=document.createEventObject();m.eventType="ondataavailable"}m.eventName=k;m.memo=j||{};if(document.createEvent){l.dispatchEvent(m)}else{l.fireEvent(m.eventType,m)}return Event.extend(m)}}})());Object.extend(Event,Event.Methods);Element.addMethods({fire:Event.fire,observe:Event.observe,stopObserving:Event.stopObserving});Object.extend(document,{fire:Element.Methods.fire.methodize(),observe:Element.Methods.observe.methodize(),stopObserving:Element.Methods.stopObserving.methodize(),loaded:false});(function(){var b;function a(){if(document.loaded){return}if(b){window.clearInterval(b)}document.fire("dom:loaded");document.loaded=true}if(document.addEventListener){if(Prototype.Browser.WebKit){b=window.setInterval(function(){if(/loaded|complete/.test(document.readyState)){a()}},0);Event.observe(window,"load",a)}else{document.addEventListener("DOMContentLoaded",a,false)}}else{document.write("<script id=__onDOMContentLoaded defer src=//:><\/script>");$("__onDOMContentLoaded").onreadystatechange=function(){if(this.readyState=="complete"){this.onreadystatechange=null;a()}}}})();Hash.toQueryString=Object.toQueryString;var Toggle={display:Element.toggle};Element.Methods.childOf=Element.Methods.descendantOf;var Insertion={Before:function(a,b){return Element.insert(a,{before:b})},Top:function(a,b){return Element.insert(a,{top:b})},Bottom:function(a,b){return Element.insert(a,{bottom:b})},After:function(a,b){return Element.insert(a,{after:b})}};var $continue=new Error('"throw $continue" is deprecated, use "return" instead');var Position={includeScrollOffsets:false,prepare:function(){this.deltaX=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;this.deltaY=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},within:function(b,a,c){if(this.includeScrollOffsets){return this.withinIncludingScrolloffsets(b,a,c)}this.xcomp=a;this.ycomp=c;this.offset=Element.cumulativeOffset(b);return(c>=this.offset[1]&&c<this.offset[1]+b.offsetHeight&&a>=this.offset[0]&&a<this.offset[0]+b.offsetWidth)},withinIncludingScrolloffsets:function(b,a,d){var c=Element.cumulativeScrollOffset(b);this.xcomp=a+c[0]-this.deltaX;this.ycomp=d+c[1]-this.deltaY;this.offset=Element.cumulativeOffset(b);return(this.ycomp>=this.offset[1]&&this.ycomp<this.offset[1]+b.offsetHeight&&this.xcomp>=this.offset[0]&&this.xcomp<this.offset[0]+b.offsetWidth)},overlap:function(b,a){if(!b){return 0}if(b=="vertical"){return((this.offset[1]+a.offsetHeight)-this.ycomp)/a.offsetHeight}if(b=="horizontal"){return((this.offset[0]+a.offsetWidth)-this.xcomp)/a.offsetWidth}},cumulativeOffset:Element.Methods.cumulativeOffset,positionedOffset:Element.Methods.positionedOffset,absolutize:function(a){Position.prepare();return Element.absolutize(a)},relativize:function(a){Position.prepare();return Element.relativize(a)},realOffset:Element.Methods.cumulativeScrollOffset,offsetParent:Element.Methods.getOffsetParent,page:Element.Methods.viewportOffset,clone:function(b,c,a){a=a||{};return Element.clonePosition(c,b,a)}};if(!document.getElementsByClassName){document.getElementsByClassName=function(b){function a(c){return c.blank()?null:"[contains(concat(' ', @class, ' '), ' "+c+" ')]"}b.getElementsByClassName=Prototype.BrowserFeatures.XPath?function(c,e){e=e.toString().strip();var d=/\s/.test(e)?$w(e).map(a).join(""):a(e);return d?document._getElementsByXPath(".//*"+d,c):[]}:function(e,f){f=f.toString().strip();var g=[],h=(/\s/.test(f)?$w(f):null);if(!h&&!f){return g}var c=$(e).getElementsByTagName("*");f=" "+f+" ";for(var d=0,k,j;k=c[d];d++){if(k.className&&(j=" "+k.className+" ")&&(j.include(f)||(h&&h.all(function(i){return !i.toString().blank()&&j.include(" "+i+" ")})))){g.push(Element.extend(k))}}return g};return function(d,c){return $(c||document.body).getElementsByClassName(d)}}(Element.Methods)}Element.ClassNames=Class.create();Element.ClassNames.prototype={initialize:function(a){this.element=$(a)},_each:function(a){this.element.className.split(/\s+/).select(function(b){return b.length>0})._each(a)},set:function(a){this.element.className=a},add:function(a){if(this.include(a)){return}this.set($A(this).concat(a).join(" "))},remove:function(a){if(!this.include(a)){return}this.set($A(this).without(a).join(" "))},toString:function(){return $A(this).join(" ")}};Object.extend(Element.ClassNames.prototype,Enumerable);Element.addMethods();
var Scriptaculous={Version:"1.7.1_beta2",require:function(a){document.write('<script type="text/javascript" src="'+a+'"><\/script>')},REQUIRED_PROTOTYPE:"1.5.1",load:function(){function a(b){var c=b.split(".");return parseInt(c[0])*100000+parseInt(c[1])*1000+parseInt(c[2])}if((typeof Prototype=="undefined")||(typeof Element=="undefined")||(typeof Element.Methods=="undefined")||(a(Prototype.Version)<a(Scriptaculous.REQUIRED_PROTOTYPE))){throw ("script.aculo.us requires the Prototype JavaScript framework >= "+Scriptaculous.REQUIRED_PROTOTYPE)}$A(document.getElementsByTagName("script")).findAll(function(b){return(b.src&&b.src.match(/scriptaculous\.js(\?.*)?$/))}).each(function(c){var d=c.src.replace(/scriptaculous\.js(\?.*)?$/,"");var b=c.src.match(/\?.*load=([a-z,]*)/);(b?b[1]:"builder,effects,dragdrop,controls,slider,sound").split(",").each(function(e){Scriptaculous.require(d+e+".js")})})}};Scriptaculous.load();var Builder={NODEMAP:{AREA:"map",CAPTION:"table",COL:"table",COLGROUP:"table",LEGEND:"fieldset",OPTGROUP:"select",OPTION:"select",PARAM:"object",TBODY:"table",TD:"table",TFOOT:"table",TH:"table",THEAD:"table",TR:"table"},node:function(a){a=a.toUpperCase();var g=this.NODEMAP[a]||"div";var b=document.createElement(g);try{b.innerHTML="<"+a+"></"+a+">"}catch(f){}var d=b.firstChild||null;if(d&&(d.tagName!=a)){d=d.getElementsByTagName(a)[0]}if(!d){d=document.createElement(a)}if(!d){return}if(arguments[1]){if(this._isStringOrNumber(arguments[1])||(arguments[1] instanceof Array)){this._children(d,arguments[1])}else{var c=this._attributes(arguments[1]);if(c.length){try{b.innerHTML="<"+a+" "+c+"></"+a+">"}catch(f){}d=b.firstChild||null;if(!d){d=document.createElement(a);for(attr in arguments[1]){d[attr=="class"?"className":attr]=arguments[1][attr]}}if(d.tagName!=a){d=b.getElementsByTagName(a)[0]}}}}if(arguments[2]){this._children(d,arguments[2])}return d},_text:function(a){return document.createTextNode(a)},_attributes:function(a){var b=[];for(attribute in a){b.push((attribute=="className"?"class":attribute)+'="'+a[attribute].toString().escapeHTML()+'"')}return b.join(" ")},_children:function(b,a){if(typeof a=="object"){a.flatten().each(function(c){if(typeof c=="object"){b.appendChild(c)}else{if(Builder._isStringOrNumber(c)){b.appendChild(Builder._text(c))}}})}else{if(Builder._isStringOrNumber(a)){b.appendChild(Builder._text(a))}}},_isStringOrNumber:function(a){return(typeof a=="string"||typeof a=="number")},dump:function(b){if(typeof b!="object"&&typeof b!="function"){b=window}var a=("A ABBR ACRONYM ADDRESS APPLET AREA B BASE BASEFONT BDO BIG BLOCKQUOTE BODY BR BUTTON CAPTION CENTER CITE CODE COL COLGROUP DD DEL DFN DIR DIV DL DT EM FIELDSET FONT FORM FRAME FRAMESET H1 H2 H3 H4 H5 H6 HEAD HR HTML I IFRAME IMG INPUT INS ISINDEX KBD LABEL LEGEND LI LINK MAP MENU META NOFRAMES NOSCRIPT OBJECT OL OPTGROUP OPTION P PARAM PRE Q S SAMP SCRIPT SELECT SMALL SPAN STRIKE STRONG STYLE SUB SUP TABLE TBODY TD TEXTAREA TFOOT TH THEAD TITLE TR TT U UL VAR").split(/\s+/);a.each(function(c){b[c]=function(){return Builder.node.apply(Builder,[c].concat($A(arguments)))}})}};
String.prototype.parseColor=function(){var a="#";if(this.slice(0,4)=="rgb("){var c=this.slice(4,this.length-1).split(",");var b=0;do{a+=parseInt(c[b]).toColorPart()}while(++b<3)}else{if(this.slice(0,1)=="#"){if(this.length==4){for(var b=1;b<4;b++){a+=(this.charAt(b)+this.charAt(b)).toLowerCase()}}if(this.length==7){a=this.toLowerCase()}}}return(a.length==7?a:(arguments[0]||this))};Element.collectTextNodes=function(a){return $A($(a).childNodes).collect(function(b){return(b.nodeType==3?b.nodeValue:(b.hasChildNodes()?Element.collectTextNodes(b):""))}).flatten().join("")};Element.collectTextNodesIgnoreClass=function(a,b){return $A($(a).childNodes).collect(function(c){return(c.nodeType==3?c.nodeValue:((c.hasChildNodes()&&!Element.hasClassName(c,b))?Element.collectTextNodesIgnoreClass(c,b):""))}).flatten().join("")};Element.setContentZoom=function(a,b){a=$(a);a.setStyle({fontSize:(b/100)+"em"});if(Prototype.Browser.WebKit){window.scrollBy(0,0)}return a};Element.getInlineOpacity=function(a){return $(a).style.opacity||""};Element.forceRerendering=function(a){try{a=$(a);var c=document.createTextNode(" ");a.appendChild(c);a.removeChild(c)}catch(b){}};var Effect={_elementDoesNotExistError:{name:"ElementDoesNotExistError",message:"The specified DOM element does not exist, but is required for this effect to operate"},Transitions:{linear:Prototype.K,sinoidal:function(a){return(-Math.cos(a*Math.PI)/2)+0.5},reverse:function(a){return 1-a},flicker:function(a){var a=((-Math.cos(a*Math.PI)/4)+0.75)+Math.random()/4;return a>1?1:a},wobble:function(a){return(-Math.cos(a*Math.PI*(9*a))/2)+0.5},pulse:function(b,a){a=a||5;return(((b%(1/a))*a).round()==0?((b*a*2)-(b*a*2).floor()):1-((b*a*2)-(b*a*2).floor()))},spring:function(a){return 1-(Math.cos(a*4.5*Math.PI)*Math.exp(-a*6))},none:function(a){return 0},full:function(a){return 1}},DefaultOptions:{duration:1,fps:100,sync:false,from:0,to:1,delay:0,queue:"parallel"},tagifyText:function(a){var b="position:relative";if(Prototype.Browser.IE){b+=";zoom:1"}a=$(a);$A(a.childNodes).each(function(c){if(c.nodeType==3){c.nodeValue.toArray().each(function(d){a.insertBefore(new Element("span",{style:b}).update(d==" "?String.fromCharCode(160):d),c)});Element.remove(c)}})},multiple:function(b,c){var e;if(((typeof b=="object")||Object.isFunction(b))&&(b.length)){e=b}else{e=$(b).childNodes}var a=Object.extend({speed:0.1,delay:0},arguments[2]||{});var d=a.delay;$A(e).each(function(g,f){new c(g,Object.extend(a,{delay:f*a.speed+d}))})},PAIRS:{slide:["SlideDown","SlideUp"],blind:["BlindDown","BlindUp"],appear:["Appear","Fade"]},toggle:function(b,c){b=$(b);c=(c||"appear").toLowerCase();var a=Object.extend({queue:{position:"end",scope:(b.id||"global"),limit:1}},arguments[2]||{});Effect[b.visible()?Effect.PAIRS[c][1]:Effect.PAIRS[c][0]](b,a)}};Effect.DefaultOptions.transition=Effect.Transitions.sinoidal;Effect.ScopedQueue=Class.create(Enumerable,{initialize:function(){this.effects=[];this.interval=null},_each:function(a){this.effects._each(a)},add:function(b){var c=new Date().getTime();var a=Object.isString(b.options.queue)?b.options.queue:b.options.queue.position;switch(a){case"front":this.effects.findAll(function(d){return d.state=="idle"}).each(function(d){d.startOn+=b.finishOn;d.finishOn+=b.finishOn});break;case"with-last":c=this.effects.pluck("startOn").max()||c;break;case"end":c=this.effects.pluck("finishOn").max()||c;break}b.startOn+=c;b.finishOn+=c;if(!b.options.queue.limit||(this.effects.length<b.options.queue.limit)){this.effects.push(b)}if(!this.interval){this.interval=setInterval(this.loop.bind(this),15)}},remove:function(a){this.effects=this.effects.reject(function(b){return b==a});if(this.effects.length==0){clearInterval(this.interval);this.interval=null}},loop:function(){var c=new Date().getTime();for(var b=0,a=this.effects.length;b<a;b++){this.effects[b]&&this.effects[b].loop(c)}}});Effect.Queues={instances:$H(),get:function(a){if(!Object.isString(a)){return a}return this.instances.get(a)||this.instances.set(a,new Effect.ScopedQueue())}};Effect.Queue=Effect.Queues.get("global");Effect.Base=Class.create({position:null,start:function(options){function codeForEvent(options,eventName){return((options[eventName+"Internal"]?"this.options."+eventName+"Internal(this);":"")+(options[eventName]?"this.options."+eventName+"(this);":""))}if(options&&options.transition===false){options.transition=Effect.Transitions.linear}this.options=Object.extend(Object.extend({},Effect.DefaultOptions),options||{});this.currentFrame=0;this.state="idle";this.startOn=this.options.delay*1000;this.finishOn=this.startOn+(this.options.duration*1000);this.fromToDelta=this.options.to-this.options.from;this.totalTime=this.finishOn-this.startOn;this.totalFrames=this.options.fps*this.options.duration;eval('this.render = function(pos){ if (this.state=="idle"){this.state="running";'+codeForEvent(this.options,"beforeSetup")+(this.setup?"this.setup();":"")+codeForEvent(this.options,"afterSetup")+'};if (this.state=="running"){pos=this.options.transition(pos)*'+this.fromToDelta+"+"+this.options.from+";this.position=pos;"+codeForEvent(this.options,"beforeUpdate")+(this.update?"this.update(pos);":"")+codeForEvent(this.options,"afterUpdate")+"}}");this.event("beforeStart");if(!this.options.sync){Effect.Queues.get(Object.isString(this.options.queue)?"global":this.options.queue.scope).add(this)}},loop:function(c){if(c>=this.startOn){if(c>=this.finishOn){this.render(1);this.cancel();this.event("beforeFinish");if(this.finish){this.finish()}this.event("afterFinish");return}var b=(c-this.startOn)/this.totalTime,a=(b*this.totalFrames).round();if(a>this.currentFrame){this.render(b);this.currentFrame=a}}},cancel:function(){if(!this.options.sync){Effect.Queues.get(Object.isString(this.options.queue)?"global":this.options.queue.scope).remove(this)}this.state="finished"},event:function(a){if(this.options[a+"Internal"]){this.options[a+"Internal"](this)}if(this.options[a]){this.options[a](this)}},inspect:function(){var a=$H();for(property in this){if(!Object.isFunction(this[property])){a.set(property,this[property])}}return"#<Effect:"+a.inspect()+",options:"+$H(this.options).inspect()+">"}});Effect.Parallel=Class.create(Effect.Base,{initialize:function(a){this.effects=a||[];this.start(arguments[1])},update:function(a){this.effects.invoke("render",a)},finish:function(a){this.effects.each(function(b){b.render(1);b.cancel();b.event("beforeFinish");if(b.finish){b.finish(a)}b.event("afterFinish")})}});Effect.Tween=Class.create(Effect.Base,{initialize:function(c,f,e){c=Object.isString(c)?$(c):c;var b=$A(arguments),d=b.last(),a=b.length==5?b[3]:null;this.method=Object.isFunction(d)?d.bind(c):Object.isFunction(c[d])?c[d].bind(c):function(g){c[d]=g};this.start(Object.extend({from:f,to:e},a||{}))},update:function(a){this.method(a)}});Effect.Event=Class.create(Effect.Base,{initialize:function(){this.start(Object.extend({duration:0},arguments[0]||{}))},update:Prototype.emptyFunction});Effect.Opacity=Class.create(Effect.Base,{initialize:function(b){this.element=$(b);if(!this.element){throw (Effect._elementDoesNotExistError)}if(Prototype.Browser.IE&&(!this.element.currentStyle.hasLayout)){this.element.setStyle({zoom:1})}var a=Object.extend({from:this.element.getOpacity()||0,to:1},arguments[1]||{});this.start(a)},update:function(a){this.element.setOpacity(a)}});Effect.Move=Class.create(Effect.Base,{initialize:function(b){this.element=$(b);if(!this.element){throw (Effect._elementDoesNotExistError)}var a=Object.extend({x:0,y:0,mode:"relative"},arguments[1]||{});this.start(a)},setup:function(){this.element.makePositioned();this.originalLeft=parseFloat(this.element.getStyle("left")||"0");this.originalTop=parseFloat(this.element.getStyle("top")||"0");if(this.options.mode=="absolute"){this.options.x=this.options.x-this.originalLeft;this.options.y=this.options.y-this.originalTop}},update:function(a){this.element.setStyle({left:(this.options.x*a+this.originalLeft).round()+"px",top:(this.options.y*a+this.originalTop).round()+"px"})}});Effect.MoveBy=function(b,a,c){return new Effect.Move(b,Object.extend({x:c,y:a},arguments[3]||{}))};Effect.Scale=Class.create(Effect.Base,{initialize:function(b,c){this.element=$(b);if(!this.element){throw (Effect._elementDoesNotExistError)}var a=Object.extend({scaleX:true,scaleY:true,scaleContent:true,scaleFromCenter:false,scaleMode:"box",scaleFrom:100,scaleTo:c},arguments[2]||{});this.start(a)},setup:function(){this.restoreAfterFinish=this.options.restoreAfterFinish||false;this.elementPositioning=this.element.getStyle("position");this.originalStyle={};["top","left","width","height","fontSize"].each(function(b){this.originalStyle[b]=this.element.style[b]}.bind(this));this.originalTop=this.element.offsetTop;this.originalLeft=this.element.offsetLeft;var a=this.element.getStyle("font-size")||"100%";["em","px","%","pt"].each(function(b){if(a.indexOf(b)>0){this.fontSize=parseFloat(a);this.fontSizeType=b}}.bind(this));this.factor=(this.options.scaleTo-this.options.scaleFrom)/100;this.dims=null;if(this.options.scaleMode=="box"){this.dims=[this.element.offsetHeight,this.element.offsetWidth]}if(/^content/.test(this.options.scaleMode)){this.dims=[this.element.scrollHeight,this.element.scrollWidth]}if(!this.dims){this.dims=[this.options.scaleMode.originalHeight,this.options.scaleMode.originalWidth]}},update:function(a){var b=(this.options.scaleFrom/100)+(this.factor*a);if(this.options.scaleContent&&this.fontSize){this.element.setStyle({fontSize:this.fontSize*b+this.fontSizeType})}this.setDimensions(this.dims[0]*b,this.dims[1]*b)},finish:function(a){if(this.restoreAfterFinish){this.element.setStyle(this.originalStyle)}},setDimensions:function(a,e){var f={};if(this.options.scaleX){f.width=e.round()+"px"}if(this.options.scaleY){f.height=a.round()+"px"}if(this.options.scaleFromCenter){var c=(a-this.dims[0])/2;var b=(e-this.dims[1])/2;if(this.elementPositioning=="absolute"){if(this.options.scaleY){f.top=this.originalTop-c+"px"}if(this.options.scaleX){f.left=this.originalLeft-b+"px"}}else{if(this.options.scaleY){f.top=-c+"px"}if(this.options.scaleX){f.left=-b+"px"}}}this.element.setStyle(f)}});Effect.Highlight=Class.create(Effect.Base,{initialize:function(b){this.element=$(b);if(!this.element){throw (Effect._elementDoesNotExistError)}var a=Object.extend({startcolor:"#ffff99"},arguments[1]||{});this.start(a)},setup:function(){if(this.element.getStyle("display")=="none"){this.cancel();return}this.oldStyle={};if(!this.options.keepBackgroundImage){this.oldStyle.backgroundImage=this.element.getStyle("background-image");this.element.setStyle({backgroundImage:"none"})}if(!this.options.endcolor){this.options.endcolor=this.element.getStyle("background-color").parseColor("#ffffff")}if(!this.options.restorecolor){this.options.restorecolor=this.element.getStyle("background-color")}this._base=$R(0,2).map(function(a){return parseInt(this.options.startcolor.slice(a*2+1,a*2+3),16)}.bind(this));this._delta=$R(0,2).map(function(a){return parseInt(this.options.endcolor.slice(a*2+1,a*2+3),16)-this._base[a]}.bind(this))},update:function(a){this.element.setStyle({backgroundColor:$R(0,2).inject("#",function(b,c,d){return b+((this._base[d]+(this._delta[d]*a)).round().toColorPart())}.bind(this))})},finish:function(){this.element.setStyle(Object.extend(this.oldStyle,{backgroundColor:this.options.restorecolor}))}});Effect.ScrollTo=function(d){var c=arguments[1]||{},b=document.viewport.getScrollOffsets(),e=$(d).cumulativeOffset(),a=(window.height||document.body.scrollHeight)-document.viewport.getHeight();if(c.offset){e[1]+=c.offset}return new Effect.Tween(null,b.top,e[1]>a?a:e[1],c,function(f){scrollTo(b.left,f.round())})};Effect.Fade=function(c){c=$(c);var a=c.getInlineOpacity();var b=Object.extend({from:c.getOpacity()||1,to:0,afterFinishInternal:function(d){if(d.options.to!=0){return}d.element.hide().setStyle({opacity:a})}},arguments[1]||{});return new Effect.Opacity(c,b)};Effect.Appear=function(b){b=$(b);var a=Object.extend({from:(b.getStyle("display")=="none"?0:b.getOpacity()||0),to:1,afterFinishInternal:function(c){c.element.forceRerendering()},beforeSetup:function(c){c.element.setOpacity(c.options.from).show()}},arguments[1]||{});return new Effect.Opacity(b,a)};Effect.Puff=function(b){b=$(b);var a={opacity:b.getInlineOpacity(),position:b.getStyle("position"),top:b.style.top,left:b.style.left,width:b.style.width,height:b.style.height};return new Effect.Parallel([new Effect.Scale(b,200,{sync:true,scaleFromCenter:true,scaleContent:true,restoreAfterFinish:true}),new Effect.Opacity(b,{sync:true,to:0})],Object.extend({duration:1,beforeSetupInternal:function(c){Position.absolutize(c.effects[0].element)},afterFinishInternal:function(c){c.effects[0].element.hide().setStyle(a)}},arguments[1]||{}))};Effect.BlindUp=function(a){a=$(a);a.makeClipping();return new Effect.Scale(a,0,Object.extend({scaleContent:false,scaleX:false,restoreAfterFinish:true,afterFinishInternal:function(b){b.element.hide().undoClipping()}},arguments[1]||{}))};Effect.BlindDown=function(b){b=$(b);var a=b.getDimensions();return new Effect.Scale(b,100,Object.extend({scaleContent:false,scaleX:false,scaleFrom:0,scaleMode:{originalHeight:a.height,originalWidth:a.width},restoreAfterFinish:true,afterSetup:function(c){c.element.makeClipping().setStyle({height:"0px"}).show()},afterFinishInternal:function(c){c.element.undoClipping()}},arguments[1]||{}))};Effect.SwitchOff=function(b){b=$(b);var a=b.getInlineOpacity();return new Effect.Appear(b,Object.extend({duration:0.4,from:0,transition:Effect.Transitions.flicker,afterFinishInternal:function(c){new Effect.Scale(c.element,1,{duration:0.3,scaleFromCenter:true,scaleX:false,scaleContent:false,restoreAfterFinish:true,beforeSetup:function(d){d.element.makePositioned().makeClipping()},afterFinishInternal:function(d){d.element.hide().undoClipping().undoPositioned().setStyle({opacity:a})}})}},arguments[1]||{}))};Effect.DropOut=function(b){b=$(b);var a={top:b.getStyle("top"),left:b.getStyle("left"),opacity:b.getInlineOpacity()};return new Effect.Parallel([new Effect.Move(b,{x:0,y:100,sync:true}),new Effect.Opacity(b,{sync:true,to:0})],Object.extend({duration:0.5,beforeSetup:function(c){c.effects[0].element.makePositioned()},afterFinishInternal:function(c){c.effects[0].element.hide().undoPositioned().setStyle(a)}},arguments[1]||{}))};Effect.Shake=function(d){d=$(d);var b=Object.extend({distance:20,duration:0.5},arguments[1]||{});var e=parseFloat(b.distance);var c=parseFloat(b.duration)/10;var a={top:d.getStyle("top"),left:d.getStyle("left")};return new Effect.Move(d,{x:e,y:0,duration:c,afterFinishInternal:function(f){new Effect.Move(f.element,{x:-e*2,y:0,duration:c*2,afterFinishInternal:function(g){new Effect.Move(g.element,{x:e*2,y:0,duration:c*2,afterFinishInternal:function(h){new Effect.Move(h.element,{x:-e*2,y:0,duration:c*2,afterFinishInternal:function(i){new Effect.Move(i.element,{x:e*2,y:0,duration:c*2,afterFinishInternal:function(j){new Effect.Move(j.element,{x:-e,y:0,duration:c,afterFinishInternal:function(k){k.element.undoPositioned().setStyle(a)}})}})}})}})}})}})};Effect.SlideDown=function(c){c=$(c).cleanWhitespace();var a=c.down().getStyle("bottom");var b=c.getDimensions();return new Effect.Scale(c,100,Object.extend({scaleContent:false,scaleX:false,scaleFrom:window.opera?0:1,scaleMode:{originalHeight:b.height,originalWidth:b.width},restoreAfterFinish:true,afterSetup:function(d){d.element.makePositioned();d.element.down().makePositioned();if(window.opera){d.element.setStyle({top:""})}d.element.makeClipping().setStyle({height:"0px"}).show()},afterUpdateInternal:function(d){d.element.down().setStyle({bottom:(d.dims[0]-d.element.clientHeight)+"px"})},afterFinishInternal:function(d){d.element.undoClipping().undoPositioned();d.element.down().undoPositioned().setStyle({bottom:a})}},arguments[1]||{}))};Effect.SlideUp=function(c){c=$(c).cleanWhitespace();var a=c.down().getStyle("bottom");var b=c.getDimensions();return new Effect.Scale(c,window.opera?0:1,Object.extend({scaleContent:false,scaleX:false,scaleMode:"box",scaleFrom:100,scaleMode:{originalHeight:b.height,originalWidth:b.width},restoreAfterFinish:true,afterSetup:function(d){d.element.makePositioned();d.element.down().makePositioned();if(window.opera){d.element.setStyle({top:""})}d.element.makeClipping().show()},afterUpdateInternal:function(d){d.element.down().setStyle({bottom:(d.dims[0]-d.element.clientHeight)+"px"})},afterFinishInternal:function(d){d.element.hide().undoClipping().undoPositioned();d.element.down().undoPositioned().setStyle({bottom:a})}},arguments[1]||{}))};Effect.Squish=function(a){return new Effect.Scale(a,window.opera?1:0,{restoreAfterFinish:true,beforeSetup:function(b){b.element.makeClipping()},afterFinishInternal:function(b){b.element.hide().undoClipping()}})};Effect.Grow=function(c){c=$(c);var b=Object.extend({direction:"center",moveTransition:Effect.Transitions.sinoidal,scaleTransition:Effect.Transitions.sinoidal,opacityTransition:Effect.Transitions.full},arguments[1]||{});var a={top:c.style.top,left:c.style.left,height:c.style.height,width:c.style.width,opacity:c.getInlineOpacity()};var g=c.getDimensions();var h,f;var e,d;switch(b.direction){case"top-left":h=f=e=d=0;break;case"top-right":h=g.width;f=d=0;e=-g.width;break;case"bottom-left":h=e=0;f=g.height;d=-g.height;break;case"bottom-right":h=g.width;f=g.height;e=-g.width;d=-g.height;break;case"center":h=g.width/2;f=g.height/2;e=-g.width/2;d=-g.height/2;break}return new Effect.Move(c,{x:h,y:f,duration:0.01,beforeSetup:function(i){i.element.hide().makeClipping().makePositioned()},afterFinishInternal:function(i){new Effect.Parallel([new Effect.Opacity(i.element,{sync:true,to:1,from:0,transition:b.opacityTransition}),new Effect.Move(i.element,{x:e,y:d,sync:true,transition:b.moveTransition}),new Effect.Scale(i.element,100,{scaleMode:{originalHeight:g.height,originalWidth:g.width},sync:true,scaleFrom:window.opera?1:0,transition:b.scaleTransition,restoreAfterFinish:true})],Object.extend({beforeSetup:function(j){j.effects[0].element.setStyle({height:"0px"}).show()},afterFinishInternal:function(j){j.effects[0].element.undoClipping().undoPositioned().setStyle(a)}},b))}})};Effect.Shrink=function(c){c=$(c);var b=Object.extend({direction:"center",moveTransition:Effect.Transitions.sinoidal,scaleTransition:Effect.Transitions.sinoidal,opacityTransition:Effect.Transitions.none},arguments[1]||{});var a={top:c.style.top,left:c.style.left,height:c.style.height,width:c.style.width,opacity:c.getInlineOpacity()};var f=c.getDimensions();var e,d;switch(b.direction){case"top-left":e=d=0;break;case"top-right":e=f.width;d=0;break;case"bottom-left":e=0;d=f.height;break;case"bottom-right":e=f.width;d=f.height;break;case"center":e=f.width/2;d=f.height/2;break}return new Effect.Parallel([new Effect.Opacity(c,{sync:true,to:0,from:1,transition:b.opacityTransition}),new Effect.Scale(c,window.opera?1:0,{sync:true,transition:b.scaleTransition,restoreAfterFinish:true}),new Effect.Move(c,{x:e,y:d,sync:true,transition:b.moveTransition})],Object.extend({beforeStartInternal:function(g){g.effects[0].element.makePositioned().makeClipping()},afterFinishInternal:function(g){g.effects[0].element.hide().undoClipping().undoPositioned().setStyle(a)}},b))};Effect.Pulsate=function(c){c=$(c);var b=arguments[1]||{};var a=c.getInlineOpacity();var e=b.transition||Effect.Transitions.sinoidal;var d=function(f){return e(1-Effect.Transitions.pulse(f,b.pulses))};d.bind(e);return new Effect.Opacity(c,Object.extend(Object.extend({duration:2,from:0,afterFinishInternal:function(f){f.element.setStyle({opacity:a})}},b),{transition:d}))};Effect.Fold=function(b){b=$(b);var a={top:b.style.top,left:b.style.left,width:b.style.width,height:b.style.height};b.makeClipping();return new Effect.Scale(b,5,Object.extend({scaleContent:false,scaleX:false,afterFinishInternal:function(c){new Effect.Scale(b,1,{scaleContent:false,scaleY:false,afterFinishInternal:function(d){d.element.hide().undoClipping().setStyle(a)}})}},arguments[1]||{}))};Effect.Morph=Class.create(Effect.Base,{initialize:function(c){this.element=$(c);if(!this.element){throw (Effect._elementDoesNotExistError)}var a=Object.extend({style:{}},arguments[1]||{});if(!Object.isString(a.style)){this.style=$H(a.style)}else{if(a.style.include(":")){this.style=a.style.parseStyle()}else{this.element.addClassName(a.style);this.style=$H(this.element.getStyles());this.element.removeClassName(a.style);var b=this.element.getStyles();this.style=this.style.reject(function(d){return d.value==b[d.key]});a.afterFinishInternal=function(d){d.element.addClassName(d.options.style);d.transforms.each(function(e){d.element.style[e.style]=""})}}}this.start(a)},setup:function(){function a(b){if(!b||["rgba(0, 0, 0, 0)","transparent"].include(b)){b="#ffffff"}b=b.parseColor();return $R(0,2).map(function(c){return parseInt(b.slice(c*2+1,c*2+3),16)})}this.transforms=this.style.map(function(g){var f=g[0],e=g[1],d=null;if(e.parseColor("#zzzzzz")!="#zzzzzz"){e=e.parseColor();d="color"}else{if(f=="opacity"){e=parseFloat(e);if(Prototype.Browser.IE&&(!this.element.currentStyle.hasLayout)){this.element.setStyle({zoom:1})}}else{if(Element.CSS_LENGTH.test(e)){var c=e.match(/^([\+\-]?[0-9\.]+)(.*)$/);e=parseFloat(c[1]);d=(c.length==3)?c[2]:null}}}var b=this.element.getStyle(f);return{style:f.camelize(),originalValue:d=="color"?a(b):parseFloat(b||0),targetValue:d=="color"?a(e):e,unit:d}}.bind(this)).reject(function(b){return((b.originalValue==b.targetValue)||(b.unit!="color"&&(isNaN(b.originalValue)||isNaN(b.targetValue))))})},update:function(a){var d={},b,c=this.transforms.length;while(c--){d[(b=this.transforms[c]).style]=b.unit=="color"?"#"+(Math.round(b.originalValue[0]+(b.targetValue[0]-b.originalValue[0])*a)).toColorPart()+(Math.round(b.originalValue[1]+(b.targetValue[1]-b.originalValue[1])*a)).toColorPart()+(Math.round(b.originalValue[2]+(b.targetValue[2]-b.originalValue[2])*a)).toColorPart():(b.originalValue+(b.targetValue-b.originalValue)*a).toFixed(3)+(b.unit===null?"":b.unit)}this.element.setStyle(d,true)}});Effect.Transform=Class.create({initialize:function(a){this.tracks=[];this.options=arguments[1]||{};this.addTracks(a)},addTracks:function(a){a.each(function(b){b=$H(b);var c=b.values().first();this.tracks.push($H({ids:b.keys().first(),effect:Effect.Morph,options:{style:c}}))}.bind(this));return this},play:function(){return new Effect.Parallel(this.tracks.map(function(a){var d=a.get("ids"),c=a.get("effect"),b=a.get("options");var e=[$(d)||$$(d)].flatten();return e.map(function(f){return new c(f,Object.extend({sync:true},b))})}).flatten(),this.options)}});Element.CSS_PROPERTIES=$w("backgroundColor backgroundPosition borderBottomColor borderBottomStyle borderBottomWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderSpacing borderTopColor borderTopStyle borderTopWidth bottom clip color fontSize fontWeight height left letterSpacing lineHeight marginBottom marginLeft marginRight marginTop markerOffset maxHeight maxWidth minHeight minWidth opacity outlineColor outlineOffset outlineWidth paddingBottom paddingLeft paddingRight paddingTop right textIndent top width wordSpacing zIndex");Element.CSS_LENGTH=/^(([\+\-]?[0-9\.]+)(em|ex|px|in|cm|mm|pt|pc|\%))|0$/;String.__parseStyleElement=document.createElement("div");String.prototype.parseStyle=function(){var b,a=$H();if(Prototype.Browser.WebKit){b=new Element("div",{style:this}).style}else{String.__parseStyleElement.innerHTML='<div style="'+this+'"></div>';b=String.__parseStyleElement.childNodes[0].style}Element.CSS_PROPERTIES.each(function(c){if(b[c]){a.set(c,b[c])}});if(Prototype.Browser.IE&&this.include("opacity")){a.set("opacity",this.match(/opacity:\s*((?:0|1)?(?:\.\d*)?)/)[1])}return a};if(document.defaultView&&document.defaultView.getComputedStyle){Element.getStyles=function(b){var a=document.defaultView.getComputedStyle($(b),null);return Element.CSS_PROPERTIES.inject({},function(c,d){c[d]=a[d];return c})}}else{Element.getStyles=function(b){b=$(b);var a=b.currentStyle,c;c=Element.CSS_PROPERTIES.inject({},function(d,e){d[e]=a[e];return d});if(!c.opacity){c.opacity=b.getOpacity()}return c}}Effect.Methods={morph:function(a,b){a=$(a);new Effect.Morph(a,Object.extend({style:b},arguments[2]||{}));return a},visualEffect:function(c,e,b){c=$(c);var d=e.dasherize().camelize(),a=d.charAt(0).toUpperCase()+d.substring(1);new Effect[a](c,b);return c},highlight:function(b,a){b=$(b);new Effect.Highlight(b,a);return b}};$w("fade appear grow shrink fold blindUp blindDown slideUp slideDown pulsate shake puff squish switchOff dropOut").each(function(a){Effect.Methods[a]=function(c,b){c=$(c);Effect[a.charAt(0).toUpperCase()+a.substring(1)](c,b);return c}});$w("getInlineOpacity forceRerendering setContentZoom collectTextNodes collectTextNodesIgnoreClass getStyles").each(function(a){Effect.Methods[a]=Element[a]});Element.addMethods(Effect.Methods);
if(Object.isUndefined(Effect)){throw ("dragdrop.js requires including script.aculo.us' effects.js library")}var Droppables={drops:[],remove:function(a){this.drops=this.drops.reject(function(b){return b.element==$(a)})},add:function(b){b=$(b);var a=Object.extend({greedy:true,hoverclass:null,tree:false},arguments[1]||{});if(a.containment){a._containers=[];var c=a.containment;if(Object.isArray(c)){c.each(function(d){a._containers.push($(d))})}else{a._containers.push($(c))}}if(a.accept){a.accept=[a.accept].flatten()}Element.makePositioned(b);a.element=b;this.drops.push(a)},findDeepestChild:function(a){deepest=a[0];for(i=1;i<a.length;++i){if(Element.isParent(a[i].element,deepest.element)){deepest=a[i]}}return deepest},isContained:function(b,a){var c;if(a.tree){c=b.treeNode}else{c=b.parentNode}return a._containers.detect(function(d){return c==d})},isAffected:function(a,c,b){return((b.element!=c)&&((!b._containers)||this.isContained(c,b))&&((!b.accept)||(Element.classNames(c).detect(function(d){return b.accept.include(d)})))&&Position.withinIncludingScrolloffsets(b.element,a[0],a[1]))},deactivate:function(a){if(a.hoverclass){Element.removeClassName(a.element,a.hoverclass)}this.last_active=null},activate:function(a){if(a.hoverclass){Element.addClassName(a.element,a.hoverclass)}this.last_active=a},show:function(a,c){if(!this.drops.length){return}var b,d=[];this.drops.each(function(e){if(Droppables.isAffected(a,c,e)){d.push(e)}});if(d.length>0){b=Droppables.findDeepestChild(d)}if(this.last_active&&this.last_active!=b){this.deactivate(this.last_active)}if(b){Position.withinIncludingScrolloffsets(b.element,a[0],a[1]);if(b.onHover){b.onHover(c,b.element,Position.overlap(b.overlap,b.element))}if(b!=this.last_active){Droppables.activate(b)}}},fire:function(b,a){if(!this.last_active){return}Position.prepare();if(this.isAffected([Event.pointerX(b),Event.pointerY(b)],a,this.last_active)){if(this.last_active.onDrop){this.last_active.onDrop(a,this.last_active.element,b);return true}}},reset:function(){if(this.last_active){this.deactivate(this.last_active)}}};var Draggables={drags:[],observers:[],register:function(a){if(this.drags.length==0){this.eventMouseUp=this.endDrag.bindAsEventListener(this);this.eventMouseMove=this.updateDrag.bindAsEventListener(this);this.eventKeypress=this.keyPress.bindAsEventListener(this);Event.observe(document,"mouseup",this.eventMouseUp);Event.observe(document,"mousemove",this.eventMouseMove);Event.observe(document,"keypress",this.eventKeypress)}this.drags.push(a)},unregister:function(a){this.drags=this.drags.reject(function(b){return b==a});if(this.drags.length==0){Event.stopObserving(document,"mouseup",this.eventMouseUp);Event.stopObserving(document,"mousemove",this.eventMouseMove);Event.stopObserving(document,"keypress",this.eventKeypress)}},activate:function(a){if(a.options.delay){this._timeout=setTimeout(function(){Draggables._timeout=null;window.focus();Draggables.activeDraggable=a}.bind(this),a.options.delay)}else{window.focus();this.activeDraggable=a}},deactivate:function(){this.activeDraggable=null},updateDrag:function(a){if(!this.activeDraggable){return}var b=[Event.pointerX(a),Event.pointerY(a)];if(this._lastPointer&&(this._lastPointer.inspect()==b.inspect())){return}this._lastPointer=b;this.activeDraggable.updateDrag(a,b)},endDrag:function(a){if(this._timeout){clearTimeout(this._timeout);this._timeout=null}if(!this.activeDraggable){return}this._lastPointer=null;this.activeDraggable.endDrag(a);this.activeDraggable=null},keyPress:function(a){if(this.activeDraggable){this.activeDraggable.keyPress(a)}},addObserver:function(a){this.observers.push(a);this._cacheObserverCallbacks()},removeObserver:function(a){this.observers=this.observers.reject(function(b){return b.element==a});this._cacheObserverCallbacks()},notify:function(b,a,c){if(this[b+"Count"]>0){this.observers.each(function(d){if(d[b]){d[b](b,a,c)}})}if(a.options[b]){a.options[b](a,c)}},_cacheObserverCallbacks:function(){["onStart","onEnd","onDrag"].each(function(a){Draggables[a+"Count"]=Draggables.observers.select(function(b){return b[a]}).length})}};var Draggable=Class.create({initialize:function(b){var c={handle:false,reverteffect:function(f,e,d){var g=Math.sqrt(Math.abs(e^2)+Math.abs(d^2))*0.02;new Effect.Move(f,{x:-d,y:-e,duration:g,queue:{scope:"_draggable",position:"end"}})},endeffect:function(e){var d=Object.isNumber(e._opacity)?e._opacity:1;new Effect.Opacity(e,{duration:0.2,from:0.7,to:d,queue:{scope:"_draggable",position:"end"},afterFinish:function(){Draggable._dragging[e]=false}})},zindex:1000,revert:false,quiet:false,scroll:false,scrollSensitivity:20,scrollSpeed:15,snap:false,delay:0};if(!arguments[1]||Object.isUndefined(arguments[1].endeffect)){Object.extend(c,{starteffect:function(d){d._opacity=Element.getOpacity(d);Draggable._dragging[d]=true;new Effect.Opacity(d,{duration:0.2,from:d._opacity,to:0.7})}})}var a=Object.extend(c,arguments[1]||{});this.element=$(b);if(a.handle&&Object.isString(a.handle)){this.handle=this.element.down("."+a.handle,0)}if(!this.handle){this.handle=$(a.handle)}if(!this.handle){this.handle=this.element}if(a.scroll&&!a.scroll.scrollTo&&!a.scroll.outerHTML){a.scroll=$(a.scroll);this._isScrollChild=Element.childOf(this.element,a.scroll)}Element.makePositioned(this.element);this.options=a;this.dragging=false;this.eventMouseDown=this.initDrag.bindAsEventListener(this);Event.observe(this.handle,"mousedown",this.eventMouseDown);Draggables.register(this)},destroy:function(){Event.stopObserving(this.handle,"mousedown",this.eventMouseDown);Draggables.unregister(this)},currentDelta:function(){return([parseInt(Element.getStyle(this.element,"left")||"0"),parseInt(Element.getStyle(this.element,"top")||"0")])},initDrag:function(a){if(!Object.isUndefined(Draggable._dragging[this.element])&&Draggable._dragging[this.element]){return}if(Event.isLeftClick(a)){var c=Event.element(a);if((tag_name=c.tagName.toUpperCase())&&(tag_name=="INPUT"||tag_name=="SELECT"||tag_name=="OPTION"||tag_name=="BUTTON"||tag_name=="TEXTAREA")){return}var b=[Event.pointerX(a),Event.pointerY(a)];var d=Position.cumulativeOffset(this.element);this.offset=[0,1].map(function(e){return(b[e]-d[e])});Draggables.activate(this);Event.stop(a)}},startDrag:function(b){this.dragging=true;if(!this.delta){this.delta=this.currentDelta()}if(this.options.zindex){this.originalZ=parseInt(Element.getStyle(this.element,"z-index")||0);this.element.style.zIndex=this.options.zindex}if(this.options.ghosting){this._clone=this.element.cloneNode(true);this.element._originallyAbsolute=(this.element.getStyle("position")=="absolute");if(!this.element._originallyAbsolute){Position.absolutize(this.element)}this.element.parentNode.insertBefore(this._clone,this.element)}if(this.options.scroll){if(this.options.scroll==window){var a=this._getWindowScroll(this.options.scroll);this.originalScrollLeft=a.left;this.originalScrollTop=a.top}else{this.originalScrollLeft=this.options.scroll.scrollLeft;this.originalScrollTop=this.options.scroll.scrollTop}}Draggables.notify("onStart",this,b);if(this.options.starteffect){this.options.starteffect(this.element)}},updateDrag:function(event,pointer){if(!this.dragging){this.startDrag(event)}if(!this.options.quiet){Position.prepare();Droppables.show(pointer,this.element)}Draggables.notify("onDrag",this,event);this.draw(pointer);if(this.options.change){this.options.change(this)}if(this.options.scroll){this.stopScrolling();var p;if(this.options.scroll==window){with(this._getWindowScroll(this.options.scroll)){p=[left,top,left+width,top+height]}}else{p=Position.page(this.options.scroll);p[0]+=this.options.scroll.scrollLeft+Position.deltaX;p[1]+=this.options.scroll.scrollTop+Position.deltaY;p.push(p[0]+this.options.scroll.offsetWidth);p.push(p[1]+this.options.scroll.offsetHeight)}var speed=[0,0];if(pointer[0]<(p[0]+this.options.scrollSensitivity)){speed[0]=pointer[0]-(p[0]+this.options.scrollSensitivity)}if(pointer[1]<(p[1]+this.options.scrollSensitivity)){speed[1]=pointer[1]-(p[1]+this.options.scrollSensitivity)}if(pointer[0]>(p[2]-this.options.scrollSensitivity)){speed[0]=pointer[0]-(p[2]-this.options.scrollSensitivity)}if(pointer[1]>(p[3]-this.options.scrollSensitivity)){speed[1]=pointer[1]-(p[3]-this.options.scrollSensitivity)}this.startScrolling(speed)}if(Prototype.Browser.WebKit){window.scrollBy(0,0)}Event.stop(event)},finishDrag:function(b,f){this.dragging=false;if(this.options.quiet){Position.prepare();var e=[Event.pointerX(b),Event.pointerY(b)];Droppables.show(e,this.element)}if(this.options.ghosting){if(!this.element._originallyAbsolute){Position.relativize(this.element)}delete this.element._originallyAbsolute;Element.remove(this._clone);this._clone=null}var g=false;if(f){g=Droppables.fire(b,this.element);if(!g){g=false}}if(g&&this.options.onDropped){this.options.onDropped(this.element)}Draggables.notify("onEnd",this,b);var a=this.options.revert;if(a&&Object.isFunction(a)){a=a(this.element)}var c=this.currentDelta();if(a&&this.options.reverteffect){if(g==0||a!="failure"){this.options.reverteffect(this.element,c[1]-this.delta[1],c[0]-this.delta[0])}}else{this.delta=c}if(this.options.zindex){this.element.style.zIndex=this.originalZ}if(this.options.endeffect){this.options.endeffect(this.element)}Draggables.deactivate(this);Droppables.reset()},keyPress:function(a){if(a.keyCode!=Event.KEY_ESC){return}this.finishDrag(a,false);Event.stop(a)},endDrag:function(a){if(!this.dragging){return}this.stopScrolling();this.finishDrag(a,true);Event.stop(a)},draw:function(a){var g=Position.cumulativeOffset(this.element);if(this.options.ghosting){var c=Position.realOffset(this.element);g[0]+=c[0]-Position.deltaX;g[1]+=c[1]-Position.deltaY}var f=this.currentDelta();g[0]-=f[0];g[1]-=f[1];if(this.options.scroll&&(this.options.scroll!=window&&this._isScrollChild)){g[0]-=this.options.scroll.scrollLeft-this.originalScrollLeft;g[1]-=this.options.scroll.scrollTop-this.originalScrollTop}var e=[0,1].map(function(d){return(a[d]-g[d]-this.offset[d])}.bind(this));if(this.options.snap){if(Object.isFunction(this.options.snap)){e=this.options.snap(e[0],e[1],this)}else{if(Object.isArray(this.options.snap)){e=e.map(function(d,h){return(d/this.options.snap[h]).round()*this.options.snap[h]}.bind(this))}else{e=e.map(function(d){return(d/this.options.snap).round()*this.options.snap}.bind(this))}}}var b=this.element.style;if((!this.options.constraint)||(this.options.constraint=="horizontal")){b.left=e[0]+"px"}if((!this.options.constraint)||(this.options.constraint=="vertical")){b.top=e[1]+"px"}if(b.visibility=="hidden"){b.visibility=""}},stopScrolling:function(){if(this.scrollInterval){clearInterval(this.scrollInterval);this.scrollInterval=null;Draggables._lastScrollPointer=null}},startScrolling:function(a){if(!(a[0]||a[1])){return}this.scrollSpeed=[a[0]*this.options.scrollSpeed,a[1]*this.options.scrollSpeed];this.lastScrolled=new Date();this.scrollInterval=setInterval(this.scroll.bind(this),10)},scroll:function(){var current=new Date();var delta=current-this.lastScrolled;this.lastScrolled=current;if(this.options.scroll==window){with(this._getWindowScroll(this.options.scroll)){if(this.scrollSpeed[0]||this.scrollSpeed[1]){var d=delta/1000;this.options.scroll.scrollTo(left+d*this.scrollSpeed[0],top+d*this.scrollSpeed[1])}}}else{this.options.scroll.scrollLeft+=this.scrollSpeed[0]*delta/1000;this.options.scroll.scrollTop+=this.scrollSpeed[1]*delta/1000}Position.prepare();Droppables.show(Draggables._lastPointer,this.element);Draggables.notify("onDrag",this);if(this._isScrollChild){Draggables._lastScrollPointer=Draggables._lastScrollPointer||$A(Draggables._lastPointer);Draggables._lastScrollPointer[0]+=this.scrollSpeed[0]*delta/1000;Draggables._lastScrollPointer[1]+=this.scrollSpeed[1]*delta/1000;if(Draggables._lastScrollPointer[0]<0){Draggables._lastScrollPointer[0]=0}if(Draggables._lastScrollPointer[1]<0){Draggables._lastScrollPointer[1]=0}this.draw(Draggables._lastScrollPointer)}if(this.options.change){this.options.change(this)}},_getWindowScroll:function(w){var T,L,W,H;with(w.document){if(w.document.documentElement&&documentElement.scrollTop){T=documentElement.scrollTop;L=documentElement.scrollLeft}else{if(w.document.body){T=body.scrollTop;L=body.scrollLeft}}if(w.innerWidth){W=w.innerWidth;H=w.innerHeight}else{if(w.document.documentElement&&documentElement.clientWidth){W=documentElement.clientWidth;H=documentElement.clientHeight}else{W=body.offsetWidth;H=body.offsetHeight}}}return{top:T,left:L,width:W,height:H}}});Draggable._dragging={};var SortableObserver=Class.create({initialize:function(b,a){this.element=$(b);this.observer=a;this.lastValue=Sortable.serialize(this.element)},onStart:function(){this.lastValue=Sortable.serialize(this.element)},onEnd:function(){Sortable.unmark();if(this.lastValue!=Sortable.serialize(this.element)){this.observer(this.element)}}});var Sortable={SERIALIZE_RULE:/^[^_\-](?:[A-Za-z0-9\-\_]*)[_](.*)$/,sortables:{},_findRootElement:function(a){while(a.tagName.toUpperCase()!="BODY"){if(a.id&&Sortable.sortables[a.id]){return a}a=a.parentNode}},options:function(a){a=Sortable._findRootElement($(a));if(!a){return}return Sortable.sortables[a.id]},destroy:function(a){var b=Sortable.options(a);if(b){Draggables.removeObserver(b.element);b.droppables.each(function(c){Droppables.remove(c)});b.draggables.invoke("destroy");delete Sortable.sortables[b.element.id]}},create:function(c){c=$(c);var b=Object.extend({element:c,tag:"li",dropOnEmpty:false,tree:false,treeTag:"ul",overlap:"vertical",constraint:"vertical",containment:c,handle:false,only:false,delay:0,hoverclass:null,ghosting:false,quiet:false,scroll:false,scrollSensitivity:20,scrollSpeed:15,format:this.SERIALIZE_RULE,elements:false,handles:false,onChange:Prototype.emptyFunction,onUpdate:Prototype.emptyFunction},arguments[1]||{});this.destroy(c);var a={revert:true,quiet:b.quiet,scroll:b.scroll,scrollSpeed:b.scrollSpeed,scrollSensitivity:b.scrollSensitivity,delay:b.delay,ghosting:b.ghosting,constraint:b.constraint,handle:b.handle};if(b.starteffect){a.starteffect=b.starteffect}if(b.reverteffect){a.reverteffect=b.reverteffect}else{if(b.ghosting){a.reverteffect=function(f){f.style.top=0;f.style.left=0}}}if(b.endeffect){a.endeffect=b.endeffect}if(b.zindex){a.zindex=b.zindex}var d={overlap:b.overlap,containment:b.containment,tree:b.tree,hoverclass:b.hoverclass,onHover:Sortable.onHover};var e={onHover:Sortable.onEmptyHover,overlap:b.overlap,containment:b.containment,hoverclass:b.hoverclass};Element.cleanWhitespace(c);b.draggables=[];b.droppables=[];if(b.dropOnEmpty||b.tree){Droppables.add(c,e);b.droppables.push(c)}(b.elements||this.findElements(c,b)||[]).each(function(h,f){var g=b.handles?$(b.handles[f]):(b.handle?$(h).select("."+b.handle)[0]:h);b.draggables.push(new Draggable(h,Object.extend(a,{handle:g})));Droppables.add(h,d);if(b.tree){h.treeNode=c}b.droppables.push(h)});if(b.tree){(Sortable.findTreeElements(c,b)||[]).each(function(f){Droppables.add(f,e);f.treeNode=c;b.droppables.push(f)})}this.sortables[c.id]=b;Draggables.addObserver(new SortableObserver(c,b.onUpdate))},findElements:function(b,a){return Element.findChildren(b,a.only,a.tree?true:false,a.tag)},findTreeElements:function(b,a){return Element.findChildren(b,a.only,a.tree?true:false,a.treeTag)},onHover:function(e,d,a){if(Element.isParent(d,e)){return}if(a>0.33&&a<0.66&&Sortable.options(d).tree){return}else{if(a>0.5){Sortable.mark(d,"before");if(d.previousSibling!=e){var b=e.parentNode;e.style.visibility="hidden";d.parentNode.insertBefore(e,d);if(d.parentNode!=b){Sortable.options(b).onChange(e)}Sortable.options(d.parentNode).onChange(e)}}else{Sortable.mark(d,"after");var c=d.nextSibling||null;if(c!=e){var b=e.parentNode;e.style.visibility="hidden";d.parentNode.insertBefore(e,c);if(d.parentNode!=b){Sortable.options(b).onChange(e)}Sortable.options(d.parentNode).onChange(e)}}}},onEmptyHover:function(e,g,h){var j=e.parentNode;var a=Sortable.options(g);if(!Element.isParent(g,e)){var f;var c=Sortable.findElements(g,{tag:a.tag,only:a.only});var b=null;if(c){var d=Element.offsetSize(g,a.overlap)*(1-h);for(f=0;f<c.length;f+=1){if(d-Element.offsetSize(c[f],a.overlap)>=0){d-=Element.offsetSize(c[f],a.overlap)}else{if(d-(Element.offsetSize(c[f],a.overlap)/2)>=0){b=f+1<c.length?c[f+1]:null;break}else{b=c[f];break}}}}g.insertBefore(e,b);Sortable.options(j).onChange(e);a.onChange(e)}},unmark:function(){if(Sortable._marker){Sortable._marker.hide()}},mark:function(b,a){var d=Sortable.options(b.parentNode);if(d&&!d.ghosting){return}if(!Sortable._marker){Sortable._marker=($("dropmarker")||Element.extend(document.createElement("DIV"))).hide().addClassName("dropmarker").setStyle({position:"absolute"});document.getElementsByTagName("body").item(0).appendChild(Sortable._marker)}var c=Position.cumulativeOffset(b);Sortable._marker.setStyle({left:c[0]+"px",top:c[1]+"px"});if(a=="after"){if(d.overlap=="horizontal"){Sortable._marker.setStyle({left:(c[0]+b.clientWidth)+"px"})}else{Sortable._marker.setStyle({top:(c[1]+b.clientHeight)+"px"})}}Sortable._marker.show()},_tree:function(e,b,f){var d=Sortable.findElements(e,b)||[];for(var c=0;c<d.length;++c){var a=d[c].id.match(b.format);if(!a){continue}var g={id:encodeURIComponent(a?a[1]:null),element:e,parent:f,children:[],position:f.children.length,container:$(d[c]).down(b.treeTag)};if(g.container){this._tree(g.container,b,g)}f.children.push(g)}return f},tree:function(d){d=$(d);var c=this.options(d);var b=Object.extend({tag:c.tag,treeTag:c.treeTag,only:c.only,name:d.id,format:c.format},arguments[1]||{});var a={id:null,parent:null,children:[],container:d,position:0};return Sortable._tree(d,b,a)},_constructIndex:function(b){var a="";do{if(b.id){a="["+b.position+"]"+a}}while((b=b.parent)!=null);return a},sequence:function(b){b=$(b);var a=Object.extend(this.options(b),arguments[1]||{});return $(this.findElements(b,a)||[]).map(function(c){return c.id.match(a.format)?c.id.match(a.format)[1]:""})},setSequence:function(b,c){b=$(b);var a=Object.extend(this.options(b),arguments[2]||{});var d={};this.findElements(b,a).each(function(e){if(e.id.match(a.format)){d[e.id.match(a.format)[1]]=[e,e.parentNode]}e.parentNode.removeChild(e)});c.each(function(e){var f=d[e];if(f){f[1].appendChild(f[0]);delete d[e]}})},serialize:function(c){c=$(c);var b=Object.extend(Sortable.options(c),arguments[1]||{});var a=encodeURIComponent((arguments[1]&&arguments[1].name)?arguments[1].name:c.id);if(b.tree){return Sortable.tree(c,arguments[1]).children.map(function(d){return[a+Sortable._constructIndex(d)+"[id]="+encodeURIComponent(d.id)].concat(d.children.map(arguments.callee))}).flatten().join("&")}else{return Sortable.sequence(c,arguments[1]).map(function(d){return a+"[]="+encodeURIComponent(d)}).join("&")}}};Element.isParent=function(b,a){if(!b.parentNode||b==a){return false}if(b.parentNode==a){return true}return Element.isParent(b.parentNode,a)};Element.findChildren=function(d,b,a,c){if(!d.hasChildNodes()){return null}c=c.toUpperCase();if(b){b=[b].flatten()}var e=[];$A(d.childNodes).each(function(g){if(g.tagName&&g.tagName.toUpperCase()==c&&(!b||(Element.classNames(g).detect(function(h){return b.include(h)})))){e.push(g)}if(a){var f=Element.findChildren(g,b,a,c);if(f){e.push(f)}}});return(e.length>0?e.flatten():[])};Element.offsetSize=function(a,b){return a["offset"+((b=="vertical"||b=="height")?"Height":"Width")]};
var Autocompleter={};Autocompleter.Base=function(){};Autocompleter.Base.prototype={base_initialize:function(b,d,a){this.element=$(b);this.update=$(d);this.has_focus=false;this.changed=false;this.active=false;this.index=0;this.entry_count=0;this.AllowedPattern=/^[0-9a-zA-Z-_!\.&Ã¤Ã¶Ã¼Ã„Ã–ÃœÃŸ\s]{0,30}$/;$(b).setAttribute("autocomplete","off");$("IDMS_autocomplete_choices").style.visibility="visible";if(this.setOptions){this.setOptions(a)}else{this.options={}}this.options.tokens=this.options.tokens||new Array();this.options.frequency=this.options.frequency||0.1;this.options.min_chars=this.options.min_chars||1;this.options.show_entry=this.options.show_entry||25;this.options.form_action=this.options.form_action||this.element.up().action;this.options.ask_backend=this.options.ask_backend||3;this.options.onShow=this.options.onShow||function(f,k){if(!k.style.position||k.style.position=="absolute"){var e=0;var h=5;if($("superbanner")){e+=$("superbanner").offsetHeight;e+=20}if($("leaderboard")){e+=$("leaderboard").offsetHeight}if($("bannerGarbage")){e+=$("bannerGarbage").offsetHeight}if($("ivwimg")){e+=$("ivwimg").offsetHeight}if($("ADS_Top1")){e+=$("ADS_Top1").offsetHeight}k.style.position="absolute";var g=Position.cumulativeOffset(f);k.style.left=(g[0]-h)+"px";k.style.top=(g[1]+f.offsetHeight-e)+"px"}new Effect.Appear(k,{duration:0.15})};this.options.onHide=this.options.onHide||function(e,f){new Effect.Fade(f,{duration:0.15})};if(this.options.indicator){this.indicator=$(this.options.indicator)}if(typeof(this.options.tokens)=="string"){this.options.tokens=new Array(this.options.tokens)}this.observer=null;Element.hide(this.update);Event.observe(this.element,"blur",this.onBlur.bindAsEventListener(this));Event.observe(this.element,"keypress",this.onKeyPress.bindAsEventListener(this))},setRightPosition:function(){var a=Position.cumulativeOffset($(this.element.id));$("IDMS_autocomplete_choices").style.top=(a[1]+18)+"px";$("IDMS_autocomplete_choices").style.left=a[0]+"px"},show:function(){if(this.update.style.display=="none"){this.options.onShow(this.element,this.update)}if(!this.iefix&&(navigator.appVersion.indexOf("MSIE")>0)&&this.update.style.position=="absolute"){}if(this.iefix){Position.clone(this.update,this.iefix);this.iefix.style.zIndex=1;this.update.style.zIndex=2;Element.show(this.iefix)}},hide:function(){if(this.update.style.display==""){this.options.onHide(this.element,this.update)}if(this.iefix){Element.hide(this.iefix)}},startIndicator:function(){},stopIndicator:function(){},onKeyPress:function(a){if(this.active){switch(a.keyCode){case Event.KEY_TAB:case Event.KEY_RETURN:case Event.KEY_ESC:this.hide();this.active=false;return;case Event.KEY_LEFT:case Event.KEY_RIGHT:return;case Event.KEY_UP:this.mark_previous();this.render();if(navigator.appVersion.indexOf("AppleWebKit")>0){Event.stop(a)}return;case Event.KEY_DOWN:this.mark_next();this.render();if(navigator.appVersion.indexOf("AppleWebKit")>0){Event.stop(a)}return}}else{this.changed=true}this.has_focus=true;if(this.observer){clearTimeout(this.observer)}this.observer=setTimeout(this.onObserverEvent.bind(this),this.options.frequency*1000)},onHover:function(b){var a=Event.findElement(b,"LI");if(this.index!=a.autocompleteIndex){this.index=a.autocompleteIndex;this.render()}Event.stop(b)},onClick:function(a){},onBlur:function(a){setTimeout(this.hide.bind(this),0);this.has_focus=false;this.active=false;if($("IDMS_inspector")){window.setTimeout("$('IDMS_inspector').style.visibility='visible'",100)}if($("IDMS_miniChart_3")){window.setTimeout("$('IDMS_miniChart_3').style.visibility='visible'",100)}},checkForFactsheet:function(){this.element.up().action=this.options.form_action;if(this.entry_count>0){for(var a=0;a<this.entry_count;a++){if(this.index==a&&$("link_"+a)){if($("link_"+a).readAttribute("href")!=""){this.element.up().action=$("link_"+a).readAttribute("href")}}}}},render:function(){if(this.entry_count>0){for(var a=0;a<this.entry_count;a++){if(this.index==a){Element.addClassName(this.get_entry(a),"selected");this.checkForFactsheet()}else{Element.removeClassName(this.get_entry(a),"selected")}}if(this.has_focus){if(this.get_current_entry().scrollIntoView){this.show()}this.active=true}}else{this.hide()}},mark_previous:function(){if(this.index>0){this.index--}else{this.index=this.entry_count-1}},mark_next:function(){if(this.index<this.entry_count-1){this.index++}else{this.index=0}},get_entry:function(a){return this.update.firstChild.childNodes[a]},get_current_entry:function(){return this.get_entry(this.index)},updateChoices:function(b){if(!this.changed&&this.has_focus){this.update.innerHTML=b;Element.cleanWhitespace(this.update);Element.cleanWhitespace(this.update.firstChild);if(this.update.firstChild&&this.update.firstChild.childNodes){this.entry_count=this.update.firstChild.childNodes.length;for(var a=0;a<this.entry_count;a++){entry=this.get_entry(a);entry.autocompleteIndex=a;this.addObservers(entry)}}else{this.entry_count=0}this.stopIndicator();this.index=0;this.render()}},addObservers:function(a){Event.observe(a,"mouseover",this.onHover.bindAsEventListener(this));Event.observe(a,"click",this.onClick.bindAsEventListener(this))},onObserverEvent:function(){this.changed=false;if(this.getEntry().length>=this.options.min_chars){this.startIndicator();this.getUpdatedChoices()}else{this.active=false;this.hide()}},getEntry:function(){var b=this.findLastToken();if(b!=-1){var a=this.element.value.substr(b+1).replace(/^\s+/,"").replace(/\s+$/,"")}else{var a=this.element.value}return/\n/.test(a)?"":a},findLastToken:function(){var d=-1;for(var b=0;b<this.options.tokens.length;b++){var a=this.element.value.lastIndexOf(this.options.tokens[b]);if(a>d){d=a}}return d},buildSuggestList:function(aInput){var d=new Array();d.NEW=new Array();d.STO=new Array();d.BON=new Array();d.FUN=new Array();d.IND=new Array();d.COM=new Array();d.MET=new Array();d.CUR=new Array();if(!(aInput==undefined)){eval(aInput)}var aTranslate=new Array();var aInstrument=new Array();aInstrument.STO=new Array();aInstrument.STO["NAME"]=new Array();aInstrument.STO["ID_NOTATION"]=new Array();aInstrument.STO["ISIN"]=new Array();aInstrument.BON=new Array();aInstrument.BON["NAME"]=new Array();aInstrument.BON["ID_NOTATION"]=new Array();aInstrument.BON["ISIN"]=new Array();aInstrument.FUN=new Array();aInstrument.FUN["NAME"]=new Array();aInstrument.FUN["ID_NOTATION"]=new Array();aInstrument.FUN["ISIN"]=new Array();aInstrument.IND=new Array();aInstrument.IND["NAME"]=new Array();aInstrument.IND["ID_NOTATION"]=new Array();aInstrument.IND["ISIN"]=new Array();aInstrument.COM=new Array();aInstrument.COM["NAME"]=new Array();aInstrument.COM["ID_NOTATION"]=new Array();aInstrument.COM["ISIN"]=new Array();aInstrument.MET=new Array();aInstrument.MET["NAME"]=new Array();aInstrument.MET["ID_NOTATION"]=new Array();aInstrument.MET["ISIN"]=new Array();aInstrument.CUR=new Array();aInstrument.CUR["NAME"]=new Array();aInstrument.CUR["ID_NOTATION"]=new Array();aInstrument.CUR["ISIN"]=new Array();var aToolMatchesFound=new Array();var iLinkNumber=0;var sSearchValue=(this.getEntry().match(this.AllowedPattern))?this.getEntry().toUpperCase():"sign not allowed";var sSearchPattern=new RegExp(""+sSearchValue+"","i");var sToHighLite="";var sHightLite="";var aTools=new Array("STO","BON","FUN","IND","COM","MET","CUR");var aToolMatches=new Array();var aToolName=new Array();var aToolUrl=new Array();aToolMatchesFound.STO=0;aToolMatches.STO=8;aToolName.STO="Acciones";aToolUrl.STO="";aToolMatchesFound.BON=0;aToolMatches.BON=5;aToolName.BON="Bonos y Tasas";aToolUrl.BON="";aToolMatchesFound.FUN=0;aToolMatches.FUN=8;aToolName.FUN="Fondos";aToolUrl.FUN="";aToolMatchesFound.IND=0;aToolMatches.IND=5;aToolName.IND="Indices";aToolUrl.IND="";aToolMatchesFound.COM=0;aToolMatches.COM=5;aToolName.COM="Materias primas";aToolUrl.COM="";aToolMatchesFound.MET=0;aToolMatches.MET=2;aToolName.MET="Metales";aToolUrl.MET="";aToolMatchesFound.CUR=0;aToolMatches.CUR=5;aToolName.CUR="Monedas";aToolUrl.CUR="";for(i=0;i<aTools.length;i++){var iName=0;var iIdNotation=1;var iIsin=2;var iDatasetOffset=3;var sTool=aTools[i];var iCount=(s[sTool]).length;sSearchValue=sSearchValue.replace(/Ã¤/i,"AE");sSearchValue=sSearchValue.replace(/Ã¶/i,"OE");sSearchValue=sSearchValue.replace(/Ã¼/i,"UE");sSearchValue=(aTranslate[sSearchValue]==undefined)?sSearchValue:aTranslate[sSearchValue];var sSearchPattern=new RegExp(""+sSearchValue+"","i");for(j=0;j<iCount;j+=iDatasetOffset){if(aToolMatchesFound[sTool]>=aToolMatches[sTool]){break}else{if((s[sTool][iName]+"|"+s[sTool][iIsin]).match(sSearchPattern)){if((aInstrument[sTool]["NAME"].indexOf(s[sTool][iName]))=="-1"&&s[sTool][iIdNotation]!=""){aInstrument[sTool]["NAME"].push(s[sTool][iName]);aInstrument[sTool]["ID_NOTATION"].push(s[sTool][iIdNotation]);aInstrument[sTool]["ISIN"].push(s[sTool][iIsin]);aToolMatchesFound[sTool]++}}iName+=iDatasetOffset;iIdNotation+=iDatasetOffset;iIsin+=iDatasetOffset}}}for(i=0;i<aTools.length;i++){var iName=0;var iIdNotation=1;var iIsin=2;var iDatasetOffset=3;var sTool=aTools[i];var iCount=(d[sTool]).length;for(j=0;j<iCount;j+=iDatasetOffset){if(aToolMatchesFound[sTool]>=aToolMatches[sTool]){break}else{if((aInstrument[sTool]["NAME"].indexOf(d[sTool][iName]))=="-1"&&d[sTool][iIdNotation]!=""){aInstrument[sTool]["NAME"].push(d[sTool][iName]);aInstrument[sTool]["ID_NOTATION"].push(d[sTool][iIdNotation]);aInstrument[sTool]["ISIN"].push(d[sTool][iIsin]);aToolMatchesFound[sTool]++}}iName+=iDatasetOffset;iIdNotation+=iDatasetOffset;iIsin+=iDatasetOffset}}var SuggestList="<ul>";for(i=0;i<aTools.length;i++){sTool=aTools[i];iCount=(aInstrument[sTool]["NAME"]).length;if(iCount>0){$sIeFix=(navigator.userAgent.indexOf("MSIE")!="-1")?'style="margin-top:-1px"':"";SuggestList+='<li class="gIDMS_Suggestheader" '+$sIeFix+">"+aToolName[sTool]+" ("+iCount+")</li>";iLinkNumber+=1;for(j=0;j<iCount;j++){SuggestList+="<li>";sToHighLite=(aInstrument[sTool]["NAME"][j]).substr(0,19);sHightLite=sToHighLite.replace(sSearchPattern,"<b>"+sSearchValue+"</b>");sIsin=aInstrument[sTool]["ISIN"][j];iIdNotation=aInstrument[sTool]["ID_NOTATION"][j];iIdNotation2=(sTool=="CUR"||sTool=="FUN"||sTool=="MET")?iIdNotation:(iIdNotation.substr(2,iIdNotation.length));sName=aInstrument[sTool]["NAME"][j];sTmpSearchValue=(sTool=="NEW")?sName:sSearchValue;SuggestList+='<div class="gIDMS_Suggest1Col"><a id="link_'+iLinkNumber+'" title="'+sName+'" onClick="javascript:SuggestCallback(\''+sTool+"','"+sName+"','"+iIdNotation2+"','"+sIsin+"')\">"+sHightLite+"</a></div>";sIsin=(sTool=="CUR")?sIsin:sIsin.substr(0,11);sToHighLite=sIsin;sHightLite=sToHighLite.replace(sSearchPattern,"<b>"+sSearchValue+"</b>");sHightLite=(sHightLite=="")?"&nbsp;":sHightLite;SuggestList+='<div class="gIDMS_Suggest2Col"><a id="link_'+iLinkNumber+'" title="'+sName+'" onClick="javascript:SuggestCallback(\''+sTool+"','"+sName+"','"+iIdNotation2+"','"+sIsin+"')\">"+sHightLite+"</a></div>";sFlagId=(sTool=="CUR"||sTool=="FUN"||sTool=="MET")?"":(iIdNotation.substr(0,2));sCountry=(c[sFlagId]==undefined)?"":c[sFlagId];sFlag='<img title="'+sCountry+'" src="../images/flags/'+sFlagId.toLowerCase()+'_flag.gif" alt="" />';SuggestList+='<div class="gIDMS_Suggest0Col"><a id="link_'+iLinkNumber+'" title="'+sName+'" onClick="javascript:SuggestCallback(\''+sTool+"','"+sName+"','"+iIdNotation2+"','"+sIsin+"')\">"+sFlag+"</a></div>";SuggestList+="</li>";iLinkNumber+=1}}}SuggestList+="</ul>";this.updateChoices(SuggestList)}};Ajax.Autocompleter=Class.create();Ajax.Autocompleter.prototype=Object.extend(new Autocompleter.Base(),Object.extend(new Ajax.Base(),{initialize:function(d,e,b,a){this.base_initialize(d,e,a);this.options.asynchronous=true;this.options.onComplete=this.onComplete.bind(this);this.options.method="get";this.url=b},getUpdatedChoices:function(){entry=encodeURIComponent(this.element.name)+"="+encodeURIComponent(this.getEntry());this.options.parameters=this.options.callback?this.options.callback(this.element,entry):entry;if(this.getEntry().length>=this.options.ask_backend&&this.getEntry().match(this.AllowedPattern)){this.buildSuggestList();if(Scheduler.aInterval.IDMS_autocomplete_choices==undefined){var a=new Date();Scheduler.subscribe("IDMS_autocomplete_choices","load","");new Ajax.Request(this.url,this.options)}}else{this.buildSuggestList()}},
onComplete:function(a){
this.buildSuggestList(a.responseText);
Scheduler.unsubscribe("IDMS_autocomplete_choices");
Scheduler.ajaxSnippetCallback("IDMS_autocomplete_choices")
}}));
var Autocompleter_compare={};Autocompleter_compare.Base=function(){};Autocompleter_compare.Base.prototype={base_initialize:function(b,d,a){this.element=$(b);this.update=$(d);this.has_focus=false;this.changed=false;this.active=false;this.index=0;this.entry_count=0;this.AllowedPattern=/^[0-9a-zA-Z-_!\.&Ã¤Ã¶Ã¼Ã„Ã–ÃœÃŸ\s]{0,30}$/;$(b).setAttribute("autocomplete","off");$("IDMS_autocomplete_choices_compare").style.visibility="visible";if(this.setOptions){this.setOptions(a)}else{this.options={}}this.options.tokens=this.options.tokens||new Array();this.options.frequency=this.options.frequency||0.1;this.options.min_chars=this.options.min_chars||1;this.options.show_entry=this.options.show_entry||25;this.options.form_action=this.options.form_action||this.element.up().action;this.options.ask_backend=this.options.ask_backend||3;this.options.onShow=this.options.onShow||function(f,k){if(!k.style.position||k.style.position=="absolute"){var e=0;var h=5;if($("superbanner")){e+=$("superbanner").offsetHeight;e+=20}if($("leaderboard")){e+=$("leaderboard").offsetHeight}if($("bannerGarbage")){e+=$("bannerGarbage").offsetHeight}if($("ivwimg")){e+=$("ivwimg").offsetHeight}if($("ADS_Top1")){e+=$("ADS_Top1").offsetHeight}k.style.position="absolute";var g=Position.cumulativeOffset(f);k.style.left="5px";k.style.top="64px"}new Effect.Appear(k,{duration:0.15})};this.options.onHide=this.options.onHide||function(e,f){new Effect.Fade(f,{duration:0.15})};if(this.options.indicator){this.indicator=$(this.options.indicator)}if(typeof(this.options.tokens)=="string"){this.options.tokens=new Array(this.options.tokens)}this.observer=null;Element.hide(this.update);Event.observe(this.element,"blur",this.onBlur.bindAsEventListener(this));Event.observe(this.element,"keypress",this.onKeyPress.bindAsEventListener(this))},setRightPosition:function(){var a=Position.cumulativeOffset($(this.element.id));$("IDMS_autocomplete_choices_compare").style.top=(a[1]+18)+"px";$("IDMS_autocomplete_choices_compare").style.left=a[0]+"px"},show:function(){if(this.update.style.display=="none"){this.options.onShow(this.element,this.update)}if(!this.iefix&&(navigator.appVersion.indexOf("MSIE")>0)&&this.update.style.position=="absolute"){}if(this.iefix){Position.clone(this.update,this.iefix);this.iefix.style.zIndex=1;this.update.style.zIndex=2;Element.show(this.iefix)}},hide:function(){if(this.update.style.display==""){this.options.onHide(this.element,this.update)}if(this.iefix){Element.hide(this.iefix)}},startIndicator:function(){},stopIndicator:function(){},onKeyPress:function(a){if(this.active){switch(a.keyCode){case Event.KEY_TAB:case Event.KEY_RETURN:case Event.KEY_ESC:this.hide();this.active=false;return;case Event.KEY_LEFT:case Event.KEY_RIGHT:return;case Event.KEY_UP:this.mark_previous();this.render();if(navigator.appVersion.indexOf("AppleWebKit")>0){Event.stop(a)}return;case Event.KEY_DOWN:this.mark_next();this.render();if(navigator.appVersion.indexOf("AppleWebKit")>0){Event.stop(a)}return}}else{this.changed=true}this.has_focus=true;if(this.observer){clearTimeout(this.observer)}this.observer=setTimeout(this.onObserverEvent.bind(this),this.options.frequency*1000)},onHover:function(b){var a=Event.findElement(b,"LI");if(this.index!=a.autocompleteIndex){this.index=a.autocompleteIndex;this.render()}Event.stop(b)},onClick:function(a){},onBlur:function(a){setTimeout(this.hide.bind(this),0);this.has_focus=false;this.active=false;if($("IDMS_inspector")){window.setTimeout("$('IDMS_inspector').style.visibility='visible'",100)}if($("IDMS_miniChart_3")){window.setTimeout("$('IDMS_miniChart_3').style.visibility='visible'",100)}},checkForFactsheet:function(){this.element.up().action=this.options.form_action;if(this.entry_count>0){for(var a=0;a<this.entry_count;a++){if(this.index==a&&$("link_"+a)){if($("link_"+a).readAttribute("href")!=""){this.element.up().action=$("link_"+a).readAttribute("href")}}}}},render:function(){if(this.entry_count>0){for(var a=0;a<this.entry_count;a++){if(this.index==a){Element.addClassName(this.get_entry(a),"selected");this.checkForFactsheet()}else{Element.removeClassName(this.get_entry(a),"selected")}}if(this.has_focus){if(this.get_current_entry().scrollIntoView){this.show()}this.active=true}}else{this.hide()}},mark_previous:function(){if(this.index>0){this.index--}else{this.index=this.entry_count-1}},mark_next:function(){if(this.index<this.entry_count-1){this.index++}else{this.index=0}},get_entry:function(a){return this.update.firstChild.childNodes[a]},get_current_entry:function(){return this.get_entry(this.index)},updateChoices:function(b){if(!this.changed&&this.has_focus){this.update.innerHTML=b;Element.cleanWhitespace(this.update);Element.cleanWhitespace(this.update.firstChild);if(this.update.firstChild&&this.update.firstChild.childNodes){this.entry_count=this.update.firstChild.childNodes.length;for(var a=0;a<this.entry_count;a++){entry=this.get_entry(a);entry.autocompleteIndex=a;this.addObservers(entry)}}else{this.entry_count=0}this.stopIndicator();this.index=0;this.render()}},addObservers:function(a){Event.observe(a,"mouseover",this.onHover.bindAsEventListener(this));Event.observe(a,"click",this.onClick.bindAsEventListener(this))},onObserverEvent:function(){this.changed=false;if(this.getEntry().length>=this.options.min_chars){this.startIndicator();this.getUpdatedChoices()}else{this.active=false;this.hide()}},getEntry:function(){var b=this.findLastToken();if(b!=-1){var a=this.element.value.substr(b+1).replace(/^\s+/,"").replace(/\s+$/,"")}else{var a=this.element.value}return/\n/.test(a)?"":a},findLastToken:function(){var d=-1;for(var b=0;b<this.options.tokens.length;b++){var a=this.element.value.lastIndexOf(this.options.tokens[b]);if(a>d){d=a}}return d},buildSuggestList:function(aInput){var d=new Array();d.NEW=new Array();d.STO=new Array();d.BON=new Array();d.FUN=new Array();d.IND=new Array();d.COM=new Array();d.MET=new Array();d.CUR=new Array();if(!(aInput==undefined)){eval(aInput)}var aTranslate=new Array();var aInstrument=new Array();aInstrument.STO=new Array();aInstrument.STO["NAME"]=new Array();aInstrument.STO["ID_NOTATION"]=new Array();aInstrument.STO["ISIN"]=new Array();aInstrument.BON=new Array();aInstrument.BON["NAME"]=new Array();aInstrument.BON["ID_NOTATION"]=new Array();aInstrument.BON["ISIN"]=new Array();aInstrument.FUN=new Array();aInstrument.FUN["NAME"]=new Array();aInstrument.FUN["ID_NOTATION"]=new Array();aInstrument.FUN["ISIN"]=new Array();aInstrument.IND=new Array();aInstrument.IND["NAME"]=new Array();aInstrument.IND["ID_NOTATION"]=new Array();aInstrument.IND["ISIN"]=new Array();aInstrument.COM=new Array();aInstrument.COM["NAME"]=new Array();aInstrument.COM["ID_NOTATION"]=new Array();aInstrument.COM["ISIN"]=new Array();aInstrument.MET=new Array();aInstrument.MET["NAME"]=new Array();aInstrument.MET["ID_NOTATION"]=new Array();aInstrument.MET["ISIN"]=new Array();aInstrument.CUR=new Array();aInstrument.CUR["NAME"]=new Array();aInstrument.CUR["ID_NOTATION"]=new Array();aInstrument.CUR["ISIN"]=new Array();var aToolMatchesFound=new Array();var iLinkNumber=0;var sSearchValue=(this.getEntry().match(this.AllowedPattern))?this.getEntry().toUpperCase():"sign not allowed";var sSearchPattern=new RegExp(""+sSearchValue+"","i");var sToHighLite="";var sHightLite="";var aTools=new Array("STO","BON","FUN","IND","COM","MET","CUR");var aToolMatches=new Array();var aToolName=new Array();var aToolUrl=new Array();aToolMatchesFound.STO=0;aToolMatches.STO=8;aToolName.STO="Acciones";aToolUrl.STO="";aToolMatchesFound.BON=0;aToolMatches.BON=5;aToolName.BON="Bonos y Tasas";aToolUrl.BON="";aToolMatchesFound.FUN=0;aToolMatches.FUN=8;aToolName.FUN="Fondos";aToolUrl.FUN="";aToolMatchesFound.IND=0;aToolMatches.IND=5;aToolName.IND="Indices";aToolUrl.IND="";aToolMatchesFound.COM=0;aToolMatches.COM=5;aToolName.COM="Materias primas";aToolUrl.COM="";aToolMatchesFound.MET=0;aToolMatches.MET=2;aToolName.MET="Metales";aToolUrl.MET="";aToolMatchesFound.CUR=0;aToolMatches.CUR=5;aToolName.CUR="Monedas";aToolUrl.CUR="";for(i=0;i<aTools.length;i++){var iName=0;var iIdNotation=1;var iIsin=2;var iDatasetOffset=3;var sTool=aTools[i];var iCount=(s[sTool]).length;sSearchValue=sSearchValue.replace(/Ã¤/i,"AE");sSearchValue=sSearchValue.replace(/Ã¶/i,"OE");sSearchValue=sSearchValue.replace(/Ã¼/i,"UE");sSearchValue=(aTranslate[sSearchValue]==undefined)?sSearchValue:aTranslate[sSearchValue];var sSearchPattern=new RegExp(""+sSearchValue+"","i");for(j=0;j<iCount;j+=iDatasetOffset){if(aToolMatchesFound[sTool]>=aToolMatches[sTool]){break}else{if((s[sTool][iName]+"|"+s[sTool][iIsin]).match(sSearchPattern)){if((aInstrument[sTool]["NAME"].indexOf(s[sTool][iName]))=="-1"&&s[sTool][iIdNotation]!=""){aInstrument[sTool]["NAME"].push(s[sTool][iName]);aInstrument[sTool]["ID_NOTATION"].push(s[sTool][iIdNotation]);aInstrument[sTool]["ISIN"].push(s[sTool][iIsin]);aToolMatchesFound[sTool]++}}iName+=iDatasetOffset;iIdNotation+=iDatasetOffset;iIsin+=iDatasetOffset}}}for(i=0;i<aTools.length;i++){var iName=0;var iIdNotation=1;var iIsin=2;var iDatasetOffset=3;var sTool=aTools[i];var iCount=(d[sTool]).length;for(j=0;j<iCount;j+=iDatasetOffset){if(aToolMatchesFound[sTool]>=aToolMatches[sTool]){break}else{if((aInstrument[sTool]["NAME"].indexOf(d[sTool][iName]))=="-1"&&d[sTool][iIdNotation]!=""){aInstrument[sTool]["NAME"].push(d[sTool][iName]);aInstrument[sTool]["ID_NOTATION"].push(d[sTool][iIdNotation]);aInstrument[sTool]["ISIN"].push(d[sTool][iIsin]);aToolMatchesFound[sTool]++}}iName+=iDatasetOffset;iIdNotation+=iDatasetOffset;iIsin+=iDatasetOffset}}var SuggestList="<ul>";for(i=0;i<aTools.length;i++){sTool=aTools[i];iCount=(aInstrument[sTool]["NAME"]).length;if(iCount>0){$sIeFix=(navigator.userAgent.indexOf("MSIE")!="-1")?'style="margin-top:-1px"':"";SuggestList+='<li class="gIDMS_Suggestheader" '+$sIeFix+">"+aToolName[sTool]+" ("+iCount+")</li>";iLinkNumber+=1;for(j=0;j<iCount;j++){SuggestList+="<li>";sToHighLite=(aInstrument[sTool]["NAME"][j]).substr(0,19);sHightLite=sToHighLite.replace(sSearchPattern,"<b>"+sSearchValue+"</b>");sIsin=aInstrument[sTool]["ISIN"][j];iIdNotation=aInstrument[sTool]["ID_NOTATION"][j];iIdNotation2=(sTool=="CUR"||sTool=="FUN"||sTool=="MET")?iIdNotation:(iIdNotation.substr(2,iIdNotation.length));sName=aInstrument[sTool]["NAME"][j];sTmpSearchValue=(sTool=="NEW")?sName:sSearchValue;SuggestList+='<div class="gIDMS_Suggest1Col"><a id="link_'+iLinkNumber+'" title="'+sName+'" onClick="javascript:SuggestCallback_compare(\''+sTool+"','"+sName+"','"+iIdNotation2+"','"+sIsin+"')\">"+sHightLite+"</a></div>";sIsin=(sTool=="CUR")?sIsin:sIsin.substr(0,11);sToHighLite=sIsin;sHightLite=sToHighLite.replace(sSearchPattern,"<b>"+sSearchValue+"</b>");sHightLite=(sHightLite=="")?"&nbsp;":sHightLite;SuggestList+='<div class="gIDMS_Suggest2Col"><a id="link_'+iLinkNumber+'" title="'+sName+'" onClick="javascript:SuggestCallback_compare(\''+sTool+"','"+sName+"','"+iIdNotation2+"','"+sIsin+"')\">"+sHightLite+"</a></div>";sFlagId=(sTool=="CUR"||sTool=="FUN"||sTool=="MET")?"":(iIdNotation.substr(0,2));sCountry=(c[sFlagId]==undefined)?"":c[sFlagId];sFlag='<img title="'+sCountry+'" src="../images/flags/'+sFlagId.toLowerCase()+'_flag.gif" alt="" />';SuggestList+='<div class="gIDMS_Suggest0Col"><a id="link_'+iLinkNumber+'" title="'+sName+'" onClick="javascript:SuggestCallback_compare(\''+sTool+"','"+sName+"','"+iIdNotation2+"','"+sIsin+"')\">"+sFlag+"</a></div>";SuggestList+="</li>";iLinkNumber+=1}}}SuggestList+="</ul>";this.updateChoices(SuggestList)}};Ajax.Autocompleter_compare=Class.create();Ajax.Autocompleter_compare.prototype=Object.extend(new Autocompleter_compare.Base(),Object.extend(new Ajax.Base(),{initialize:function(d,e,b,a){this.base_initialize(d,e,a);this.options.asynchronous=true;this.options.onComplete=this.onComplete.bind(this);this.options.method="get";this.url=b},getUpdatedChoices:function(){entry=encodeURIComponent(this.element.name)+"="+encodeURIComponent(this.getEntry());this.options.parameters=this.options.callback?this.options.callback(this.element,entry):entry;if(this.getEntry().length>=this.options.ask_backend&&this.getEntry().match(this.AllowedPattern)){this.buildSuggestList();if(Scheduler.aInterval.IDMS_autocomplete_choices_compare==undefined){var a=new Date();Scheduler.subscribe("IDMS_autocomplete_choices_compare","load","");new Ajax.Request(this.url,this.options)}}else{this.buildSuggestList()}},onComplete:function(a){this.buildSuggestList(a.responseText);Scheduler.unsubscribe("IDMS_autocomplete_choices_compare");Scheduler.ajaxSnippetCallback("IDMS_autocomplete_choices_compare")}}));
Element.collectTextNodesIgnoreClass=function(d,e){var c=$(d).childNodes;var f="";var b=new RegExp("^([^ ]+ )*"+e+"( [^ ]+)*$","i");for(var a=0;a<c.length;a++){if(c[a].nodeType==3){f+=c[a].nodeValue}else{if((!c[a].className.match(b))&&c[a].hasChildNodes()){f+=Element.collectTextNodesIgnoreClass(c[a],e)}}}return f};
var detect=navigator.userAgent.toLowerCase();var OS,browser,version,total,thestring;function getBrowserInfo(){if(checkIt("konqueror")){browser="Konqueror";OS="Linux"}else{if(checkIt("safari")){browser="Safari"}else{if(checkIt("omniweb")){browser="OmniWeb"}else{if(checkIt("opera")){browser="Opera"}else{if(checkIt("webtv")){browser="WebTV"}else{if(checkIt("icab")){browser="iCab"}else{if(checkIt("msie")){browser="Internet Explorer"}else{if(!checkIt("compatible")){browser="Netscape Navigator";version=detect.charAt(8)}else{browser="An unknown browser"}}}}}}}}if(!version){version=detect.charAt(place+thestring.length)}if(!OS){if(checkIt("linux")){OS="Linux"}else{if(checkIt("x11")){OS="Unix"}else{if(checkIt("mac")){OS="Mac"}else{if(checkIt("win")){OS="Windows"}else{OS="an unknown operating system"}}}}}}function checkIt(a){place=detect.indexOf(a)+1;thestring=a;return place}Event.observe(window,"load",initialize,false);Event.observe(window,"load",getBrowserInfo,false);Event.observe(window,"unload",Event.unloadCache,false);var lightbox=Class.create();lightbox.prototype={yPos:0,xPos:0,initialize:function(a){this.content=a.href;Event.observe(a,"click",this.activate.bindAsEventListener(this),false);a.onclick=function(){return false}},activate:function(){if(browser=="Internet Explorer"){this.getScroll();this.prepareIE("100%","hidden");this.setScroll(0,0);this.hideSelects("hidden")}this.displayLightbox("block")},prepareIE:function(a,b){bod=document.getElementsByTagName("body")[0];bod.style.height=a;bod.style.overflow=b;htm=document.getElementsByTagName("html")[0];htm.style.height=a;htm.style.overflow=b},hideSelects:function(a){selects=document.getElementsByTagName("select");for(i=0;i<selects.length;i++){selects[i].style.visibility=a}},getScroll:function(){if(self.pageYOffset){this.yPos=self.pageYOffset}else{if(document.documentElement&&document.documentElement.scrollTop){this.yPos=document.documentElement.scrollTop}else{if(document.body){this.yPos=document.body.scrollTop}}}},setScroll:function(a,b){window.scrollTo(a,b)},displayLightbox:function(a){$("overlay").style.display=a;$("lightbox").style.display=a;if(a!="none"){this.loadInfo()}},loadInfo:function(){var a=new Ajax.Request(this.content,{method:"post",parameters:"",onComplete:this.processInfo.bindAsEventListener(this)})},processInfo:function(a){info="<div id='lbContent'>"+a.responseText+"</div>";new Insertion.Before($("lbLoadMessage"),info);$("lightbox").className="done";this.actions()},actions:function(){lbActions=document.getElementsByClassName("lbAction");for(i=0;i<lbActions.length;i++){Event.observe(lbActions[i],"click",this[lbActions[i].rel].bindAsEventListener(this),false);lbActions[i].onclick=function(){return false}}},insert:function(b){link=Event.element(b).parentNode;Element.remove($("lbContent"));var a=new Ajax.Request(link.href,{method:"post",parameters:"",onComplete:this.processInfo.bindAsEventListener(this)})},deactivate:function(){Element.remove($("lbContent"));if(browser=="Internet Explorer"){this.setScroll(0,this.yPos);this.prepareIE("auto","auto");this.hideSelects("visible")}this.displayLightbox("none")}};function initialize(){addLightboxMarkup();lbox=document.getElementsByClassName("lbOn");for(i=0;i<lbox.length;i++){valid=new lightbox(lbox[i])}}function addLightboxMarkup(){bod=document.getElementsByTagName("body")[0];overlay=document.createElement("div");overlay.id="overlay";lb=document.createElement("div");lb.id="lightbox";lb.className="loading";lb.innerHTML="<div id=\"lbLoadMessage\"><p class='texto_izquierda'>Cargando ...</p></div>";bod.appendChild(overlay);bod.appendChild(lb)};
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;function get_html_translation_table(i,f){var d={},h={},c=0,a="";var e={},b={};var j={},g={};j=(i?i.toUpperCase():"HTML_SPECIALCHARS");g=(f?f.toUpperCase():"ENT_COMPAT");e[0]="HTML_SPECIALCHARS";e[1]="HTML_ENTITIES";b[0]="ENT_NOQUOTES";b[2]="ENT_COMPAT";b[3]="ENT_QUOTES";if(!isNaN(j)){j=e[j]}if(!isNaN(g)){g=b[g]}if(j=="HTML_SPECIALCHARS"){d["60"]="&lt;";d["62"]="&gt;";d["38"]="&amp;"}else{if(j=="HTML_ENTITIES"){d["38"]="&amp;";d["60"]="&lt;";d["62"]="&gt;";d["160"]="&nbsp;";d["161"]="&iexcl;";d["162"]="&cent;";d["163"]="&pound;";d["164"]="&curren;";d["165"]="&yen;";d["166"]="&brvbar;";d["167"]="&sect;";d["168"]="&uml;";d["169"]="&copy;";d["170"]="&ordf;";d["171"]="&laquo;";d["172"]="&not;";d["173"]="&shy;";d["174"]="&reg;";d["175"]="&macr;";d["176"]="&deg;";d["177"]="&plusmn;";d["178"]="&sup2;";d["179"]="&sup3;";d["180"]="&acute;";d["181"]="&micro;";d["182"]="&para;";d["183"]="&middot;";d["184"]="&cedil;";d["185"]="&sup1;";d["186"]="&ordm;";d["187"]="&raquo;";d["188"]="&frac14;";d["189"]="&frac12;";d["190"]="&frac34;";d["191"]="&iquest;";d["192"]="&Agrave;";d["193"]="&Aacute;";d["194"]="&Acirc;";d["195"]="&Atilde;";d["196"]="&Auml;";d["197"]="&Aring;";d["198"]="&AElig;";d["199"]="&Ccedil;";d["200"]="&Egrave;";d["201"]="&Eacute;";d["202"]="&Ecirc;";d["203"]="&Euml;";d["204"]="&Igrave;";d["205"]="&Iacute;";d["206"]="&Icirc;";d["207"]="&Iuml;";d["208"]="&ETH;";d["209"]="&Ntilde;";d["210"]="&Ograve;";d["211"]="&Oacute;";d["212"]="&Ocirc;";d["213"]="&Otilde;";d["214"]="&Ouml;";d["215"]="&times;";d["216"]="&Oslash;";d["217"]="&Ugrave;";d["218"]="&Uacute;";d["219"]="&Ucirc;";d["220"]="&Uuml;";d["221"]="&Yacute;";d["222"]="&THORN;";d["223"]="&szlig;";d["224"]="&agrave;";d["225"]="&aacute;";d["226"]="&acirc;";d["227"]="&atilde;";d["228"]="&auml;";d["229"]="&aring;";d["230"]="&aelig;";d["231"]="&ccedil;";d["232"]="&egrave;";d["233"]="&eacute;";d["234"]="&ecirc;";d["235"]="&euml;";d["236"]="&igrave;";d["237"]="&iacute;";d["238"]="&icirc;";d["239"]="&iuml;";d["240"]="&eth;";d["241"]="&ntilde;";d["242"]="&ograve;";d["243"]="&oacute;";d["244"]="&ocirc;";d["245"]="&otilde;";d["246"]="&ouml;";d["247"]="&divide;";d["248"]="&oslash;";d["249"]="&ugrave;";d["250"]="&uacute;";d["251"]="&ucirc;";d["252"]="&uuml;";d["253"]="&yacute;";d["254"]="&thorn;";d["255"]="&yuml;"}else{throw Error("Table: "+j+" not supported");return false}}if(g!="ENT_NOQUOTES"){d["34"]="&quot;"}if(g=="ENT_QUOTES"){d["39"]="&#039;"}for(c in d){a=String.fromCharCode(c);h[a]=d[c]}return h}function htmlspecialchars(b,f){var e={},d="",a="",c=0;a=b.toString();if(false===(e=get_html_translation_table("HTML_SPECIALCHARS",f))){return false}for(d in e){entity=e[d];a=a.split(d).join(entity)}return a};
function IDMS_ajax_snippet(a,c,b,d){if($(c)){Scheduler.ajaxSnippet(a,c,b,d)}}var SchedulerClass=Class.create();SchedulerClass.prototype={Version:"1.0",initialize:function(){this.aInterval=new Array();this.aIntervalId=new Array();this.sInterval=0},ajaxSnippet:function(j,e,h,d){var f=/^IDMS_[a-zA-Z_]*(_[0-9])$/;var c=e.match(f);j+=(c)?"&AJAX_TARGET_NR="+c[1]:"";var g=(e==undefined)?"":(Scheduler.skipIdSuffix(e).replace("IDMS","ajax"))+".html";var b=(d==undefined)?g:d+g;var d=(d==undefined)?"":d;$aRequestAsPost=new Array("IDMS_save");$sMethod=($aRequestAsPost.indexOf(e)=="-1")?"get":"post";if($(e+"_loading")){$(e+"_loading").show()}if(h=="submit"){if(Scheduler.aInterval[e]==undefined){Scheduler.subscribe(e,h);if($("IDMS_save")){IDMS_UpdateMyFtdDataArray(e,$(e+"_form").serialize())}RequestForPageImpression(e);RequestForAdserver(e);$(e+"_form").request({parameters:j,onComplete:function(l){$(e).innerHTML=l.responseText;Scheduler.unsubscribe(e);Scheduler.ajaxSnippetCallback(e)}})}}else{if(h=="load"){if(Scheduler.aInterval[e]==undefined){Scheduler.subscribe(e,h);if($("IDMS_save")){IDMS_UpdateMyFtdDataArray(e,j)}RequestForPageImpression(e);RequestForAdserver(e);var a=new Ajax.Request(b,{method:$sMethod,parameters:j,onComplete:function(l){$(e).innerHTML=l.responseText;Scheduler.unsubscribe(e);Scheduler.ajaxSnippetCallback(e)}})}}else{if(h=="load_all"){var k=new RegExp("IDMS","i");for(i=0;i<Scheduler.aIntervalId.length;i++){if(Scheduler.aIntervalId[i].match(k)){Scheduler.aInterval[Scheduler.aIntervalId[i]]["ENFORCE_LOADING"]=true}}}else{if(h=="load_smart"){if(Scheduler.aInterval[e]==undefined){Scheduler.subscribe(e,setInterval('Scheduler.ajaxSnippet("'+j+'","'+e+'","'+h+'","'+d+'")',100))}if(Scheduler.visiblePosition(e)||Scheduler.aInterval[e]["ENFORCE_LOADING"]){clearInterval(Scheduler.aInterval[e]["INTERVAL"]);Scheduler.aInterval[e]["ACTIVE"]=false;var a=new Ajax.Request(b,{method:"get",parameters:j,onComplete:function(l){$(e).innerHTML=l.responseText;Scheduler.unsubscribe(e);Scheduler.ajaxSnippetCallback(e)}})}}}}}},subscribe:function(b,a){Scheduler.aIntervalId.push(b);Scheduler.aInterval[b]=new Array();Scheduler.aInterval[b]["ENFORCE_LOADING"]=false;Scheduler.aInterval[b]["ACTIVE"]=true;Scheduler.aInterval[b]["ID"]=b;Scheduler.aInterval[b]["AJAX_COMPLETE"]=false;Scheduler.aInterval[b]["INTERVAL"]=a},unsubscribe:function(a){Scheduler.aInterval[a]["AJAX_COMPLETE"]=true;Scheduler.aIntervalId=Scheduler.aIntervalId.without(a);delete Scheduler.aInterval[a]},ajaxSnippetCallback:function(sId){var iCountScriptSections=$(sId).getElementsByTagName("script").length;for(i=0;i<=iCountScriptSections;i++){eval($(sId).getElementsByTagName("script")[i].innerHTML)}},skipIdSuffix:function(b){var c=/^IDMS_[a-zA-Z_]*(_[0-9])$/;var a=b.match(c);return(a)?(b.replace(a[1],"")):b},visiblePosition:function(a){return(Position.page($(a))[1]<=Scheduler.getWindowHeight()&&Position.page($(a))[1]>=0)},numsort:function(d,c){return c-d},getWindowHeight:function(){var a=new Array(document.body.clientHeight,document.documentElement.clientHeight,window.innerHeight);a.compact();aHeight=a.sort(Scheduler.numsort);return aHeight[0]},printAll:function(){var c="PRINT_ALL";if(Scheduler.aInterval[c]==undefined){Scheduler.aIntervalId.push(c);Scheduler.aInterval[c]=new Array();Scheduler.aInterval[c]["INTERVAL"]=setInterval('Scheduler.printAll("'+c+'")',50);Scheduler.aInterval[c]["ACTIVE"]=true;Scheduler.aInterval[c]["ID"]=c;Scheduler.aInterval[c]["AJAX_COMPLETE"]=true;$(c).src="/images/print_ani.gif";Scheduler.ajaxSnippet("","","load_all","")}var a=new RegExp("IDMS","i");var b=Scheduler.aIntervalId.join(" ");if(!(b.match(a))){clearInterval(Scheduler.aInterval[c]["INTERVAL"]);Scheduler.unsubscribe(c);$(c).src="/images/print.gif";print()}},monitorStart:function(){if(!($("IDMS_debug"))){var b=Builder.node("div",{id:"IDMS_debug",style:"display: none;"},"&nbsp;");var a=document.getElementsByTagName("body").item(0);a.appendChild(b)}Scheduler.sInterval=0;IntervalDebug=window.setInterval("Scheduler.monitorShow()",250);$("IDMS_debug").show()},monitorStop:function(){clearInterval(IntervalDebug);$("IDMS_debug").hide()},monitorShow:function(){var a;Scheduler.sInterval+=1;var b="font-size:10px;border:solid red 2px; position:fixed;top:130px;right:10px;z-index:1000; background-color:white;color:black";a='<table style="'+b+'" cellspacing="0" cellpadding="0" border="1">';a+="<tr>";a+='<td colspan="5" style="font-size:12px;text-align:center"><b>Scheduler Monitor&nbsp;</b><span style="font-size:10px">('+Scheduler.sInterval+" intervals)</span></td>";a+="</tr>";a+="<tr>";a+='<th width="170">Target Id</th>';a+='<th width="40">Y-Pos.</th>';a+='<th width="80">Interval Id</th>';a+='<th width="30">Activ</th>';a+='<th width="60">Ajax done</th>';a+="</tr>";for(i=0;i<Scheduler.aIntervalId.length;i++){sId=Scheduler.aIntervalId[i];a+="<tr>";a+="<td>&nbsp;"+Scheduler.aIntervalId[i]+"</td>";a+='<td align="center">'+Position.page($(sId))[1]+"</td>";a+='<td align="center">'+Scheduler.aInterval[sId]["INTERVAL"]+"</td>";a+=(Scheduler.aInterval[sId]["ACTIVE"])?'<td align="center" style="background-color:lightgreen">'+Scheduler.aInterval[sId]["ACTIVE"]+"</td>":'<td align="center" style="background-color:red">'+Scheduler.aInterval[sId]["ACTIVE"]+"</td>";a+=(Scheduler.aInterval[sId]["AJAX_COMPLETE"])?'<td align="center" style="background-color:lightgreen">'+Scheduler.aInterval[sId]["AJAX_COMPLETE"]+"</td>":'<td align="center" style="background-color:red">'+Scheduler.aInterval[sId]["AJAX_COMPLETE"]+"</td>";a+="</tr>"}a+="<tr>";a+='<th colspan="5" style="font-size:12px;text-align:center">&nbsp;</th>';a+="</tr>";a+="<tr>";a+='<th colspan="5" style="font-size:12px;text-align:center">Profiler Monitor</th>';a+="</tr>";a+="<tr>";a+='<td colspan="5"></td>';a+="</tr>";a+="</table>";$("IDMS_debug").innerHTML=a}};var Scheduler=new SchedulerClass();
var dataStructure=new Array();function showNewsList(){var a='<div class="container_detalle_noticias" id="definition">';a+='<table width="100%" cellpadding="0" cellspacing="0" border="0">';a+="<tr>";a+='<td height="12" width="100%" colspan="3"><img src="http://www.celfin.mdgms.com/images/lightbox_header.gif" width="100%" height="12"></td>';a+="</tr>";a+="<tr>";a+='<td class="bordes_laterales" colspan="3" bgcolor="#f6f6f7">';a+='<div style="position:relative;float:left;width:15px;background-color:#f6f6f7;">&nbsp;</div>';a+='<div style="position:relative;float:left;width:505px;border-bottom:1px solid #666666;" class="texto_izquierda_noticias_headline">Titulares del D&iacute;a</div>';a+='<div style="position:relative;float:left;width:15px;background-color:#f6f6f7;"></div>';a+="</td>";a+="</tr>";a+="<tr>";a+='<td colspan="3">';a+='<div class="contenido_noticias">';a+='<div class="texto_izquierda_noticias" style="padding-left:15px;padding-right:5px;">';for(i=0;i<dataStructure.length;i++){a+='<p><div class="headline">'+dataStructure[i][4]+'&nbsp;&nbsp;<a href="javascript:showNewsComplete('+dataStructure[i][3]+');" class="lbOn">'+dataStructure[i][1]+"</a></div></p>"}a+="</div>";a+="</div>";a+="</td>";a+="</tr>";a+="<tr>";a+='<td height="35" valign="middle" align="center" colspan="3" class="bordes_laterales"><a href="javascript:closeNewsList();" class="lbAction" rel="deactivate"><div class="boton_cancelar"></div></a></td>';a+="</tr>";a+="<tr>";a+='<td height="12" width="100%" colspan="3"><img src="http://www.celfin.mdgms.com/images/lightbox_footer.gif" width="100%" height="12"></td>';a+="</tr>";a+="</table>";a+="</div>";$("idNewsList").innerHTML=a;$("idNewsList").style.position="absolute";$("idNewsList").style.backgroundColor="#ffffff";$("idNewsList").style.top="50px";$("idNewsList").style.left="237px";$("idNewsList").style.height="400px";$("idNewsList").style.width="550px";$("idNewsList").style.zIndex="999";$("idNewsList").style.display="block";$("idChangeIndicatordiv").style.display="none";$("idChangeIndicatorfake").style.display="block"}function showNewsComplete(b){var a='<div class="container_detalle_noticias" id="definition">';a+='<table width="100%" cellpadding="0" cellspacing="0" border="0">';a+="<tr>";a+='<td height="12" width="100%" colspan="3"><img src="http://www.celfin.mdgms.com/images/lightbox_header.gif" width="100%" height="12"></td>';a+="</tr>";a+="<tr>";a+='<td class="bordes_laterales" colspan="3" bgcolor="#f6f6f7">';a+='<div style="position:relative;float:left;width:15px;background-color:#f6f6f7;">&nbsp;</div>';a+='<div style="position:relative;float:left;width:505px;border-bottom:1px solid #666666;" class="texto_izquierda_noticias_headline">Titulares del D&iacute;a</div>';a+='<div style="position:relative;float:left;width:15px;background-color:#f6f6f7;"></div>';a+="</td>";a+="</tr>";for(i=0;i<dataStructure.length;i++){if(dataStructure[i][3]==b){a+="<tr>";a+='<td colspan="3">';a+='<div class="contenido_noticias">';a+='<div class="texto_izquierda_noticias" style="padding-left:15px;padding-right:5px;">';a+='<p class="texto_izquierda_noticias_headline">'+dataStructure[i][1]+"</p>";a+='<p class="texto_izquierda_noticias"><br>'+dataStructure[i][0]+"</p>";a+='<p class="texto_izquierda_noticias">'+dataStructure[i][2]+"</p>";a+="</div>";a+="</div>";a+="</td>";a+="</tr>"}}a+="<tr>";a+='<td height="35" valign="middle" align="center" colspan="3" class="bordes_laterales"><a href="javascript:closeNewsList();" class="lbAction" rel="deactivate"><div class="boton_cancelar"></div></a></td>';a+="</tr>";a+="<tr>";a+='<td height="12" width="100%" colspan="3"><img src="http://www.celfin.mdgms.com/images/lightbox_footer.gif" width="100%" height="12"></td>';a+="</tr>";a+="</table>";a+="</div>";$("idNewsList").innerHTML=a;$("idNewsList").style.position="absolute";$("idNewsList").style.backgroundColor="#ffffff";$("idNewsList").style.top="50px";$("idNewsList").style.left="237px";$("idNewsList").style.height="400px";$("idNewsList").style.width="550px";$("idNewsList").style.zIndex="10";$("idNewsList").style.display="block";$("idChangeIndicatordiv").style.display="none";$("idChangeIndicatorfake").style.display="block"}function closeNewsList(){$("idNewsList").style.display="none";$("idChangeIndicatordiv").style.display="block";$("idChangeIndicatorfake").style.display="none"};
var csshoverReg=/(^|\s)(([^a]([^ ]+)?)|(a([^#.][^ ]+)+)):(hover|active)/i,currentSheet,doc=window.document,hoverEvents=[],activators={onhover:{on:"onmouseover",off:"onmouseout"},onactive:{on:"onmousedown",off:"onmouseup"}};function parseStylesheets(){if(!/MSIE (5|6)/.test(navigator.userAgent)){return}window.attachEvent("onunload",unhookHoverEvents);var c=doc.styleSheets,a=c.length;for(var b=0;b<a;b++){parseStylesheet(c[b])}}function parseStylesheet(f){if(f.imports){try{var b=f.imports,a=b.length;for(var e=0;e<a;e++){parseStylesheet(f.imports[e])}}catch(d){}}try{var g=(currentSheet=f).rules,a=g.length;for(var c=0;c<a;c++){parseCSSRule(g[c])}}catch(d){}}function parseCSSRule(f){var g=f.selectorText,b=f.style.cssText;if(!csshoverReg.test(g)||!b){return}var h=g.replace(/[^:]+:([a-z-]+).*/i,"on$1");var j=g.replace(/(\.([a-z0-9_-]+):[a-z]+)|(:[a-z]+)/gi,".$2"+h);var e=(/\.([a-z0-9_-]*on(hover|active))/i).exec(j)[1];var c=g.replace(/:(hover|active).*$/,"");var a=getElementsBySelect(c);if(a.length==0){return}currentSheet.addRule(j,b);for(var d=0;d<a.length;d++){new HoverElement(a[d],e,activators[h])}}function HoverElement(c,b,a){if(!c.hovers){c.hovers={}}if(c.hovers[b]){return}c.hovers[b]=true;hookHoverEvent(c,a.on,function(){c.className+=" "+b});hookHoverEvent(c,a.off,function(){c.className=c.className.replace(new RegExp("\\s+"+b,"g"),"")})}function hookHoverEvent(c,b,a){c.attachEvent(b,a);hoverEvents[hoverEvents.length]={node:c,type:b,handler:a}}function unhookHoverEvents(){for(var b,a=0;a<hoverEvents.length;a++){b=hoverEvents[a];b.node.detachEvent(b.type,b.handler)}}function getElementsBySelect(d){var c,a=[doc];c=d.split(" ");for(var b=0;b<c.length;b++){a=getSelectedNodes(c[b],a)}return a}function getSelectedNodes(l,a){var n,d,b=[];var k=(/\#([a-z0-9_-]+)/i).exec(l);if(k){var h=doc.getElementById(k[1]);return h?[h]:b}var e=(/\.([a-z0-9_-]+)/i).exec(l);var c=l.replace(/(\.|\#|\:)[a-z0-9_-]+/i,"");var m=e?new RegExp("\\b"+e[1]+"\\b"):false;for(var g=0;g<a.length;g++){n=c?a[g].all.tags(c):a[g].all;for(var f=0;f<n.length;f++){d=n[f];if(m&&!m.test(d.className)){continue}b[b.length]=d}}return b};
Event.observe(window,'unload',function(event){
	onvLHTML.stop();
	if (Event.pointerY(event) < -1000) {
		Set_Cookie( "sAccess","0",0);
		Set_Cookie( "sMessage", "",0);
		Set_Cookie( "slUSER", "",0);
	}else{
		Set_Cookie( "sMessage", "1ok",0);
	}
});



function Set_Cookie( name, value, expires, path, domain, secure ){
// set time, it's in milliseconds
	var today = new Date();
	today.setTime( today.getTime() );

/*
if the expires variable is set, make the correct
expires time, the current script below will set
it for x number of days, to make it for hours,
delete * 24, for minutes, delete * 60 * 24
*/
if ( expires ){
	expires = expires * 1000 * 60 * 60;
}
var expires_date = new Date( today.getTime() + (expires) );

document.cookie = name + "=" +escape( value ) +
( ( expires ) ? ";expires=" + expires_date.toGMTString() : "" ) +
( ( path )    ? ";path="    + path : "" ) +
( ( domain )  ? ";domain="  + domain : "" ) +
( ( secure )  ? ";secure" : "" );
}

function Get_Cookie( name ) {

var start = document.cookie.indexOf( name + "=" );
var len = start + name.length + 1;
if ( ( !start ) &&
( name != document.cookie.substring( 0, name.length ) ) )
{
return null;
}
if ( start == -1 ) return null;
var end = document.cookie.indexOf( ";", len );
if ( end == -1 ) end = document.cookie.length;
return unescape( document.cookie.substring( len, end ) );
}

function trim(cadena) { return cadena.replace(/^\s+|\s+$/g,""); }

function colour_number_graph(id,diff,attr_name) {
	try{
		switch(attr_name) {
			case 'PERFORMANCE_PCT':
				if (diff > 0.0) {
					$(id).className = 'grafico_valor_verde';
					$('flecha_grafico').innerHTML = '<img src="http://www.celfin.mdgms.com/images/flecha_verde.gif" width="18" height="15" />';
				} else if(diff < 0.0) {
					$(id).className = 'grafico_valor_roja';
					$('flecha_grafico').innerHTML = '<img src="http://www.celfin.mdgms.com/images/flecha_roja.gif" width="18" height="15" />';
				} else {
					$(id).className = 'grafico_valor_gris';
					$('flecha_grafico').innerHTML = '<img src="http://www.celfin.mdgms.com/images/flecha_gris.gif" width="18" height="15" />';
				}
			break;
			case 'PERFORMANCE':
				if (diff > 0.0) {
					$(id).className = 'grafico_valor_verde';
				} else if(diff < 0.0) {
					$(id).className = 'grafico_valor_roja';
				} else {
					$(id).className = 'grafico_valor_gris';
				}
			break;
			default:
				$(id).className = 'grafico_valor_gris';
				break;
		}
	}catch(e){}
}

function flash_graph(id,num,value,diff,attr_name) {
	if(num>value) {
		$(id).className = 'flashup_graph';
	} else if(num<value) {
		$(id).className = 'flashdown_graph';
	} else {
	  	$(id).className = 'flashsame_graph';
	}
	eval('setTimeout("colour_number_graph(\''+id+'\',\''+num+'\',\''+attr_name+'\')",500);');
}



function on_line_markets(id, event, row, attrNames, attrValues){
	var notation = id.split("_");
	if (attrValues[0]==0 || attrValues[1]==0){
		$('lhtml_cell_'+notation[0]).className = "valor_porcentaje_eod";
		$('lhtml_cell_price_'+notation[0]).className = "valor_precio_eod";
	}
	$('lhtml_cell_status_'+notation[0]).innerHTML = attrValues[0]+attrValues[1];
}

format_number_markets = function(ID, event, row, attrNames, attrValues, attrHash) {
	try{
		var notation = ID.split("_");
		for (i=0;i<attrValues.length;i++){
			if (attrValues[i]!=''){	
				if(trim(attrNames[i]) == 'PERFORMANCE_PCT'){
					var number = attrValues[i];
					var str = number.toString();
					var append_str  = '';
					var cv   = unformat($('lhtml_cell_'+notation[0]).innerHTML);
					var nv   = unformat(number);
					var diff = nv-cv; 
					var valor = str.substring(0,str.length-1);
			
					if ((trim($('lhtml_cell_status_'+notation[0]).innerHTML) == '11') || (trim($('lhtml_cell_status_'+notation[0]).innerHTML) == '')){
						if(diff>0.0) {
							$('lhtml_cell_'+notation[0]).className ="valor_porcentaje_verde";
						} else if(diff<0.0) {
							$('lhtml_cell_'+notation[0]).className ="valor_porcentaje_rojo";
						} else {
							$('lhtml_cell_'+notation[0]).className ="valor_porcentaje_cero";
						} 
						if (trim($('lhtml_cell_status_'+notation[0]).innerHTML) != ''){
							flash('lhtml_cell_'+notation[0],nv,cv,(nv-cv),attrNames[i]);
						}
						$('lhtml_cell_price_'+notation[0]).className = "valor_porcentaje_cero";
					}else{
						$('lhtml_cell_'+notation[0]).className = "valor_porcentaje_eod";
						$('lhtml_cell_price_'+notation[0]).className = "valor_porcentaje_eod";			
					}
					$('lhtml_cell_'+notation[0]).innerHTML = valor;
				}
				if(trim(attrNames[i]) == 'PRICE'){
					$('lhtml_cell_price_'+notation[0]).innerHTML = trim(attrValues[i]);
				}
				if(trim(attrNames[i]) == 'DATETIME_PRICE'){
					var fecha = attrValues[i].substring(0,10);
					$('lhtml_cell_datetime_'+notation[0]).innerHTML = fecha;
				}
			}
		}
	}catch(err){}
}



format_number2 = function(ID, event, row, attrNames, attrValues, attrHash) {
	try{
				
		idMonedas = 0;
				
		var notation = ID.split("_");
		for (i=0;i<attrValues.length;i++){
			if (attrValues[i]!=''){
				if(trim(attrNames[i]) == 'PERFORMANCE_PCT' || trim(attrNames[i]) == 'PERFORMANCE'){

					var number = attrValues[i];
					var str = number.toString();
					var append_str  = '';

					var cv   = unformat($('lhtml_cell_'+notation[0]).innerHTML);
					var nv   = unformat(number);
					var diff = nv-cv;

                    if (trim(attrNames[i]) == 'PERFORMANCE_PCT'){
                        var valor = str.substring(0,str.length-1);
                    }else{
                        var valor = str;
                    }

					if(diff>0.0) {
						$('lhtml_cell_'+notation[0]).className ="valor_porcentaje_verde";
					} else if(diff<0.0) {
						$('lhtml_cell_'+notation[0]).className ="valor_porcentaje_rojo";
					} else {
						$('lhtml_cell_'+notation[0]).className ="valor_porcentaje_cero";
					}
					flash('lhtml_cell_'+notation[0],nv,cv,(nv-cv),attrNames[i]);
					$('lhtml_cell_'+notation[0]).innerHTML = valor;
				}

				if(trim(attrNames[i]) == 'PRICE'){
					$('lhtml_cell_price_'+notation[0]).innerHTML = trim(attrValues[i]);
				}

			}
		}
	}catch(err){}
}

function unformat(num) {
	num = num.replace(/\./gi, "");
	return parseFloat(num.replace(/\,/gi, "."));
}

function colour_number(id,diff,attr_name) {
	switch(attr_name) {
	case 'PERFORMANCE_PCT':
		try{
			if (diff > 0.0) {
				$(id).className = 'valor_porcentaje_verde';
			} else if(diff < 0.0) {
				$(id).className = 'valor_porcentaje_rojo';
			} else {
				$(id).className = 'valor_porcentaje_cero';
			}
		}catch(e){}
		break;
    case 'PERFORMANCE':
		try{
			if (diff > 0.0) {
				$(id).className = 'valor_porcentaje_verde';
			} else if(diff < 0.0) {
				$(id).className = 'valor_porcentaje_rojo';
			} else {
				$(id).className = 'valor_porcentaje_cero';
			}
		}catch(e){}
		break;
	case 'CN_DIFF_REL_RANGE':
		try{
			if (diff > 0.0) {
				$(id).className = 'valor_porcentaje_verde';
			} else if(diff < 0.0) {
				$(id).className = 'valor_porcentaje_rojo';
			} else {
				$(id).className = 'valor_porcentaje_cero';
			}
		}catch(e){}
		break;
	default:
		$(id).className = 'valor_porcentaje_cero';
		break;
	}
}

function flash(id,num,value,diff,attr_name) {
	if(num>value) {
		$(id).className = 'flashup';
	} else if(num<value) {
		$(id).className = 'flashdown';
	} else {
	  	$(id).className = 'flashsame';
	}
	eval('setTimeout("colour_number(\''+id+'\',\''+num+'\',\''+attr_name+'\')",500);');
}

trimName = function(ID, event, row, attrNames, attrValues, attrHash) {
	var str = attrValues[0];
	var idStr=attrValues[1];
	var myRand = parseInt(Math.random()*999999999999999);
	if (str.length > 14){ return '<div id="'+idStr+'_'+myRand+'" class="dragMe">'+str.substr(0,10)+'...</div>'; }
	return '<div id="'+idStr+'_'+myRand+'" class="dragMe">'+str+'</div>';
}

trimName2 = function(value) {
	var id_notation, symbol;
  	if (arguments.length != arguments.callee.length){ value = arguments[4][0]; }
	for (i=0;i<CONSTITUENT[1].length;i++){
		if (CONSTITUENT[2][i]==value){
			id_notation = CONSTITUENT[0][i];
			if (CONSTITUENT[2][i]!=""){
				symbol = CONSTITUENT[2][i];
			}else{
				symbol = CONSTITUENT[1][i];
			}
			break;
		}
	}

 	var myRand = parseInt(Math.random()*999999999999999);
  	if (symbol.length > 14){	return '<div id="'+id_notation+'_'+myRand+'" class="dragMe" onmouseover="dragmove(this.id);" onmousedown="dragdown(this.id);" onclick="dragclick(this.id);" title="'+symbol+'">'+symbol.substr(0,10)+'...</div>';}
  	else{ return '<div id="'+id_notation+'_'+myRand+'" class="dragMe" onmouseover="dragmove(this.id);" onmousedown="dragdown(this.id);" onclick="dragclick(this.id);" title="'+symbol+'">'+symbol+'</div>'; }
}

function findConstituents(notation){
    var encontrado = 0;
    for (i=0;i<CONSTITUENT[1].length;i++){
		if (CONSTITUENT[0][i]==notation){ encontrado = 1; break; }
    }
    return encontrado;
}

trimNameOSI = function(id,num,row,attr_name,value) {
	var symbol = "";
	var id_osi_index=findFromOSI(value[0]);	
	stockName=CONSTITUENT[1][id_osi_index];

	id_notation = CONSTITUENT[0][id_osi_index];
	if (CONSTITUENT[2][id_osi_index]!="")	symbol = CONSTITUENT[2][id_osi_index];
	else symbol = CONSTITUENT[1][id_osi_index];
		
	if (value[1]!="") symbol=value[1];
	
 	var myRand = parseInt(Math.random()*999999999999999);
  	if (symbol.length > 14){	return '<div id="'+id_notation+'_'+myRand+'" class="dragMe" onmouseover="dragmove(this.id);" onmousedown="dragdown(this.id);" onclick="dragclick(this.id);" title="'+symbol+'">'+symbol.substr(0,10)+'...</div>'; }
  	else{ return '<div id="'+id_notation+'_'+myRand+'" class="dragMe" onmouseover="dragmove(this.id);" onmousedown="dragdown(this.id);" onclick="dragclick(this.id);" title="'+symbol+'">'+symbol+'</div>'; }
}



function findFromOSI(OSI){ for (i=0;i<CONSTITUENT[3].length;i++){ if (CONSTITUENT[3][i]==OSI) break; } return i; }

function Decimales(Numero, Decimales) {
	pot = Math.pow(10,Decimales);
	num = parseInt(Numero * pot) / pot;
	nume = num.toString().split('.');
	entero = nume[0];
	decima = nume[1];
	if (decima != undefined) { fin = Decimales-decima.length; }
	else { decima = ''; fin = Decimales; }
	for(i=0;i<fin;i++) decima+=String.fromCharCode(48); 
	num=entero+'.'+decima;
	return num;
}

changeInnerCallback = function(id, event, row, attrNames, attrValues)	{
	try{
		if((id==iCurrentNotation) && (attrValues[0]!="")){
			var perf_pct = attrValues[1];
			var perf = attrValues[2];
			var str_pct = perf_pct.toString();
			var str = perf.toString();
			var append_str  = '';
	
			var cv_pct   = unformat($(id+'_1').innerHTML);
			var nv_pct   = unformat(perf_pct);
			var diff_pct = nv_pct-cv_pct;
			var cv   = unformat($(id+'_2').innerHTML);
			var nv   = unformat(perf);
			var diff = nv-cv;
	
			if(diff_pct>0.0) { $(id+'_1').className = "grafico_valor_verde"; } 
			else if(diff<0.0) { $(id+'_1').className ="grafico_valor_roja"; } 
			else { $(id+'_1').className ="grafico_valor_gris"; } 
			
			if(diff>0.0) { $(id+'_2').className = "grafico_valor_verde"; } 
			else if(diff<0.0) { $(id+'_2').className ="grafico_valor_roja"; } 
			else { $(id+'_2').className ="grafico_valor_gris"; } 
		
			flash_graph(id+'_1',nv_pct,cv_pct,(nv_pct-cv_pct),attrNames[1])
			flash_graph(id+'_2',nv,cv,(nv-cv),attrNames[2])
		
			$(id+'_0').innerHTML = attrValues[0]; $(id+'_1').innerHTML = attrValues[1]; $(id+'_2').innerHTML = attrValues[2];
			if((attrValues[3]!="")&&(attrValues[4]!="")){ $(id+'_3').innerHTML = attrValues[3]; $(id+'_4').innerHTML = attrValues[4]; }
		}
	}catch(e)	{}		
}
function TimeCelfin(){
	now = new Date();
	if (((now.getDay() != 6) && (now.getDay() != 0)) && (now.getHours() < 18)){
		if (idMonedas == idMaxTimeCelfin){
				showAlertMessage('Por favor actualice la p&aacute;gina o presione F5.',9999,3);
				idMonedas = 0;
		}else{ idMonedas++; }
	}
}

var isIE=(navigator.appVersion.indexOf("MSIE")!=-1)?true:false;var isWin=(navigator.appVersion.toLowerCase().indexOf("win")!=-1)?true:false;var isOpera=(navigator.userAgent.indexOf("Opera")!=-1)?true:false;function ControlVersion(){var a;var b;var c;try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");a=b.GetVariable("$version")}catch(c){}if(!a){try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");a="WIN 6,0,21,0";b.AllowScriptAccess="always";a=b.GetVariable("$version")}catch(c){}}if(!a){try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");a=b.GetVariable("$version")}catch(c){}}if(!a){try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");a="WIN 3,0,18,0"}catch(c){}}if(!a){try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");a="WIN 2,0,0,11"}catch(c){a=-1}}return a}function GetSwfVer(){var g=-1;if(navigator.plugins!=null&&navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){var f=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";var a=navigator.plugins["Shockwave Flash"+f].description;var e=a.split(" ");var c=e[2].split(".");var h=c[0];var b=c[1];var d=e[3];if(d==""){d=e[4]}if(d[0]=="d"){d=d.substring(1)}else{if(d[0]=="r"){d=d.substring(1);if(d.indexOf("d")>0){d=d.substring(0,d.indexOf("d"))}}}var g=h+"."+b+"."+d}}else{if(navigator.userAgent.toLowerCase().indexOf("webtv/2.6")!=-1){g=4}else{if(navigator.userAgent.toLowerCase().indexOf("webtv/2.5")!=-1){g=3}else{if(navigator.userAgent.toLowerCase().indexOf("webtv")!=-1){g=2}else{if(isIE&&isWin&&!isOpera){g=ControlVersion()}}}}}return g}function DetectFlashVer(f,d,c){versionStr=GetSwfVer();if(versionStr==-1){return false}else{if(versionStr!=0){if(isIE&&isWin&&!isOpera){tempArray=versionStr.split(" ");tempString=tempArray[1];versionArray=tempString.split(",")}else{versionArray=versionStr.split(".")}var e=versionArray[0];var a=versionArray[1];var b=versionArray[2];if(e>parseFloat(f)){return true}else{if(e==parseFloat(f)){if(a>parseFloat(d)){return true}else{if(a==parseFloat(d)){if(b>=parseFloat(c)){return true}}}}}return false}}}function AC_AddExtension(b,a){if(b.indexOf("?")!=-1){return b.replace(/\?/,a+"?")}else{return b+a}}function AC_Generateobj(e,d,a){var c="";if(isIE&&isWin&&!isOpera){c+="<object ";for(var b in e){c+=b+'="'+e[b]+'" '}c+=">";for(var b in d){c+='<param name="'+b+'" value="'+d[b]+'" /> '}c+="</object>"}else{c+="<embed ";for(var b in a){c+=b+'="'+a[b]+'" '}c+="> </embed>"}document.write(c)}function AC_FL_RunContent(){var a=AC_GetArgs(arguments,".swf","movie","clsid:d27cdb6e-ae6d-11cf-96b8-444553540000","application/x-shockwave-flash");AC_Generateobj(a.objAttrs,a.params,a.embedAttrs)}function AC_GetArgs(b,e,g,d,h){var a=new Object();a.embedAttrs=new Object();a.params=new Object();a.objAttrs=new Object();for(var c=0;c<b.length;c=c+2){var f=b[c].toLowerCase();switch(f){case"classid":break;case"pluginspage":a.embedAttrs[b[c]]=b[c+1];break;case"src":case"movie":b[c+1]=AC_AddExtension(b[c+1],e);a.embedAttrs.src=b[c+1];a.params[g]=b[c+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":a.objAttrs[b[c]]=b[c+1];break;case"id":case"width":case"height":case"align":case"vspace":case"hspace":case"class":case"title":case"accesskey":case"name":case"tabindex":a.embedAttrs[b[c]]=a.objAttrs[b[c]]=b[c+1];break;default:a.embedAttrs[b[c]]=a.params[b[c]]=b[c+1]}}a.objAttrs.classid=d;if(h){a.embedAttrs.type=h}return a};
var s=new Array();
s['STO']=new Array(
'A.F.P PROVIDA COM NPV','CL17242014','PROVIDA','A.F.P PROVIDA SPON ADR REP 15 COM NPV','CL68728','PVD','ABASTECEDORA METAL COM NPV','CL36746','SABIMET','AES GENER SA NPV','CL17241955','GENER','AFP CAPITAL SA NPV','CL22599639','SANTAMARIA','AFP CUPRUM SA NPV','CL17241908','CUPRUM','AFP HABITAT NPV','CL17241959','HABITAT','AGENCIAS UNIVERSALES SA NPV','CL17241929','AGUNSA','AGRICOLA NACIONAL NPV','CL17241931','ANASAC','AGRICOLA ROSA SOFRUCO SA NPV','CL17242048','SOFRUCO','AGUAS ANDINAS S.A. COM NPV SERA','CL17241928','AGUAS-A','AGUAS ANDINAS S.A. COM NPV SERB','CL8317843','AGUAS-B','ALMENDRAL SA COM NPV','CL17241930','ALMENDRAL','ANDACOR NPV','CL8317848','ANDACOR','ANTARCHILE SA NPV SERA','CL17241934','ANTARCHILE','AUTOMOVILISMO Y TURISMO NPV','CL8317853','ATSA','AXXION SA COM NPV','CL17241936','AXXION','AZUL AZUL S.A. COM NPV','CL24396811','AZUL AZUL','BANCHILE ADM GENERAL DE FONDOS SA FDO DE INV BANCHILE INM I','CL22474179','','BANCO DE CREDITO E INVERSIONES NPV','CL17241848','BCI','BANCO SANTANDER-CHILE ADR-EACH REP 1039 COM NPV','CL1550376','SAN','BANCO SANTANDER-CHILE COM NPV','CL17241851','BSANTANDER','BANMEDICA SA NPV','CL17241844','BANMEDICA','BANVIDA SA COM NPV','CL17241845','BANVIDA','BCO BILBAO VIZCAYA ARGENTARIA CHILE COM NPV','CL17241847','BBVACL','BCO DE CHILE COM NPV','CL17241878','CHILE','BCO DE CHILE SPON ADR REP 600 ORD NPV','CL4898556','BCH','BESALCO SA NPV','CL17241849','BESALCO','BICECORP SA COM NPV','CL17241850','BICECORP','BLANCO Y NEGRO SA COM NPV SERIES B','CL17241890','COLO COLO','BOLSA DE COMERCIO Y DE VALORES NPV','CL17241891','COMERCIO','BOLSA DE CORREDORES Y VALORES NPV','CL17242066','VALORES','CAP SA NPV','CL17241855','CAP','CAPITALES SA COM NPV','CL17241856','CAPITALES','CARBONIFERA VICTORIA DE LEBU NPV','CL36442','CARVILE','CELFIN DEUDA LATINOAMERICANA FDO D NPV','CL27214570','CFICELDLA','CEM SA NPV','CL17241860','CEM','CEMENTO POLPALCO SA NPV','CL17242011','POLPAICO','CEMENTOS BIO-BIO COM NPV','CL17241861','CEMENTOS','CENCOSUD SA ADR EA REP 15 ORD NPV 144A','CL20425300','CSUDY','CENCOSUD SA ADR EA REP 15 ORD NPV REGS','CL11690722','CSUDF','CENCOSUD SA COM NPV','CL17241862','CENCOSUD','CERAMICAS CORDILLERA SA NPV','CL17241897','CORDILLERA','CGE DISTRIBUCION SA COM NPV','CL17241877','CGEDISTRO','CHILECTRA S.A. COM NPV','CL17241880','CHILECTRA','CHILECTRA SA ORD','CL36457','','CHILENA FOSFOROS SA COM NPV','CL17241951','FOSFOROS','CHILETABACOS SA NPV','CL17241859','CCT','CIA CHILN DE NAVEGACION INTEROCEAN NPV','CL17241975','INTEROCEAN','CIA ELECTRO METALURGICA NPV','CL17241917','ELECMETAL','CIA SEGUROS VIDA SECURITY PREVISION NPV','CL17242013','PREVISION','CINTAC SA NPV','CL17241884','CINTAC','CLINICA LAS CONDES COM NPV','CL17241987','LAS CONDES','CLUB DE POLO Y EQUITACION SAN CRIS NPV','CL17242010','POLO','CLUB HIPICO DE SANTIAGO SA NPV','CL17241960','HIPICO','COCA-COLA EMBONOR SA COM SERANPV','CL17241919','EMBONOR-A','COCA-COLA EMBONOR SA COM SERBNPV','CL17241920','EMBONOR-B','COLBUN S.A. NPV','CL17241888','COLBUN','COLONO FDO DE INVERSION MOBILIARIA CUOTAS','CL17241866','CFIMCOLONO','COMERCIAL E INDUSTRIAL VINA SA COM NPV','CL31670132','COMVINA','COMPANIA AGROPECUARIA COPEVAL SA COM NPV','CL17241896','COPEVAL','COMPANIA CERVECERIAS UNIDAS SA NPV','CL17875039','CCU','COMPANIA CERVECERIAS UNIDAS SA SPON ADR(CNV INTO 5 COM SHS','CL258410','CCU','COMPANIA GENERAL DE ELECTRICIDAD SA NPV','CL17241876','CGE','COMPANIA SUD AMERICANA DE VAPORES NPV','CL17242067','VAPORES','COMPANIAS CIC SA COM NPV','CL17241883','CIC','CONOSUR','CL17241893','CONOSUR','CONTENEDORES REDES YENVASES NPV','CL17241898','CORESA','COPEFRUT SA NPV','CL8317927','COPEFRUT','CORPBANCA ADR-EACH REPR 5000 COM REG','CL10740928','BCA','CORPBANCA COM NPV','CL17241899','CORPBANCA','CORPBANCA NEW NPV (S/R 18/02/2010)','CL32314256','CORPBA-OSA','COSTA VERDE AERONA NPV','CL28140691','CVA','CRISTALERIAS DE CHILE SA NPV','CL17241903','CRISTALES','CTI CIA TECNO INDUSTRIAL SA COM NPV','CL17241907','CTI','DEPORTES CLUB DE GOLF SANTIAGO SA NPV','CL17241956','GOLF','DETROIT CHILE SA COM NPV','CL17241911','DETROIT','DISTRIBUCION Y SERV.ADR15','CL260756','DYSVY','DISTRIBUCION Y SERVICO D & S SA COM NPV (LATIBEX)','CL17241910','D&S','DUNCAN FOX NPV','CL17241912','DUNCANFOX','DUOYUAN PRINTING INC COM USD0.001','CL31540562','DYP','ELECTRICA DE MAGALLANES SA NPV','CL17241913','EDELMAG','ELECTRICA DEL LITORAL SA NPV','CL17241989','LITORAL','ELECTRICA PEHUENCHE SA NPV','CL17242007','PEHUENCHE','ELECTRICAL PILMAIQUEN SA NPV','CL17242009','PILMAIQUEN','EMBOT COCA COLA POLAR SA NPV','CL17241984','KOPOLAR','EMBOTELLADORA ANDINA SA PRFANPV','CL17241932','ANDINA-A','EMBOTELLADORA ANDINA SA PRFBNPV','CL6908061','ANDINA-B','EMBOTELLADORA ANDINA SA SPN ADR-REP 6 SER A PRF NPV','CL73935','AKO.A','EMBOTELLADORA ANDINA SA SPN ADR-REP 6 SER B PRF NPV','CL262089','AKO.B','EMPRESA DE SERVICIOS SANITARIOS DEL BIO-BIO S.A.','CL17241943','ESSBIO-A','EMPRESA EL PENON SA NPV','CL17242008','PENON','EMPRESA ELECTRICA DE ANTOFAGASTA SA NPV','CL17241916','ELECDA','EMPRESA ELECTRICA DE ARICA SA NPV','CL17241922','EMELARI','EMPRESA ELECTRICA DE IQUIQUE SA NPV','CL17241918','ELIQSA','EMPRESA ELECTRICADEL NORTE GRANDE NPV','CL17241914','EDELNOR','EMPRESA EMEL SA NPV','CL17241921','EMEL','EMPRESA NACIONAL DE CARBON SA COM NPV','CL17241925','ENACAR','EMPRESA NACIONAL DE ELECTRICIDAD SA ADS REPR 30 COM NPV','CL262181','EOC','EMPRESA NACIONAL DE ELECTRICIDAD SA NPV','CL17241927','ENDESA','EMPRESA PESQUERA EPERVA SA COM NPV','CL17241941','EPERVA','EMPRESAS CABO DE HORNOS SA COM NPV','CL17241963','HORNOS','EMPRESAS CMPC NPV','CL17241887','CMPC','EMPRESAS COPEC SA NPV','CL17241895','COPEC','EMPRESAS HITES S A COM NPV','CL31760748','HITES','EMPRESAS IANSA SA NPV','CL17241965','IANSA','EMPRESAS LA POLAR S.A. COM NPV','CL17241988','LA POLAR','EMPRESAS NAVIERA SA NPV','CL17242000','NAVIERA','EMPRESAS TATTERSALL SA NPV','CL17242059','TATTERSALL','EMPRESSA ELECTRICA ATACAMA SA NPV','CL17241923','EMELAT','ENAEX SA NPV','CL17241926','ENAEX','ENERGIA DE CASABLANCA SA COM NPV','CL17241858','CASABLANCA','ENERSIS S.A NPV','CL17241939','ENERSIS','ENERSIS S.A SPON ADR REP 50 COM SHS NPV','CL262241','ENI','ENJOY','CL29648242','ENJOY','ENTEL TELECOMUNICATION(EMPRESA NAC) NPV','CL17241940','ENTEL','ENVASES DEL PACIFICO SA NPV','CL17241915','EDELPA','ESSBIO SA CLASSBNPV','CL17241944','ESSBIO-B','ESVAL S.A. COM SERANPV','CL17241946','ESVAL-A','ESVAL S.A. COM SERCNPV','CL21608081','ESVAL-C','FARMACIAS AHUMADA NPV','CL17241948','FASA','FORESTAL CHOLGUAN S.A NPV','CL17241882','CHOLGUAN','FORUS S.A. COM NPV','CL17241950','FORUS','FRUTICOLA VICONTO SA NPV','CL17242069','VICONTO','GASCO','CL17241953','GASCO','GRANADILLA COUNTRY CLUB SA NPV','CL17241957','GRANADILLA','GROUP SECURITY SA COM NPV','CL17242035','SECURITY','HIPERMARC S.A. COM NPV','CL21778580','HIPERMARC','INDIVER S.A. NPV','CL17241970','INDIVER','INDUSTRIAL EL VOLCAN SA NPV','CL17242070','VOLCAN','INDUSTRIAS ALIMENTICIAS CAROZZI SA NPV','CL17241857','CAROZZI','INDUSTRIAS DE ALUMINIO INDALUM NPV','CL17241968','INDALUM','INDUSTRIAS FORESTALES SA COM NPV','CL17241972','INFORSA','INDUSTRIAS PRODUCTS ALIMENTICIOS COM NPV','CL5007314','IPAL','INFODEMA SA COM NPV','CL17241971','INFODEMA','INMOBILIARIA CNTRL DE ESTAC AGUSTAS NPV','CL17241945','ESTACIONAM','INMOBILIARIA CRAIGHOUSE SA NPV','CL8317935','CRAIGHOUSE','INMOBILIARIA SAN PATRICIO SA COM NPV','CL17241981','ISANPA','INMOBILIARIA SPORT FRANCALS NPV','CL17242054','SPORTFRAN','INMOBILIARIA VINA DEL MAR SA NPV','CL8317973','INMOBVINA','INSTITUTO DE DIAGNOSTICO SA COM NPV','CL17241969','INDISA','INTASA S.A.','CL17241974','INTASA','INVERCAP SA NPV','CL17241976','INVERCAP','INVERSIONES AGUAS METROPOLITANAS ADR EA REP 20 ORD 144A','CL18686791','','INVERSIONES AGUAS METROPOLITANAS ADR EA REP 20 ORD REGS','CL19114083','IAMTY','INVERSIONES AGUAS METROPOLITANAS COM NPV','CL17241964','IAM','INVERSIONES CAMPOS CHILENOS SA NPV','CL17241854','CAMPOS','INVERSIONES COVADONGA NPV','CL17241902','COVADONGA','INVERSIONES FRIMETAL SA COM NPV','CL18822257','FRIMETAL','INVERSIONES LA ESPANOLA SA NPV','CL17241942','ESPANOLA','INVERSIONES NORTE GRANDE SA NPV','CL17242001','NORTEGRAN','INVERSIONES ORO BLANCO SA NPV','CL17242002','ORO\BLANCO','INVERSIONES PAMPA CALICHERA SA COM SERANPV','CL17241852','CALICHERAA','INVERSIONES PAMPA CALICHERA SA COM SERBNPV','CL17241853','CALICHERAB','INVERSIONES SIEMEL SA COM NPV SERA','CL17242037','SIEMEL','INVERSIONES TRICAHUE NPV','CL17242062','TRICAHUE','INVERSIONES UNESPA NPV','CL17242064','UNESPA','INVERSIONES UNION ESPANOLA SA NPV','CL17241979','INVIESPA','INVERTEC PESQUERA MAR DE CHILOE SA COM NPV','CL17241977','INVERMAR','JUGOS CONCENTRADOS SA COM NPV','CL17241983','JUCOSA','LABORATORIOS ANDROMACO SA COM NPV','CL17241933','ANDROMACO','LAFARGE CHILE SA NPV','CL31510972','LAFARGE CL','LAN AIRLINES SA NPV','CL17241985','LAN','LAN AIRLINES SA SPND ADR REPR 1 ORD SHS NPV','CL271004','LFL','MADECO S.A. ADR REP 100 ORD NPV','CL272460','MADKY','MADECO S.A. COM STK NPV','CL17241990','MADECO','MARBELLA COUNTRY CLUB SA NPV','CL17241991','MARBELLACC','MARITIMA DE INVERSIONES SA NPV','CL17241992','MARINSA','MASISA S.A. COM NPV','CL17241993','MASISA','MASISA S.A. SPONS ADR EACH REP 50 COM S','CL18464414','','MINERA VALPARAISO NPV','CL17241995','MINERA','MOLIBDENOS Y METALES SA NPV','CL17241996','MOLYMET','MULTIEXPORT FOODS COM NPV','CL18400532','MULTIFOODS','NACIONAL TELEFONOS DEL SUR SA NPV','CL17242061','TELSUR','NAVARINO SA NPV','CL17241999','NAVARINO','PACIFICO V REGION SA NPV','CL17242003','PACIFICO','PARQUE ARAUCO SA NPV','CL17242004','PARAUCO','PASUR FORESTAL CONSTR Y COMERCIAL NPV','CL17242005','PASUR','PAZ CORP SA COM STK NPV','CL17242006','PAZ','PESQUERA COLOSA SA NPV','CL17241889','COLOSO','PESQUERA ITATA SA NPV','CL17241982','ITATA','PORTUARIA CABO FROWARD SA NPV','CL17241952','FROWARD','PRINCE OF WALES COUNTRY CUB SA INMO SHS NPV SERA','CL17241900','COUNTRY-A','PRINCE OF WALES COUNTRY CUB SA INMO SHS NPV SERB','CL17241901','COUNTRY-B','PUERTO DEL LIRQUEN SA NPV','CL17242017','PUERTO','PUERTO VENTANAS SA NPV','CL17242068','VENTANAS','PUNTA DEL COBRE SA COM NPV SERA','CL17242015','PUCOBRE-A','PUNTA DEL COBRE SA COM NPV SERC','CL8318180','PUCOBRE-C','PUNTA DEL COBRE SA COM NPV SERD','CL17242016','PUCOBRE-D','QUEMCHI SA COM NPV','CL17242019','QUEMCHI','QUILICURA SA NPV','CL17242020','QUILICURA','QUINENCO SA COM NPV','CL17242021','QUINENCO','QUINTEC SA COM NPV','CL17242022','QUINTEC','REBRISA SA SERAPRF NPV','CL17242024','REBRISA-A','REBRISA SA SERBPRF NPV','CL17242025','REBRISA-B','RIPLEY CORP SA COM NPV','CL17242026','RIPLEY','S.A.C.I FALABELLA COM NPV','CL17241947','FALABELLA','SALFACORP SA COM NPV','CL17242027','SALFACORP','SANTANA SA NPV','CL17242029','SANTANA','SCHWAGER ENERGY SA COM NPV','CL17242033','SCHWAGER','SCOTIABANK SUD AMERICANO SA COM NPV SERA','CL17242058','SUD AMER-A','SEGUROS LA CHILENA CONSOLIDADA SA NPV','CL17241894','CONSOGRAL','SIGDO KOPPERS S.A. COM NPV','CL17242040','SK','SIGLO XXI FONDO DE INVERSION MOBILI COM NPV','CL31789026','CFIMSIGLO','SINTEX SA NPV','CL17242038','SINTEX','SIPSA SA NPV','CL17242039','SIPSA','SOC INMOBILIARIA CLUB DE CAMPO COM NPV','CL17241885','CLUBCAMPO','SOCIEDAD MANUFCT ELCTROARTEFACTOS NPV','CL17242049','SOMELA','SOCIEDAD MATRIZ DEL BANCO DE CHILE SERANPV','CL17242043','SM-CHILE A','SOCIEDAD MATRIZ DEL BANCO DE CHILE SERBNPV','CL17242044','SM-CHILE B','SOCIEDAD MATRIZ DEL BANCO DE CHILE SERDNPV','CL17242045','SM-CHILE D','SOCIEDAD MATRIZ DEL BANCO DE CHILE SERENPV','CL17242046','SM-CHILE E','SOCIEDAD QUIMICA Y MINERA DE CHILE ADR(REPR 1 PRF SERB)','CL284695','SQM','SOCIEDAD QUIMICA Y MINERA DE CHILE PRF SERA','CL17242056','SQM-A','SOCIEDAD QUIMICA Y MINERA DE CHILE PRF SERB','CL17242057','SQM-B','SOCOVESA SA NPV','CL19547388','SOCOVESA','SONDA S.A. COM NPV','CL17242050','SONDA','SOPROCAL CALERIAS E INDUSTRIAS SA NPV','CL17242052','SOPROCAL','SOQUIMICH COMERCIAL SA NPV','CL17242053','SOQUICOM','TELEFONICA CHILE S.A. NPV SER A','CL17241904','CTC-A','TELEFONICA CHILE S.A. NPV SERB','CL17241905','CTC-B','TELEFONOS DE COYHAIQUE SA NPV','CL17242060','TELCOY','TELMEX CORP SA COM NPV','CL17241881','CHILESAT','THE GRANGE SCHOOL SA NPV SERA','CL17241958','GRANGE-A','UNION INMOBILIARIA SA NPV','CL17241886','CLUBUNION','VALPARAISO SPORTING CLUB SA NPV','CL17242055','SPORTING','VINA CONCHA Y TORO NPV','CL17241892','CONCHATORO','VINA CONCHA Y TORO SPON ADR REP 20 SHS NPV','CL290751','VCO','VINA SAN PEDRO TARAPACA SA COM NPV','CL17242032','SAN PEDRO','VINA SANTA RITA SA NPV','CL17242031','SANTA RITA','VINEDOS EMILIANA SA NPV','CL17241924','EMILIANA','WATTS S.A. COMANPV','CL32669743','WATTS','WATTS S.A. COMBNPV','CL17242072','WATTS-B','ZONA FRANCA DE IQUIQUE SA NPV','CL17242074','ZOFRI','3M COMPANY COM USD0.01','us274148','MMM','A.D.A.M INC COM USD0.01','us1532196','ADAM','A.F.P PROVIDA SPON ADR REP 15 COM NPV','us68728','PROVIDA','AAON INC COM STK USD0.004','us251325','AAON','AASTROM BIOSCIENCES INC COM NPV','us251870','ASTM','ABAXIS COM NPV','us251873','ABAX','ABBOTT LABORATORIES COM NPV','us251878','ABT','ABIGAIL ADAMS NATIONAL BANCORP COM USD0.01','us251899','AANB','ABINGTON BANCORP INC COM STK USD0.01','us10972531','ABBC','ABIOMED INC COM USD0.01','us251904','ABMD','ABRAXAS PETROLEUM CORP COM USD0.01','us251930','AXAS','AC MOORE ARTS & CRAFT INC COM NPV','us251374','ACMR','ACACIA RESEARCH CORP COM USD0.001 (ACACIA TECHS)','us6533951','ACTG','ACCELRYS INC COM USD0.0001','us9332356','ACCL','ACCESS INTEGRATED TECHNOLOGY COM USD0.001 CL A','us14620783','CIDM','ACCESS NATIONAL CORP COM USD1.67','us10410661','ANCX','ACCESS PLANS USA INC COM USD0.01','us16792964','AUSA','ACCURAY INCORPORATED COM STK USD0.001','us16866478','ARAY','ACERGY S.A. S/ADS EACH REP 1 COM USD2','us14293078','ACGY','ACETO CORP COM USD0.01','us251972','ACET','ACHILLION PHARMACEUTICALS INC COM STK USD0.001','us15988657','ACHN','ACI WORLDWIDE INC COM USD0.005','us18650885','ACIW','ACME PACKET INC COM STK USD0.001','us15873420','APKT','ACORDA THERAPEUTICS INC COM STK USD0.001','us8242433','ACOR','ACORN ENERGY INC COM STK USD0.01','us20766721','ACFN','ACTEL CORP COM USD0.001','us1550030','ACTL','ACTION PRODUCTS INTERNATIONAL INC COM USD0.001','us252003','APII','ACTIONS SEMICONDUCTOR CO-ADS ADR EA REPR 6 COM USD','us13361109','ACTS','ACTIVE POWER INC COM STK USD0.001','us252022','ACPW','ACTIVIDENTITY CORP COM USD0.001','us252028','ACTI','ACTIVISION BLIZZARD INC COM STK USD0.000001','us23754766','ATVI','ACTUATE CORP COM USD0.001','us252031','ACTU','ACURA PHARMACEUTICALS INC COM USD0.01','us21563672','ACUR','ACUSPHERE INC COM USD0.01','us8143532','ACUS','ACXIOM CORP COM USD0.10','us252041','ACXM','ADA-ES INC COM NPV','us10672013','ADES','ADAMS GOLF INC COM USD0.001','us22119296','ADGF','ADAPTEC INC COM USD0.001','us252063','ADPT','ADC TELECOMMUNICATIONS INC COM USD0.20','us11863973','ADCT','ADDVANTAGE TECHNOLOGIES GROUP INC COM USD0.01','us19296936','AEY','ADEPT TECHNOLOGY INC COM NPV','us13325753','ADEP','ADOBE SYSTEMS INC COM USD0.0001','us252079','ADBE','ADOLOR CORP COM USD0.0001','us252080','ADLR','ADTRAN INC COM USD0.01','us252091','ADTN','ADVANCED ANALOGIC TECHNOLOGIES INC COM STK USD0.001','us12619784','AATI','ADVANCED BATTERY TECHNOLOGIES INC COM USD0.001','us21875233','ABAT','ADVANCED ENERGY INDUSTRIES COM USD0.001','us252234','AEIS','ADVANCED ENVIRONMENTAL RECYCLING TE CLASS A COM USD0.01','us15146067','AERT','ADVANCED LIFE SCIENCES HOLD COM STK USD0.01','us12595700','ADLS','ADVANTA CORP CLASS A COM STK USD0.01','us68813','ADVNA','ADVANTA CORP CLASS B NON-VTG USD0.01','us252220','ADVNB','ADVENT SOFTWARE INC COM USD0.01','us252235','ADVS','ADVISORY BOARD INC COM USD0.01','us4162265','ABCO','ADVOCAT INC COM USD0.01','us15625863','AVCA','AEHR TEST SYSTEMS COM USD0.01','us252198','AEHR','AEP INDUSTRIES INC COM USD0.01','us251458','AEPI','AERO GROW INTERNATIONAL INC COM STK USD0.001','us18101324','AERO','AEROVIRONMENT INC COM STK USD0.0001','us16698034','AVAV','AES CORP COM USD0.01','us251504','AES','AETERNA ZENTARIS INC COM NPV','us10344444','AEZ','AETRIUM INC COM USD0.001','us252315','ATRM','AFC ENTERPRISES INC COM USD0.01','us7109021','AFCE','AFFIRMATIVE INSURANCE HLDGS INC COM USD0.01','us10556874','AFFM','AFFYMAX INC COM STK USD0.001','us16368953','AFFY','AFFYMETRIX INC COM USD0.01','us252319','AFFX','AGFEED INDUTRIES INC COM STK USD0.001','us19093364','FEED','AGILYSYS INC COM NPV','us8082713','AGYS','AIR METHODS CORPORATION COM USD0.06','us252377','AIRM','AIR T INC COM USD0.25','us68864','AIRT','AIR TRANSPORT SERVICES GROUP INC COM STK USD0.01','us22982760','ATSG','AIRMEDIA GROUP ADS EACH REPR 2 ORD SHS','us20008585','AMCN','AIRSPAN NETWORKS COM STK USD0.0003','us252431','AIRN','AIRVANA INC COM STK USD0.001','us18539142','AIRV','AIXTRON SPONS ADR EA REP 1 ORD NPV','us11464130','AIXG','AKAMAI TECHNOLOGIES COM USD0.01','us252438','AKAM','AKEENA SOLAR INC COM STK USD0.01','us19447891','AKNS','AKORN INC COM STK NPV','us16855952','AKRX','ALABAMA AIRCRAFT INDUSTRIES INC COM USD0.0001','us20966352','AAII','ALADDIN KNOWLEDGE SYSTEMS COM NPV','us50732','ALDN','ALANCO TECHNOLOGIES INC COM STK NPV CLASS  A','us252470','ALAN','ALBANY MOLECULAR RESEARCH COM USD0.01','us252492','AMRI','ALCOA INC COM USD1','us252524','AA','ALDILA INC COM USD0.01','us252545','ALDA','ALEXION PHARMACEUTICAL INC COM USD0.0001','us252559','ALXN','ALEXZA PHARMACEUTICALS INC USD0.0001','us14234070','ALXA','ALFACELL CORP COM USD0.001','us10556852','ACEL','ALICO INC COM USD1','us252584','ALCO','ALIGN TECHNOLOGY INC COM USD0.0001','us1956146','ALGN','ALKERMES INC COM USD0.01','us252585','ALKS','ALLEGIANT TRAVEL COMPANY COM STK USD0.001','us16300385','ALGT','ALLIANCE BANCORP INC OF PENNSYLVANI COM STK USD0.01','us1551619','ALLB','ALLIANCE BANKSHARES CORP COM USD0.01','us4370604','ABVA','ALLIANCE FIBRE OPTICS PRODUCTS COM USD0.001','us252749','AFOP','ALLIANCE FINANCIAL CORP COM STK USD1','us69006','ALNC','ALLIANCE HOLDINGS GP L P COM STK NPV','us14776297','AHGP','ALLIANCE RESOURCE PARTNERS LP SBI','us252794','ARLP','ALLIED HEALTHCARE INTERNATIONAL INC COM USD0.01','us9297397','AHCI','ALLIED HEALTHCARE PRODUCTS INC COM USD0.01','us252867','AHPI','ALLIED MOTION TECHNOLGIES INC COM NPV','us7878789','AMOT','ALLION HEALTHCARE INC COM USD0.001','us12378067','ALLI','ALLOS THERAPEUTICS COM USD0.001','us252894','ALTH','ALLOT COMMUNICATIONS LTD COM STK ILS0.10','us16123846','ALLT','ALLOY INC COM STK USD0.01','us252897','ALOY','ALLSTATE CORP COM USD0.01','us252910','ALL','ALTRIA GROUP INC COM USD0.333333','us279770','MO','AMERICAN ELECTRIC POWER CO INC COM USD6.50','us253240','AEP','AMERICAN EXPRESS CO COM USD0.20','us253252','AXP','AMERICAN INTERNATIONAL GROUP INC COM USD2.50','us253376','AIG','AMERICAN MEDICAL ALERT CORP COM USD0.01','us253400','AMAC','AMGEN INC COM USD0.0001','us253610','AMGN','APP PHARMACEUTICALS INC NEW COM STK USD0.001','us20120839','ABII','APPLE INC COM NPV','us253929','AAPL','AT&T INC COM USD1','us1549994','T','AVON PRODUCTS INC COM USD0.25','us254824','AVP','BAKER HUGHES','us255043','BHI','BANCO BILBAO VIZCAYA ARGENTARIA SA ADS EACH REP 1 ORD EUR0.49','us255111','BBV','BANCO SANTANDER-CHILE ADR-EACH REP 1039 COM NPV','us1550376','SAN','BANK OF AMERICA CORPORATION COM USD0.01','us255248','BAC','BANK OF NEW YORK MELLON CORP COM STK USD0.01','us255266','BK','BAXTER INTERNATIONAL INC COM USD1','us255482','BAX','BCO DE CHILE SPON ADR REP 600 ORD NPV','us4898556','BCH','BOEING CO COM USD5','us256223','BA','BRISTOL-MYERS SQUIBB CO COM STK USD0.10','us256484','BMY','BURLINGTON NORTHERN SANTA FE CORP COM USD0.01','us256628','BNI','CAMPBELL SOUP CO CAP USD0.0375','us257253','CPB','CAPITAL ONE FINANCIAL CORP COM USD0.01','us257334','COF','CATERPILLAR INC COM USD1','us257535','CAT','CBS CORPORATION CLASS B COM STK USD0.001','us13481034','CBS','CHEVRON CORPORATION COM USD0.75','us4013353','CVX','CIGNA CORP COM USD0.25','us256763','CI','CISCO SYSTEMS','us258198','CSCO','CITIGROUP INC COM USD0.01','us258242','C','COCA-COLA CO COM USD0.25','us258521','KO','COLGATE-PALMOLIVE CO COM USD1','us258599','CL','COMCAST CORP COM CLS A USD0.01','us258742','CMCSA','COMPANIA CERVECERIAS UNIDAS SA SPON ADR(CNV INTO 5 COM SHS','us258410','CCU','COMPANIA TELECOMUNICACIONES CHILE SPON ADR REP 4A COM NPV','us258911','CTC','CONOCOPHILLIPS COM USD0.01','us6063928','COP','CORPBANCA ADR-EACH REPR 5000 COM REG','us10740928','BCA','COVIDIEN LTD COM STK USD0.20','us18354810','COV','CVS CAREMARK CORP COM STK USD0.01','us256904','CVS','DELL INC COM USD0.01','us1550877','DELL','DISTRIBUCION Y SERVICIO D & S SA EA ADR REP 60 SHS NPV','us260756','D&S','DOW CHEMICAL CO COM USD2.50','us260913','DOW','DU PONT(E.I.)DE NEMOURS & CO COM USD0.30','us261336','DD','EL PASO CORP COM USD3','us4828169','EP','EMBOTELLADORA ANDINA SA SPN ADR-REP 6 SER A PRF NPV','us73935','AKO-A','EMBOTELLADORA ANDINA SA SPN ADR-REP 6 SER B PRF NPV','us262089','AKO-B','EMC CORP MASSACHUSETTS COM USD0.01','us261576','EMC','EMPRESA NACIONAL DE ELECTRICIDAD SA ADS REPR 30 COM NPV','us262181','ELE','ENERSIS S.A SPON ADR REP 50 COM SHS NPV','us262241','ENI','ENTERGY CORP COM USD0.01','us262344','ETR','EXELON CORP COM NPV','us263009','EXC','EXXON MOBIL CORP COM NPV','us3306396','XOM','FEDEX CORP COM USD0.10','us263833','FDX','FORD MOTOR CO COM STK USD0.01','us264959','F','GENERAL DYNAMICS CORP COM USD1','us266020','GD','GENERAL ELECTRIC CO COM USD0.06','us266034','GE','GENERAL MOTORS CORP COM USD1-2/3','us266152','GM','GOLDMAN SACHS GROUP INC COM USD0.01','us266507','GS','GOOGLE INC COM USD0.001 CL A','us10390991','GOOG','HALLIBURTON CO COM STK USD2.50','us1551642','HAL','HARTFORD FINANCIAL SERVICES GRP INC COM USD0.01','us1551673','HIG','HEINZ(H.J.)CO COM USD0.25','us267752','HNZ','HEWLETT PACKARD CO COM USD0.01','us267894','HPQ','HOME DEPOT INC COM USD0.05','us268077','HD','HONEYWELL INTERNATIONAL INC COM USD1','us268145','HON','INTEL CORP COM USD0.001','us269226','INTC','INTERNATIONAL BUS MACH CORP COM USD0.20','us1551887','IBM','INTERNATIONAL PAPER CO COM USD1','us269592','IP','JOHNSON & JOHNSON COM USD1','us270227','JNJ','JP MORGAN CHASE & CO COM USD1','us274385','JPM','KRAFT FOODS INC COM STK NPV CLS A','us3240177','KFT','LAN AIRLINES SA SPND ADR REPR 1 ORD SHS NPV','us271004','LFL','MADECO S.A. ADR REP 100 ORD NPV','us272460','MAD','MASTERCARD INC COM USD0.0001 CLASS A','us14865888','MA','MCDONALDS CORPORATION COM USD0.01','us273053','MCD','MEDTRONIC INC COM USD0.10','us273205','MDT','MERCK & CO INC COM USD0.01','us273340','MRK','MERRILL LYNCH & CO INC COM USD1.333','us273571','MNNY','MICROSOFT','us273978','MSFT','MORGAN STANLEY COM STK USD0.01','us274646','MS','NATIONAL OILWELL VARCO INC COM USD0.01','us275688','NOV','NORFOLK SOUTHERN CORP COM USD1','us276749','NSC','NYSE EURONEXT INC COM STK USD0.01','us10750384','NYX','OCCIDENTAL PETROLEUM CORP COM USD0.20','us277685','OXY','ORACLE CORP COM USD0.01','us1552869','ORCL','PEPSICO INC CAP USD0.016666','us279541','PEP','PFIZER INC COM USD0.05','us279709','PFE','PHILIP MORRIS INTL COM STK NPV','us22397355','PM','PROCTER & GAMBLE CO COM NPV','us280675','PG','QUALCOMM INCORP STK','us281509','QCOM','RAYTHEON CO COM USD0.01','us3082218','RTN','REGIONS FINANCIAL CORP COM USD0.625','us10287883','RF','SARA LEE CORP COM USD0.01','us283476','SLE','SCHLUMBERGER LIMITED COM USD0.01','us87717','SLB','SOCIEDAD QUIMICA Y MINERA DE CHILE ADR(REPR 1 PRF SER B)','us284695','SQM','SOUTHERN CO. COM USD5','us284917','SO','SPRINT NEXTEL CORPORATION COM USD2 SERIE 1','us283808','S','TARGET CORP COM STK USD0.0833','us286318','TGT','TEXAS INSTRUMENTS INC COM USD1','us1553860','TXN','TIME WARNER INC. STK','us8127243','TWX','TYCO INTERNATIONAL LTD COM STK USD0.80','us29587','TYC','UNITED PARCEL SERVICE INC CLASS B COM USD0.01','us288352','UPS','UNITED TECHNOLOGIES CORP COM USD1','us289920','UTX','UNITEDHEALTH GROUP INC COM USD0.01','us85339','UNH','US BANCORP COM USD0.01','us287997','USB','VERIZON COMMUNICATIONS COM USD0.10','us290534','VZ','VINA CONCHA Y TORO SPON ADR REP 20 SHS NPV','us290751','VCO','WACHOVIA CORPORATION COM USD3.333 1/3','us291166','WB-PS','WAL-MART STORES INC COM USD0.10','us291252','WMT','WALT DISNEY COMPANY (THE) DISNEY COM USD0.01','us260731','DIS','WELLS FARGO & COMPANY COM USD1 2/3','us86195','WFC','WEYERHAEUSER COMPANY COM USD1.25','us291784','WY','WILLIAMS COMPANIES INC COM USD1','us291851','WMB','WYETH COM USD0.333','us5180082','WYE','XEROX CORP COM USD1','us292165','XRX','AMERICA MOVIL SAB DE C V SPONSORED ADR REPSTG SER L SHS ','US2569538','AMX','ARACRUZ CELULOSE S.A SPONSORED ADR REPSTG CL B SHS','US254001','ARA','BAIDU COM INC SPONS ADR REPSTG ORD SHS CL A','US12624108','BIDU','BANCO BRADESCO S A SPONSORED ADR REPSTG PFD SHS NEW 2004','US9444662','BBD','BANCO ITAU HLDG FINANCERIA S A SPONSORED ADR REPSTG 500 PFD ','US4998493','ITU','BANCOLOMBIA S A SPONSORED ADR REPSTG 4 PREF SHS','US70121','CIB','BRASIL TELECOM PARTICIPACOES S A SPONSORED ADR RESTG PFD SHS','US70828','BRP','BRASKEM S D SPONSORED ADR REPSTG PFD A ','US6063968','BAK','CPFL ENERGIA SA SPONS ADR ','US10550479','CPL','CEMEX S A B DE C V SPONSOR ADR NEW REP ORD PARTN CTF NEW FOR A & B SHS ','US257611','CX','COCA COLA FEMSA SAB DE CV SPON ADR REPSTG 10 SHS SER L','US258533','KOF','COMPANHIA ENERGETICA DE MINAS GERAIS ADR ','US3787003','CIG','COMPANHIA BRASILEIRA DE DISTRIBUICAO  SPONS ADR REPSTG PFD','US72370','CBD','COMPANHIA SIDERURGICA NACIONAL SPONSORED ADR REPSTG ORD SHS ','US72377','SID','COMPANHIA VALE DO RIO DOCE ADR REPSTG','US258857','RIO','COMPANHIA DE SANEAMENTO BASICO DO ESTADO DE SAO PAULO SABESP SPONSORED ADR','US5417149','SBS','COMPANHIA DE BEBIDAS DAS AMERS AMBEV SPONSORED ADR REPSTG PFD SHS','US258874','ABV','COMPANIA DE MINAS BUENAVENTURA S A SPONS ADR REPSTG SER B SHS','US258901','BVN','CRESUD S A C I F Y A SPONSORED ADR','US259691','CRESY','EMBRAER EMPRESA BRASILEIRA DE AERONAUTICA S A SPONSORED ADR REPSTG COM SHS','US262076','ERJ','FOMENTO ECONOMICO MEX S A B DE C V NEW  SPON ADR REP UNIT1 SER B SH & 2 SER D B SHS & 2 SER D L SHS','US1551401','FMX','GAFISA S A SPONS ADR REPSTG 2 COM SHS','US17180755','GFA','GERDAU S A SPONSORED ADR','US266290','GGB','GRUPO TELEVISA SA DE CV SPON ADR REPSTG ORD PARTN CTF ','US266967','TV','GROUP AEROPORTUARIO DEL PACIFIC SAB DE C V SPONSORED ADR RESPTG 10 SER B SHS','US14202519','PAC','OPEN JT STK CO VIMPEL COMMUNICATION SPONSORED ADR','US278125','VIP','POSCO SPON ADR','US280342','PKX','PERDIGAO S A SPONSORED ADR REPSTG COM NEW','US279551','PDA','PERUSAHAAN PERSEROAN PERSERO P.T. TELEKOMUNIKASI INDONESIA ADR RPSTG 40 SER B SHS','US279641','TLK','PETROLEO BRASILEIRO SA SPONSORED ADR','US2583891','PBR','TELE NORTE LESTE PARTICIPACOES S A SPONSORED ADR REPSTG PFD','US286442','TNE','TELECOM ARGENTINA S A SPONSORED ADR REPSTG 5 CL B ORD SHS ','US286479','TEO','TELEFONOS DE MEXICO SA DE CV ADR CLASS L ','US1553819','TMX','TELMEX INTERNACIONAL SAB DE CV SPONS ADR REPSTG SHS SER L ','US23321171','TII','TIM PARTICIPACOES SA SPONS ADR REPSTG PFD','US10650449','TSU','USINAS SIDERURGICAS DE MINAS GERAIS S A  SPON ADR REG S','US3956231','USNZY','VOTORANTIM CELULOSE E PAPEL S.A. SPON ADR','US291088','VCP','WAL MART DE MEXICO SA DE CV SPONS ADR  REPSTG SER V SHS','US380582','WMMVY');
s['BON']=new Array('BCP 2','cl23132524','','BCP 5','cl23132523','','BCP 10','cl17121761','','BCU 5','cl17121758','','BCU 10','cl17121760','','Tip 30-89','cl25881035','','Tab 1','cl25881036','','US Treasury 2','us25812379','','US Treasury 5','us25812380','','US Treasury 10','us25812381','');
s['FUN']=new Array('RENTA CHILENA, FONDO MUTUO CELFIN','25812368','','RENTA NOMINAL, FONDO MUTUO CELFIN','25812372','','MONEY MARKET, FONDO MUTUO CELFIN','25812367','','MONEY MARKET DOLAR, FONDO MUTUO CELFIN','25812371','','RENTA INTERNACIONAL, FONDO MUTUO CELFIN','25812369','','RENTA GLOBAL, FONDO MUTUO CELFIN','25812370','','DINAMICO C, FONDO MUTUO CELFIN','25812366','','ACCIONES CHILENAS, FONDO MUTUO CELFIN','25812362','','ACCIONES USA, FONDO MUTUO CELFIN','25812365','','ACCIONES EUROPEAS FONDO MUTUO CELFIN','25812364','','ACCIONES EUROPA EMERGENTE MUTUO CELFIN','31245904','','ACCIONES LATINOAMERICANAS, FONDO MUTUO CELFIN','25812363','','ENERGIA, FONDO MUTUO CELFIN','25812377','','DINAMICO A, FONDO MUTUO CELFIN','25812376','','DINAMICO B, FONDO MUTUO CELFIN','25812375','','BRASIL, FONDO MUTUO CELFIN','25812373','','ACCIONES ASIA EMERGENTE, FONDO MUTUO CELFIN','25880981','','CREDICORP LTD COM ','1528110','BAP','GEOPARK HOLDINGS LIMITED COM ','19114081','GPK','CONDOR RES INC COM ','14629580','CN','PINETREE CAPITAL LTD COM ','10420975','PNP','POTASH CORP OF SASKATCHEWAN INC COM','98849','POT','ANTOFAGASTA HOLDINGS PLC ','979940','ANTO','COPA HOLDING S A CL A COM ','13537934','CPA','ASIA PACIFIC FD INC','254387','APB','CENTRAL EUROPEAN & RUSSIA FD INC','257698','CEE','DIAMONDS TR UNIT SER 1','7879875','DIA','ECOPETROL S A SPONSORED ADS ','262255','EC','FREDDIE MAC','263331','FRE','FANNIE MAE COM','263428','FNM','GENERAL ELECTRIC CO COM','266034','GE','GOLDMAN SACHS GROUP INC COM','266507','GS','GOOGLE INC CL A','10390991','GOOG','GREATER CHINA FUND INC','75680','GCH','INDIA FUND INC','1532732','IFN','ISHARES COMEX GOLD TR ISHARES','11131780','IAU','ISHARES INC MSCI BRAZIL FREE INDEX FD SHS','10746742','EWZ','ISHARES INC MSCI EMU INDEX FD','18856562','EZU','ISHARES INC MCSI BRIC INDEX FD','20284356','BKF','ISHARES INC MSCI PACIFIC EX JAPAN INDEX FD','21315029','EPP','ISHARES INC MSCI SINGAPORE INDEX FD','10746735','EWS','ISHARES INC MSCI UNITED KINGDOM INDEX FD','21314535','EWU','ISHARES INC MSCI TAIWAN INDEX FD','10746738','EWT','ISHARES INC MSCI SOUTH KOREA INDEX FD','21314785','EWY','ISHARES INC MSCI GERMANY INDEX FD','10746728','EWG','ISHARES INC MSCI MEXICO INVESTABLE MARKET INDEX FD','16734900','EWW','ISHARES INC MSCI MALAYSIA FREE INDEX FD','21314502','EWM','ISHARES INC MSCI JAPAN INDEX FD','21314548','EWJ','ISHARES INC MSCI HONG KONG INDEX FD','21313883','EWH','ISHARES TR FTSE XINHUA HK CHINA 25 INDEX FD','21313848','FXI','ISHARES TR S&P 500 INDEX FD','10747123','IVV','ISHARES TR MSCI EMERGING MKTS INDEX FD','21314523','EEM','ISHARES S&P GROWTH INDEX FD','21314524','IVW','ISHARES TR S&P TOPIX 150 INDEX FD','21314476','ITF','ISHARES TR S&P LATIN AMER 40 INDEX FD','21314553','ILF','ISHARES TR S&P GSSI TECHNOLOGY INDEX FD','21314543','IGM','ISHARES TR S&P GLOBAL 100 INDEX FD ','21314779','IOO','ISHARES TR RUSSELL 1000 INDEX FD','10747124','IWB','ISHARES TR DOW JONES U S HEALTHCARE SECTOR INDEX FD','21314774','IYH','ISHARES TR DOW JONES US FINL SECTOR INDEX FD','21313890','IYF','ISHARES TR S&P EURO PLUS INDEX FD','10747070','IEV','ISHARES TR MSCI ACWI INDEX FD','22318347','ACWI','ISHARES INC S&P ASIA 50 INDEX FD','20284361','AIA','JP MORGAN CHASE & CO COM ','274385','JPM','LEHMAN BROS HLDGS INC COM','24766891','LEHMQ','MARKET VECTORS RUSSIA ETF TR SHS BEN INT','21313888','RSX','MARKET VECTORS ETF TR AGRIBUSINESS ETF','19148351','MOO','MEDIVATION INC COM','17255824','MDVN','MERRILL LYNCH & CO INC','273571','MER','MONSANTO CO NEW COM','274299','MON','MORGAN STANLEY EASTERN EUROPEAN FD INC','79673','RNE','MORGAN STANLEY CHINA A SH FD INC COM','15766911','CAF','POWERSHARES EXCHANGE TRADED FD TR DYNAMIC INDLS SECTOR PORT','15843106','PRN','POWERSHARES EXCHANGE TRADED FD TR GOLDEN DRAGON HALTER USX CHINA PORTFOLIO','11019585','PGJ','POWERSHARES DB MULTI SECTOR COMMODITY TR POWER SHARES DB AGRIC FD COM UNIT','16526428','DBA','ULTRASHORT MSCI EMERGING MKTS PROSHARES EEV','19955167','EEV','ULTRA FINANCIALS PROSHARES UYG','16832984','UYG','STANDARD & POORS DEPOSITARY RECEIPTS (SPDRs) UNITS OF UNDIVIDED BENEFICIAL INTEREST','7883840','SPY','SPDR GOLD TR GOLD SHS','21313928','GLD','SPDR INDEX SHS FDS S&P EMERGING EUROPE ETF','17303509','GUR','SELECT SECTOR SPDR FD HEALTH CARE','7885373','XLV','SELECT SECTOR SPDR TR ENERGY','7885340','XLE','SECTOR SPDR TR SHS BEN INT FINANCIAL','7885341','XLF','SECTOR SPDR TR SHS BEN INT UTILITIES','7885372','XLU','SOUTHERN COPPER CORP DEL COM','1553652','PCU','TELECOM HOLDERS TR DEPOSITARY RCPT ','7884254','TTH','TEMPLETON DRAGON FUND INC','286636','TDF','TEMPLETON RUSSIA FD INC COM','286735','TRF','THAI FUND INC.','286932','TTF','UNIBANCO UNIAO DE BANCOS BRASILEIROS S A GDR REPSTG 500 UNITS 1 PFD & 1 PFDQ CL B UNIBANCO HLDGS SA','1553979','UBB','VANGUARD EMERGING MARKETS ETF','11430213','VWO','VANGUARD INTL EQUITY INDEX FD INC VANGUARD EUROPEAN ETF','11430211','VGK','VANGUARD WORLD FDS VANGUARD CONSUMER STAPLES ETF','9471809','VDC','VANGUARD WORLD FDS VANGUARD FINLS ETF','9471808','VFH','VANGUARD WORLD FDS VANGUARD HEALTH CARE ETF','8422637','VHT','VANGUARD WORLD FDS VANGUARD INFORMATION TECHNOLOGY ETF','9471806','VGT','VANGUARD INDEX FDS VANGUARD LARGE CAP ETF','8419105','VV');
s['IND']=new Array('IPSA CHILE INDEX','cl17242077','','IGPA CHILE STOCK EXCHANGE Index','cl325080','','BRAZIL BOVESPA INDEX','br1335248','','DOW JONES INDUSTRIAL INDEX','us324977','','NASDAQ CMP INDEX','us324985','','S&P 100, USA','us293654','','S&P 500, USA','us4359526','','NIKKEI 225 INDEX','jp324913','','MEXICO STOCK EXCHANGE INDEX IPC','mx10583965','','FTSE 100, UK','gb1918069','','DAX, ALEMANIA','de20735','','HONG KONG HANG SENG INDEX','hk8327332','',
//'SHANGAI SSE 180 INDEX','cn7906001','',
'BOMBAY BSE SENSEX INDEX','in325085','','AUSTRALIAN STOCK EXCHANGE INDEX','au9394200','','COREA DEL SUR KRX 100','kr12184846','','FRANCIA CAC40 INDEX','fr324965','','BELGIUM BEL20 INDEX','be293666','','PORTUGAL PSI20 INDEX','pt324727','','HOLANDA AEX INDEX','nl324912','','RUSIA RTS1 INDEX','ru362159','');
s['COM']=new Array('COBRE A FUTURO','us1022799','','COBRE A CASH','gb25881002','','CRUDE OIL WTI','us946086','','CELULOSA NBSK','us25815104','','GAS NATURAL','us25881003','','HARINA DE PESCADO','gb25815105','','AZUCAR','gb25881004','');
s['MET']=new Array('ORO 100 OZ.','1326189','','PLATA 5000','1288094','');
s['CUR']=new Array('DOLAR SPOT','24698976','USD/CLP','EURO','1390634','EUR/USD','UNIDAD DE FOMENTO','17121762','UF','DOLAR OBSERVADO','17121757','','REAL BRASIL','994752','USD/BRL','YEN JAPONES','1363989','JPY/USD','LIBRA ESTERLINA','1305587','GBP/USD','DOLAR AUSTRALIANO','833622','AUD/USD','YUAN CHINO','1343320','USD/CNY','RAND SUDAFRICANO','1325508','USD/ZAR');

oFlashChart.getChartObject = function(){
	return this.oChartObject;
};
oFlashChart.setChartObject = function(obj){
	this.oChartObject=obj;
};
function CargarIngreso(){
	var especificaciones="toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=250,height=150";
	var titulo="Acceso_Clientes";
	window.open("http://www.celfin.com/mdgms/formulario.asp",titulo,especificaciones); 
}
function rangos_notation(idnotation){
	if( iCurrentNotation=="25812368" || iCurrentNotation=="25812372" || iCurrentNotation=="25812367" || iCurrentNotation=="25812371" || iCurrentNotation=="25812369" || iCurrentNotation=="25812370" || iCurrentNotation=="25812366" || iCurrentNotation=="25812362" || iCurrentNotation=="25812365" || iCurrentNotation=="25812364" || iCurrentNotation=="31245904" || iCurrentNotation=="25812363" || iCurrentNotation=="25812377" || iCurrentNotation=="25812376" || iCurrentNotation=="25812375" || iCurrentNotation=="25812373" || iCurrentNotation=="25880981" || iCurrentNotation=="25812378" || iCurrentNotation=="325085"){
		return aPeriod[2];
	}else{
		return aPeriod[0];
	}
}
function decimal_notation(idnotation){
	if( iCurrentNotation=="1390634" || iCurrentNotation=="994752" || iCurrentNotation=="1363989" || iCurrentNotation=="1305587" || iCurrentNotation=="833622" || iCurrentNotation=="1343320" || iCurrentNotation=="1325508" || iCurrentNotation=="1022799"	|| iCurrentNotation=="25881002" || iCurrentNotation=="1288094"	|| iCurrentNotation=="25881003" || iCurrentNotation=="25812371"){
		return 4;
	}else{
		return 2;
	}
}
function clean_benchmark(){

	for( i = 0 ; i < aBenchmark.length; i++){
		if(aBenchmark[i] !=0) {
			try{
				var sRequest = 'oFlashChart.oChartObject.unsetBenchmark('+(parseInt(i)+1)+');';
				setTimeout(sRequest,500);
			}catch(e){
				setTimeout(sRequest,500);
			}
			
			$('benchmark_'+i).innerHTML = "";
			$('benchmark_'+i).style.display = 'none';
			$('imgben'+i).style.display = 'none';
			aBenchmark[i] = 0;
		}
	}
	return true;
}

function setrange_select(range){
	for( i = 0; i < aPeriod.length; i++){
		$('cRange_'+aPeriod[i]).style.background = 'url(http://www.celfin.mdgms.com/images/fondo_periodos.gif)';
		$('cRange_'+aPeriod[i]).style.color = '#4D4D4D';
	}
	$('cRange_'+range).style.background = 'url(http://www.celfin.mdgms.com/images/fondo_periodosb.gif)';
	$('cRange_'+range).style.color = '#FFFFFF';
	return true;
}
function SuggestCallback_general (sTool, sSearchValue, iIdNotation, sIsin) {
	if(iIdNotation!=iCurrentNotation){
		iCurrentNotation=iIdNotation;
		sTitle=sSearchValue;
			
		if(sTitle.length > 56) sTitle=sTitle.substr(0,53)+"...";	
		
		timeRange=rangos_notation(iCurrentNotation);
		try{
			var sRequest = 'oFlashChart.oChartObject.setDecimals('+decimal_notation(iCurrentNotation)+');';
			setTimeout(sRequest,500);
		}catch(e){
			setTimeout(sRequest,500);
		}
		
		try{
			var sRequest = 'oFlashChart.oChartObject.setNotation('+iCurrentNotation+',"'+timeRange+'");';
			setTimeout(sRequest,500);
		}catch(e){
			setTimeout(sRequest,500);
		}
	
		$('titulo_grafico').innerHTML = htmlspecialchars(sTitle,'ENT_QUOTES');
		
		$('idChangeIndicator').disabled=true;
		$('idChangeIndicator').options[0].selected=true;
		try{
			var sRequest = 'oFlashChart.oChartObject.addIndicator("0");';
			setTimeout(sRequest,500);
		}catch(e){
			setTimeout(sRequest,500);
		}	
				
		clean_benchmark();
		setrange_select(timeRange);
		addChartDatas(iCurrentNotation,$('page').value);
	}
}
function SuggestCallback_compare (sTool, sSearchValue, iIdNotation, sIsin) {
	var iBenchmark = iIdNotation;
	var bAccepted=true;
	var iBenchPossition=10;
					
	for(i = 0; i < aBenchmark.length; i++){
		if(aBenchmark[i] == iBenchmark ) bAccepted=false;
		if(aBenchmark[i] == 0 && iBenchPossition==10)	iBenchPossition=i;
	}
	if (iBenchPossition==10) bAccepted=false;
	if ((bAccepted) && (iBenchmark!=iCurrentNotation)){
		
		$('lyDragHelp').style.display = 'none';
		$('lyBenchmark').style.display = '';			
		
		try{
			var sRequest = 'oFlashChart.oChartObject.setBenchmark('+iBenchmark+','+(iBenchPossition+1)+');';
			setTimeout(sRequest,500);
		}catch(e){
			setTimeout(sRequest,500);
		}
		aBenchmark[iBenchPossition]=iBenchmark;
							
		if(sSearchValue.length > 29){
			$('benchmark_'+iBenchPossition).innerHTML = htmlspecialchars(sSearchValue.substring(0,26)+'...','ENT_QUOTES');
		}else{
			$('benchmark_'+iBenchPossition).innerHTML = htmlspecialchars(sSearchValue,'ENT_QUOTES');
		}
		$('imgben'+iBenchPossition).style.display = 'block';
		$('benchmark_'+iBenchPossition).style.display = 'block';
		$('benchmark_'+iBenchPossition).title = "Eliminar " + sSearchValue;
		timeRange=aPeriod[4];
		setrange_select(timeRange);
		
		$('idChangeIndicator').disabled=false;
		
		
		try{				
			var sRequest = 'oFlashChart.oChartObject.setRange("'+timeRange+'");';
			setTimeout(sRequest,500);
		}catch(e){
			setTimeout(sRequest,500);
		}
	}
}
addChartDatas = function (iIdInstrument,iPage){
	IDMS_ajax_snippet('ID_NOTATION='+iIdInstrument+'&PAGE='+iPage+'&RND='+Math.random() , 'ajax_graph_values', 'load_smart','http://www.celfin.mdgms.com/ajax_snippet/');
};
isDragHelper = function(){
		var bExistBench = true;
		for(i=0; i < aBenchmark.length; i++){
			if(aBenchmark[i]!=0) bExistBench = false;
		}
				
		if(bExistBench){
		}
};
function check_session(id){
	var myRand = parseInt(Math.random()*999999999999999);
	var url = 'http://www.celfin.mdgms.com/www/keepsession.html';
	var pars = 'ZID='+id+'&myrand='+myRand;
	var myAjax = new Ajax.Request(url,{
			method: 'GET',
			parameters: pars,
			onSuccess: function(resp){ 
				if (resp.responseText==0){
					clearInterval(idKeepCnn);
					showAlertMessage('Su sesi&oacute;n ha expirado o se ha perdido',9999,0);
					onvLHTML.stop();
					Set_Cookie( "sAccess","0",0);
					Set_Cookie( "sMessage", "1ok",0);					
				}
			}
		}
	);
}

// Funciones para activar y desactivar mensage del inicio una Layer al Inicio

function open_Message(){
	$('Message').style.display='block';
}
function close_Message(){
	$('Message').style.display='none';	
}
// Fin Funciones Activación de Layer

function SuggestCallback(sTool, sSearchValue, iIdNotation, sIsin) {
	SuggestCallback_general(sTool, sSearchValue, iIdNotation, sIsin);
}

Event.observe(window, 'load', function(){
	var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
	if (hasReqestedVersion){
		var sBrowserName = navigator.appName;
		var sBrowserVersion = parseInt(navigator.appVersion);
		var sVersionFlash = GetSwfVer().split(",");
		if((sBrowserName=="Microsoft Internet Explorer") && (sBrowserVersion<7)){
			var sFlash = sVersionFlash[0].split(" ");
			if ((parseInt(sFlash[1])<10) && (parseInt(sVersionFlash[2])<124)){				
				showAlertMessage('La versi&oacute;n m&iacute;nima para flash es 9.0.124.0',9999);
			}
		}	
	}
	
	if(!hasReqestedVersion){
		var sBrowserName = navigator.appName;
		var sBrowserVersion = parseInt(navigator.appVersion);
		if((sBrowserName=="Microsoft Internet Explorer")&&(sBrowserVersion<7)){ showAlertMessage('Para visualizar correctamente este sitio, se requiere Adobe Flash Player 10<br><br><center><a target="_blank" href="http://get.adobe.com/es/flashplayer/"><img src="http://www.celfin.mdgms.com/images/boton_flash.gif" width="185" height="23" border="0" /></a></center>',9999);
		}else{ showAlertMessage('Para visualizar correctamente este sitio, se requiere Adobe Flash Player 10<br><br><center><a target="_blank" href="http://get.adobe.com/es/flashplayer/"><img src="http://www.celfin.mdgms.com/images/boton_flash.gif" width="185" height="23" border="0" /></a></center>',9999);	}
	}
	
	if (!navigator.javaEnabled()){
		showAlertMessage('Debes tener JAVA instalado en tu navegador, versi&oacute;n m&iacute;nima 1.4.0.',9999);
	}
	
	if (typeof onvMDG == "undefined"){
		showAlertMessage('Se ha producido un error al cargar la p&aacute;gina, por favor actualice o presione F5',9999,2);
		return false;
	}else{
		onvLHTML.start();
	}
	
	oChart = new SWFObject("http://www.celfin.mdgms.com/flash/ComparativeChart.swf", "oSWFChart", "0", "0", "8", "#FFFFFF");
	oChart.addVariable("dataSrcRoot", "http://www.celfin.mdgms.com/");
	oChart.addVariable("enableSplits", "false");
	oChart.addVariable("enableVolume", "false");
	oChart.addVariable("defaultStartRange", timeRange);
	oChart.addVariable("fontSize", "8");
	oChart.addVariable("lang", "es");
	oChart.addVariable("notation", iCurrentNotation);
	oChart.addVariable("FORMAT_DATE", "long");
	oChart.addVariable("SHOW_DATE", "true");	
	oChart.addVariable("level", "25");
	oChart.addParam("wmode", "opaque");
	oChart.addParam("allowScriptAccess", "always");
	oChart.write("cCChart");
	oFlashChart.setChartObject($('oSWFChart'));
		$$('.cChangeIndicator').each(function(element){
		Event.observe(element, 'change', function(event){
			var iIndicator = element.options[element.selectedIndex].value;
			try{
				var sRequest = 'oFlashChart.oChartObject.addIndicator("'+iIndicator+'");';
				setTimeout(sRequest,500);
			}catch(e){
				setTimeout(sRequest,500);
			}
		});
	});
		$$('.cRange').each(function(element) {
		Event.observe(element, 'click', function(event){
			if (typeof oFlashChart == "undefined") return false;
			if (typeof oFlashChart.oChartObject == "undefined") return false;
			if (typeof oFlashChart.oChartObject.setDecimals == "undefined") return false;
			if (typeof oFlashChart.oChartObject.setNotation == "undefined") return false;
			if (typeof oFlashChart.oChartObject.addIndicator == "undefined") return false;
			timeRange = element.id.split('_').last();
			
			
			if(timeRange=="1D" || timeRange=="5D"){
				$('idChangeIndicator').disabled=true;
				$('idChangeIndicator').options[0].selected=true;
				try{
					var sRequest = 'oFlashChart.oChartObject.addIndicator("0");';
					setTimeout(sRequest,500);
				}catch(e){
					setTimeout(sRequest,500);
				}	
				
				clean_benchmark();
			}
			else $('idChangeIndicator').disabled=false;
	
			setrange_select(timeRange);
			
			try{				
				var sRequest = 'oFlashChart.oChartObject.setRange("'+timeRange+'");';
				setTimeout(sRequest,500);
			}catch(e){
				setTimeout(sRequest,500);
			}
		})
	});
	
	$$('.cBenchmark').each(function(element) {
		Event.observe(element, 'click', function(event){
			var idBench = element.id.split('_').last();
			try{
				var sRequest = 'oFlashChart.oChartObject.unsetBenchmark('+(parseInt(idBench)+1)+');';
				setTimeout(sRequest,500);
			}catch(e){
				setTimeout(sRequest,500);
			}
			
			$('benchmark_'+idBench).innerHTML = "";
			$('benchmark_'+idBench).style.display = 'none';
			$('imgben'+idBench).style.display = 'none';
			$('benchmark_'+idBench).title = "";
			aBenchmark[parseInt(idBench)] = 0;
			
			isDragHelper();
		})
	});

	lhtmlsubcribe();

	addChartDatas(iCurrentNotation,$('page').value);

	$('cRange_'+timeRange).style.background = 'url(http://www.celfin.mdgms.com/images/fondo_periodosb.gif)';
	$('cRange_'+timeRange).style.color = '#FFFFFF';
	
	IDMS_ajax_snippet('' , 'ajax_news', 'load_smart','http://www.celfin.mdgms.com/ajax_snippet/');
	idNews	= setInterval("IDMS_ajax_snippet('' , 'ajax_news', 'load_smart','http://www.celfin.mdgms.com/ajax_snippet/');",600000);
	idTimeCelfin = setInterval("TimeCelfin();",1000);
		parseStylesheets();
	new Ajax.Autocompleter('IDMS_autocomplete', 'IDMS_autocomplete_choices', '', {});
	if (Get_Cookie('sMessage')!='1ok'){
		open_Message();
		Set_Cookie( "sMessage", "1ok");
	}
});

function dragmove(id){
	if(navigator.userAgent.indexOf("MSIE") != -1) {
		new Draggable(id, { zindex: false, revert: true, ghosting: false });			
	}else{
		new Draggable(id, { zindex: false, revert: true, ghosting: true });
	}
}

function dragclick(id){

	if (typeof oFlashChart == "undefined") return false;
	if (typeof oFlashChart.oChartObject == "undefined") return false;
	if (typeof oFlashChart.oChartObject.setDecimals == "undefined") return false;
	if (typeof oFlashChart.oChartObject.setNotation == "undefined") return false;
	if (typeof oFlashChart.oChartObject.addIndicator == "undefined") return false;
	
	var IdNotation = id.split("_");
	var iNotation = IdNotation[0];
		
	if( iNotation != iCurrentNotation ){
		
		iCurrentNotation=iNotation;
		
		if($(id).title.length > 29){
			$('titulo_grafico').innerHTML = htmlspecialchars($(id).title.substring(0,26)+'...','ENT_QUOTES');	
		}else{
			$('titulo_grafico').innerHTML = htmlspecialchars($(id).title,'ENT_QUOTES');
		}	

		try{
			var sRequest = 'oFlashChart.oChartObject.addIndicator("0");';
			setTimeout(sRequest,500);
		}catch(e){
			setTimeout(sRequest,500);
		}
		
		clean_benchmark();
		
		timeRange=rangos_notation(iNotation);
		
		try{
			var sRequest = 'oFlashChart.oChartObject.setDecimals('+decimal_notation(iNotation)+');';
			setTimeout(sRequest,500);
		}catch(e){
			setTimeout(sRequest,500);
		}
		
		$('idChangeIndicator').disabled=true;
		$('idChangeIndicator').options[0].selected=true;
		
		setrange_select(timeRange);

		try{
			var sRequest = 'oFlashChart.oChartObject.setNotation('+iNotation+',"'+timeRange+'");';
			setTimeout(sRequest,500);
		}catch(e){
			setTimeout(sRequest,500);
		}
		/*
		try{
			var sRequest = 'oFlashChart.oChartObject.setRange("'+timeRange+'");';
			setTimeout(sRequest,500);
		}catch(e){
			setTimeout(sRequest,500);
		}
		*/
		
		addChartDatas(iCurrentNotation,$('page').value);
	}
}
function dragdown(id){
	
	Droppables.add('idmsComp', {
		accept: 'dragMe', 
		hoverclass: 'dropallowed',
		onDrop: (function(element){	
			
			var IdNotation = element.id.split("_");
			var iBenchmark = IdNotation[0];	
			
			var bAccepted=true;
			var iBenchPossition=10;
			
			for(i = 0; i < aBenchmark.length; i++){
				if(aBenchmark[i] == iBenchmark ) bAccepted=false;
				if(aBenchmark[i] == 0 && iBenchPossition==10)	iBenchPossition=i;
			}
			if (iBenchPossition==10) bAccepted=false;
			if ((bAccepted) && (iBenchmark!=iCurrentNotation)){
			
				$('lyDragHelp').style.display = 'none';
				$('lyBenchmark').style.display = 'block';
				
				try{				
					var sRequest = 'oFlashChart.oChartObject.setBenchmark('+iBenchmark+','+(iBenchPossition+1)+');';
					setTimeout(sRequest,500);
				}catch(e){
					setTimeout(sRequest,500);
				}
				
				aBenchmark[iBenchPossition]=iBenchmark;
				
				if($(element.id).title.length > 29){
					$('benchmark_'+iBenchPossition).innerHTML = htmlspecialchars($(element.id).title.substring(0,26)+'...','ENT_QUOTES');
				}else{
					$('benchmark_'+iBenchPossition).innerHTML = htmlspecialchars($(element.id).title,'ENT_QUOTES');
				}
				$('imgben'+iBenchPossition).style.display = '';
				$('benchmark_'+iBenchPossition).style.display = '';
				$('benchmark_'+iBenchPossition).title = "Eliminar " + $(element.id).title;
				
				timeRange=aPeriod[4];
				setrange_select(timeRange);
				
				$('idChangeIndicator').disabled=false;
				
				try{				
					var sRequest = 'oFlashChart.oChartObject.setRange("'+timeRange+'");';
					setTimeout(sRequest,500);
				}catch(e){
					setTimeout(sRequest,500);
				}
				//}

			}
			
			
			
		})
	})
}

lhtmlsubcribe = function(){
	
	$$('.dragMe').each(function(element) {
	
		var IdNotation = element.id.split("_");
				
		// validacion Dolar PUSH
		if (IdNotation[0]=='24698976' && Get_Cookie('sAccess')!=null){
			onvMDG.subscribe("format_number2",IdNotation[0]+"_CUR","/prices/quote?VERSION=2&FORMAT=0&ID_QUALITY_PRICE=4&ID_NOTATION="+IdNotation[0]+"&LANG=es","att=PRICE,PERFORMANCE_PCT");
		}else if (IdNotation[0]=='24698976' && Get_Cookie('sAccess')==null){
			onvMDG.subscribe("format_number2",IdNotation[0]+"_CUR","/prices/quote?VERSION=2&FORMAT=0&ID_QUALITY_PRICE=2&ID_NOTATION="+IdNotation[0]+"&LANG=es","att=PRICE,PERFORMANCE_PCT");
		}
		
		if (	
			IdNotation[0]=='1390634' ||
			IdNotation[0]=='17121762' ||
			IdNotation[0]=='17121757' ||
			IdNotation[0]=='994752' ||
			IdNotation[0]=='1363989' ||
			IdNotation[0]=='1305587' ||
			IdNotation[0]=='833622' ||
			IdNotation[0]=='1343320' ||
			IdNotation[0]=='1325508' ||
			IdNotation[0]=='17242033' ||
			IdNotation[0]=='17241965' ||
			IdNotation[0]=='17241936' ||
			IdNotation[0]=='17241930' ||
			IdNotation[0]=='6908061' ||
			IdNotation[0]=='17241934' ||
			IdNotation[0]=='17241848' ||
			IdNotation[0]=='17241851' ||
			IdNotation[0]=='17241852' ||
			IdNotation[0]=='17241855' ||
			IdNotation[0]=='17875039' ||
			IdNotation[0]=='17241862' ||
			IdNotation[0]=='17241876' ||
			IdNotation[0]=='17241878' ||
			IdNotation[0]=='17241887' ||
			IdNotation[0]=='17241888' ||
			IdNotation[0]=='17241892' ||
			IdNotation[0]=='17241895' ||
			IdNotation[0]=='17241899' ||
			IdNotation[0]=='17241914' ||
			IdNotation[0]=='17241927' ||
			IdNotation[0]=='17241939' ||
			IdNotation[0]=='17241940' ||
			IdNotation[0]=='17241947' ||
			IdNotation[0]=='17241955' ||
			IdNotation[0]=='17241964' ||
			IdNotation[0]=='17241988' ||
			IdNotation[0]=='17241985' ||
			IdNotation[0]=='17241990' ||
			IdNotation[0]=='17241993' ||
			IdNotation[0]=='18400532' ||
			IdNotation[0]=='17242001' ||
			IdNotation[0]=='17242002' ||
			IdNotation[0]=='17242004' ||
			IdNotation[0]=='17242014' ||
			IdNotation[0]=='17242026' ||
			IdNotation[0]=='17242027' ||
			IdNotation[0]=='17242040' ||
			IdNotation[0]=='17242044' ||
			IdNotation[0]=='19547388' ||
			IdNotation[0]=='17242050' ||
			IdNotation[0]=='17242057' ||
			IdNotation[0]=='17242067' ||
			IdNotation[0]=='17242033' ||
			IdNotation[0]=='17241965' ||
			IdNotation[0]=='17241936' ||
			IdNotation[0]=='17241928' ||
			IdNotation[0]=='17241932' ||
			IdNotation[0]=='17241933' ||
			IdNotation[0]=='17241844' ||
			IdNotation[0]=='17241845' ||
			IdNotation[0]=='17241849' ||
			IdNotation[0]=='17241854' ||
			IdNotation[0]=='17241861' ||
			IdNotation[0]=='17241884' ||
			IdNotation[0]=='17241883' ||
			IdNotation[0]=='17241890' ||
			IdNotation[0]=='17241903' ||
			IdNotation[0]=='17241904' ||
			IdNotation[0]=='17241907' ||
			IdNotation[0]=='17241908' ||
			IdNotation[0]=='17241910' ||
			IdNotation[0]=='17241920' ||
			IdNotation[0]=='17241926' ||
			IdNotation[0]=='29648242' ||
			IdNotation[0]=='17241948' ||
			IdNotation[0]=='17241950' ||
			IdNotation[0]=='17241953' || 
			IdNotation[0]=='17241959' ||
			IdNotation[0]=='31760748' ||
			IdNotation[0]=='17241969' ||
			IdNotation[0]=='17241972' ||
			IdNotation[0]=='17241976' ||
			IdNotation[0]=='17241977' ||
			IdNotation[0]=='17241982' ||
			IdNotation[0]=='17241987' ||
			IdNotation[0]=='17241992' ||
			IdNotation[0]=='17241995' ||
			IdNotation[0]=='17242005' ||
			IdNotation[0]=='17242006' ||
			IdNotation[0]=='17242007' ||
			IdNotation[0]=='17242009' ||
			IdNotation[0]=='17242015' ||
			IdNotation[0]=='17242021' ||
			IdNotation[0]=='17242022' ||
			IdNotation[0]=='17242032' ||
			IdNotation[0]=='17242013' ||
			IdNotation[0]=='17242053' ||
			IdNotation[0]=='17242068' ||
			IdNotation[0]=='17242074' 
			 
			
			
		){
			onvMDG.subscribe("format_number2",IdNotation[0]+"_CUR","/prices/quote?VERSION=2&FORMAT=0&ID_QUALITY_PRICE=4&ID_NOTATION="+IdNotation[0]+"&LANG=es","att=PRICE,PERFORMANCE_PCT");
		}
				
		if (
			IdNotation[0]=='17242077' ||
			IdNotation[0]=='325080' ||
			IdNotation[0]=='1335248' ||
			IdNotation[0]=='324977' ||
			IdNotation[0]=='324985' ||
			IdNotation[0]=='4359526' ||
			IdNotation[0]=='324913' ||
			IdNotation[0]=='10583965' ||
			IdNotation[0]=='1918069' ||
			IdNotation[0]=='20735'  ||
			IdNotation[0]=='324965'
		){
			onvMDG.subscribe("format_number_markets",IdNotation[0]+"_IDX","/prices/quote?VERSION=2&FORMAT=0&ID_QUALITY_PRICE=4&ID_NOTATION="+IdNotation[0]+"&LANG=es","att=PRICE,PERFORMANCE_PCT,DATETIME_PRICE");
			onvMDG.subscribe("on_line_markets",IdNotation[0]+"_STU","/prices/status?VERSION=2&ID_NOTATION="+IdNotation[0]+"&ID_QUALITY_PRICE=4&LANG=es","att=IS_TRADEABLE,IS_MARKET_OPEN");
		}
		
		if (
			IdNotation[0]=='1022799' ||
			IdNotation[0]=='25881002' ||
			IdNotation[0]=='28134860' ||
			IdNotation[0]=='1326189' ||
			IdNotation[0]=='1288094' ||
			IdNotation[0]=='25815104' ||
			IdNotation[0]=='25881003' ||
			IdNotation[0]=='25815105' ||
			IdNotation[0]=='25881004'
		){
			onvMDG.subscribe("format_number2",IdNotation[0]+"_COM","/prices/quote?VERSION=2&FORMAT=0&ID_QUALITY_PRICE=4&ID_NOTATION="+IdNotation[0]+"&LANG=es","att=PRICE,PERFORMANCE_PCT");
		}
		
		if (
			IdNotation[0]=='23132524' ||
			IdNotation[0]=='23132523' ||
			IdNotation[0]=='17121761' ||
			IdNotation[0]=='17121758' ||
			IdNotation[0]=='17121760' ||
			IdNotation[0]=='25881035' ||
			IdNotation[0]=='25881036' ||
			IdNotation[0]=='25812379' ||
			IdNotation[0]=='25812380' ||
			IdNotation[0]=='25812381'
		){
			onvMDG.subscribe("format_number2",IdNotation[0]+"_TAX","/prices/quote?VERSION=2&FORMAT=0&ID_QUALITY_PRICE=4&ID_NOTATION="+IdNotation[0]+"&LANG=es","att=PRICE,PERFORMANCE");
		}
		
		Event.observe(element, 'mouseover', function(event){
			dragmove(element.id);
		});
			
		Event.observe(element, 'click', function(event){
			if (typeof oFlashChart != "undefined"){
				dragclick(element.id);
			}
		});
			
		Event.observe(element, 'mousedown', function(event){
			dragdown(element.id);
		});
	
    });
};

var onvStatus=new Object();
onvStatus.Si=function(){
	try{
		if(STATUS_UNDEFINED==undefined||STATUS_UNDEFINED==null)STATUS_UNDEFINED="";
		if(STATUS_ERROR==undefined||STATUS_ERROR==null)STATUS_ERROR="";
		if(STATUS_INIT==undefined||STATUS_INIT==null)STATUS_INIT="";
		if(STATUS_OK==undefined||STATUS_OK==null)STATUS_OK="";
		if(STATUS_LOST_CONNECTION==undefined||STATUS_LOST_CONNECTION==null)STATUS_LOST_CONNECTION="";
	}catch(e){
	}
};
onvStatus.setState=function(Dn){
	var u=document.getElementById("debug");
	if(u!=undefined&&u!=null){
		u.innerHTML=Dn;
	}
};
onvStatus.statusCallback=function(event){
	//var u=document.getElementById("debug");
	//u.innerHTML=event;
	switch(event){
		case onvMDG.STATUS_INIT:
			//onvStatus.setState('STATUS_INIT');
			//closeStatusLHTML();
			break;
		case onvMDG.STATUS_OK:
			//onvStatus.setState('STATUS_OK');
			//closeStatusLHTML();
			break;
		case onvMDG.STATUS_SLEEPING:
			//onvStatus.setState('STATUS_SLEEPING');
			showAlertMessage('El flujo de datos est&aacute; temporalmente inactivo.',9999);
			break;
		case onvMDG.STATUS_RECONNECTING:
			//onvStatus.setState('STATUS_RECONECTING');
			showAlertMessage('Reconectando...');
			break;
		case onvMDG.STATUS_LOST_CONNECTION:
			//onvStatus.setState('STATUS_LOST_CONNECTION');
			showAlertMessage('La conexi&oacute;n se ha perdido. Por favor actualice la p&aacute;gina o presione F5',9999);
			break;
		case onvMDG.STATUS_SESSION_MDG_ERROR:
			//onvStatus.setState('STATUS_ERROR');
			showAlertMessage('No se ha podido establecer la conexi&oacute;n. Por favor actualice la p&aacute;gina o presione F5.',9999);
			break;
		case onvMDG.STATUS_BYE:
			//onvStatus.setState('STATUS_BYE');
			showAlertMessage('Se ha perdido la conexi&oacute;n.<br>Por favor actualice la p&aacute;gina o presione F5.',9999,2);
			//closeStatusLHTML();
			break;
		case onvMDG.STATUS_UNDEFINED:
			//onvStatus.setState('STATUS_UNDEFINED');
			//closeStatusLHTML();
			break;
	}
};
onvStatus.Si();
onvMDG.subscribeStatus("onvStatus.statusCallback");
var CONSTITUENT = new Array(); CONSTITUENT[0] = new Array(); CONSTITUENT[1] = new Array(); CONSTITUENT[2] = new Array(); CONSTITUENT[3] = new Array();CONSTITUENT[0][0] = "17242014";CONSTITUENT[1][0] = "A.F.P PROVIDA COM NPV";CONSTITUENT[2][0] = "PROVIDA";CONSTITUENT[3][0] = "179905";CONSTITUENT[0][1] = "68728";CONSTITUENT[1][1] = "A.F.P PROVIDA SPON ADR REP 15 COM NPV";CONSTITUENT[2][1] = "PVD";CONSTITUENT[3][1] = "207454";CONSTITUENT[0][2] = "36746";CONSTITUENT[1][2] = "ABASTECEDORA METAL COM NPV";CONSTITUENT[2][2] = "SABIMET";CONSTITUENT[3][2] = "179922";CONSTITUENT[0][3] = "17241955";CONSTITUENT[1][3] = "AES GENER SA NPV";CONSTITUENT[2][3] = "GENER";CONSTITUENT[3][3] = "179841";CONSTITUENT[0][4] = "22599639";CONSTITUENT[1][4] = "AFP CAPITAL SA NPV";CONSTITUENT[2][4] = "SANTAMARIA";CONSTITUENT[3][4] = "179724";CONSTITUENT[0][5] = "17241908";CONSTITUENT[1][5] = "AFP CUPRUM SA NPV";CONSTITUENT[2][5] = "CUPRUM";CONSTITUENT[3][5] = "179726";CONSTITUENT[0][6] = "17241959";CONSTITUENT[1][6] = "AFP HABITAT NPV";CONSTITUENT[2][6] = "HABITAT";CONSTITUENT[3][6] = "179723";CONSTITUENT[0][7] = "17241929";CONSTITUENT[1][7] = "AGENCIAS UNIVERSALES SA NPV";CONSTITUENT[2][7] = "AGUNSA";CONSTITUENT[3][7] = "4847931";CONSTITUENT[0][8] = "17241931";CONSTITUENT[1][8] = "AGRICOLA NACIONAL NPV";CONSTITUENT[2][8] = "ANASAC";CONSTITUENT[3][8] = "179729";CONSTITUENT[0][9] = "17242048";CONSTITUENT[1][9] = "AGRICOLA ROSA SOFRUCO SA NPV";CONSTITUENT[2][9] = "SOFRUCO";CONSTITUENT[3][9] = "179923";CONSTITUENT[0][10] = "17241928";CONSTITUENT[1][10] = "AGUAS ANDINAS S.A. COM NPV SERA";CONSTITUENT[2][10] = "AGUAS-A";CONSTITUENT[3][10] = "11414430";CONSTITUENT[0][11] = "8317843";CONSTITUENT[1][11] = "AGUAS ANDINAS S.A. COM NPV SERB";CONSTITUENT[2][11] = "AGUAS-B";CONSTITUENT[3][11] = "10298684";CONSTITUENT[0][12] = "17241930";CONSTITUENT[1][12] = "ALMENDRAL SA COM NPV";CONSTITUENT[2][12] = "ALMENDRAL";CONSTITUENT[3][12] = "4983346";CONSTITUENT[0][13] = "8317848";CONSTITUENT[1][13] = "ANDACOR NPV";CONSTITUENT[2][13] = "ANDACOR";CONSTITUENT[3][13] = "11414431";CONSTITUENT[0][14] = "17241934";CONSTITUENT[1][14] = "ANTARCHILE SA NPV SERA";CONSTITUENT[2][14] = "ANTARCHILE";CONSTITUENT[3][14] = "179731";CONSTITUENT[0][15] = "8317853";CONSTITUENT[1][15] = "AUTOMOVILISMO Y TURISMO NPV";CONSTITUENT[2][15] = "ATSA";CONSTITUENT[3][15] = "9005909";CONSTITUENT[0][16] = "17241936";CONSTITUENT[1][16] = "AXXION SA COM NPV";CONSTITUENT[2][16] = "AXXION";CONSTITUENT[3][16] = "16446849";CONSTITUENT[0][17] = "24396811";CONSTITUENT[1][17] = "AZUL AZUL S.A. COM NPV";CONSTITUENT[2][17] = "AZUL AZUL";CONSTITUENT[3][17] = "21507683";CONSTITUENT[0][18] = "22474179";CONSTITUENT[1][18] = "BANCHILE ADM GENERAL DE FONDOS SA FDO DE INV BANCHILE INM I";CONSTITUENT[2][18] = "BANCHILE ADM GENERAL DE FONDOS SA FDO DE INV BANCHILE INM I";CONSTITUENT[3][18] = "15765190";CONSTITUENT[0][19] = "17241848";CONSTITUENT[1][19] = "BANCO DE CREDITO E INVERSIONES NPV";CONSTITUENT[2][19] = "BCI";CONSTITUENT[3][19] = "179798";CONSTITUENT[0][20] = "1550376";CONSTITUENT[1][20] = "BANCO SANTANDER-CHILE ADR-EACH REP 1039 COM NPV";CONSTITUENT[2][20] = "SAN";CONSTITUENT[3][20] = "90681";CONSTITUENT[0][21] = "17241851";CONSTITUENT[1][21] = "BANCO SANTANDER-CHILE COM NPV";CONSTITUENT[2][21] = "BSANTANDER";CONSTITUENT[3][21] = "179738";CONSTITUENT[0][22] = "17241844";CONSTITUENT[1][22] = "BANMEDICA SA NPV";CONSTITUENT[2][22] = "BANMEDICA";CONSTITUENT[3][22] = "179740";CONSTITUENT[0][23] = "17241845";CONSTITUENT[1][23] = "BANVIDA SA COM NPV";CONSTITUENT[2][23] = "BANVIDA";CONSTITUENT[3][23] = "179741";CONSTITUENT[0][24] = "17241847";CONSTITUENT[1][24] = "BCO BILBAO VIZCAYA ARGENTARIA CHILE COM NPV";CONSTITUENT[2][24] = "BBVACL";CONSTITUENT[3][24] = "9136760";CONSTITUENT[0][25] = "17241878";CONSTITUENT[1][25] = "BCO DE CHILE COM NPV";CONSTITUENT[2][25] = "CHILE";CONSTITUENT[3][25] = "179735";CONSTITUENT[0][26] = "4898556";CONSTITUENT[1][26] = "BCO DE CHILE SPON ADR REP 600 ORD NPV";CONSTITUENT[2][26] = "BCH";CONSTITUENT[3][26] = "5869796";CONSTITUENT[0][27] = "17241849";CONSTITUENT[1][27] = "BESALCO SA NPV";CONSTITUENT[2][27] = "BESALCO";CONSTITUENT[3][27] = "179743";CONSTITUENT[0][28] = "17241850";CONSTITUENT[1][28] = "BICECORP SA COM NPV";CONSTITUENT[2][28] = "BICECORP";CONSTITUENT[3][28] = "179744";CONSTITUENT[0][29] = "17241890";CONSTITUENT[1][29] = "BLANCO Y NEGRO SA COM NPV SERIES B";CONSTITUENT[2][29] = "COLO COLO";CONSTITUENT[3][29] = "12923258";CONSTITUENT[0][30] = "17241891";CONSTITUENT[1][30] = "BOLSA DE COMERCIO Y DE VALORES NPV";CONSTITUENT[2][30] = "COMERCIO";CONSTITUENT[3][30] = "179746";CONSTITUENT[0][31] = "17242066";CONSTITUENT[1][31] = "BOLSA DE CORREDORES Y VALORES NPV";CONSTITUENT[2][31] = "VALORES";CONSTITUENT[3][31] = "9008243";CONSTITUENT[0][32] = "17241855";CONSTITUENT[1][32] = "CAP SA NPV";CONSTITUENT[2][32] = "CAP";CONSTITUENT[3][32] = "179764";CONSTITUENT[0][33] = "17241856";CONSTITUENT[1][33] = "CAPITALES SA COM NPV";CONSTITUENT[2][33] = "CAPITALES";CONSTITUENT[3][33] = "15030847";CONSTITUENT[0][34] = "36442";CONSTITUENT[1][34] = "CARBONIFERA VICTORIA DE LEBU NPV";CONSTITUENT[2][34] = "CARVILE";CONSTITUENT[3][34] = "179748";CONSTITUENT[0][35] = "27214570";CONSTITUENT[1][35] = "CELFIN DEUDA LATINOAMERICANA FDO D NPV";CONSTITUENT[2][35] = "CFICELDLA";CONSTITUENT[3][35] = "19672390";CONSTITUENT[0][36] = "17241860";CONSTITUENT[1][36] = "CEM SA NPV";CONSTITUENT[2][36] = "CEM";CONSTITUENT[3][36] = "179848";CONSTITUENT[0][37] = "17242011";CONSTITUENT[1][37] = "CEMENTO POLPALCO SA NPV";CONSTITUENT[2][37] = "POLPAICO";CONSTITUENT[3][37] = "179753";CONSTITUENT[0][38] = "17241861";CONSTITUENT[1][38] = "CEMENTOS BIO-BIO COM NPV";CONSTITUENT[2][38] = "CEMENTOS";CONSTITUENT[3][38] = "179755";CONSTITUENT[0][39] = "20425300";CONSTITUENT[1][39] = "CENCOSUD SA ADR EA REP 15 ORD NPV 144A";CONSTITUENT[2][39] = "CSUDY";CONSTITUENT[3][39] = "10948137";CONSTITUENT[0][40] = "11690722";CONSTITUENT[1][40] = "CENCOSUD SA ADR EA REP 15 ORD NPV REGS";CONSTITUENT[2][40] = "CSUDF";CONSTITUENT[3][40] = "11143676";CONSTITUENT[0][41] = "17241862";CONSTITUENT[1][41] = "CENCOSUD SA COM NPV";CONSTITUENT[2][41] = "CENCOSUD";CONSTITUENT[3][41] = "11215543";CONSTITUENT[0][42] = "17241897";CONSTITUENT[1][42] = "CERAMICAS CORDILLERA SA NPV";CONSTITUENT[2][42] = "CORDILLERA";CONSTITUENT[3][42] = "179756";CONSTITUENT[0][43] = "17241877";CONSTITUENT[1][43] = "CGE DISTRIBUCION SA COM NPV";CONSTITUENT[2][43] = "CGEDISTRO";CONSTITUENT[3][43] = "13523409";CONSTITUENT[0][44] = "17241880";CONSTITUENT[1][44] = "CHILECTRA S.A. COM NPV";CONSTITUENT[2][44] = "CHILECTRA";CONSTITUENT[3][44] = "16446841";CONSTITUENT[0][45] = "36457";CONSTITUENT[1][45] = "CHILECTRA SA ORD";CONSTITUENT[2][45] = "CHILECTRA SA ORD";CONSTITUENT[3][45] = "179758";CONSTITUENT[0][46] = "17241951";CONSTITUENT[1][46] = "CHILENA FOSFOROS SA COM NPV";CONSTITUENT[2][46] = "FOSFOROS";CONSTITUENT[3][46] = "179760";CONSTITUENT[0][47] = "17241859";CONSTITUENT[1][47] = "CHILETABACOS SA NPV";CONSTITUENT[2][47] = "CCT";CONSTITUENT[3][47] = "179826";CONSTITUENT[0][48] = "17241975";CONSTITUENT[1][48] = "CIA CHILN DE NAVEGACION INTEROCEAN NPV";CONSTITUENT[2][48] = "INTEROCEAN";CONSTITUENT[3][48] = "1478204";CONSTITUENT[0][49] = "17241917";CONSTITUENT[1][49] = "CIA ELECTRO METALURGICA NPV";CONSTITUENT[2][49] = "ELECMETAL";CONSTITUENT[3][49] = "179769";CONSTITUENT[0][50] = "17242013";CONSTITUENT[1][50] = "CIA SEGUROS VIDA SECURITY PREVISION NPV";CONSTITUENT[2][50] = "PREVISION";CONSTITUENT[3][50] = "179784";CONSTITUENT[0][51] = "17241884";CONSTITUENT[1][51] = "CINTAC SA NPV";CONSTITUENT[2][51] = "CINTAC";CONSTITUENT[3][51] = "179770";CONSTITUENT[0][52] = "17241987";CONSTITUENT[1][52] = "CLINICA LAS CONDES COM NPV";CONSTITUENT[2][52] = "LAS CONDES";CONSTITUENT[3][52] = "179771";CONSTITUENT[0][53] = "17242010";CONSTITUENT[1][53] = "CLUB DE POLO Y EQUITACION SAN CRIS NPV";CONSTITUENT[2][53] = "POLO";CONSTITUENT[3][53] = "179772";CONSTITUENT[0][54] = "17241960";CONSTITUENT[1][54] = "CLUB HIPICO DE SANTIAGO SA NPV";CONSTITUENT[2][54] = "HIPICO";CONSTITUENT[3][54] = "179773";CONSTITUENT[0][55] = "17241919";CONSTITUENT[1][55] = "COCA-COLA EMBONOR SA COM SERANPV";CONSTITUENT[2][55] = "EMBONOR-A";CONSTITUENT[3][55] = "232064";CONSTITUENT[0][56] = "17241920";CONSTITUENT[1][56] = "COCA-COLA EMBONOR SA COM SERBNPV";CONSTITUENT[2][56] = "EMBONOR-B";CONSTITUENT[3][56] = "232065";CONSTITUENT[0][57] = "17241888";CONSTITUENT[1][57] = "COLBUN S.A. NPV";CONSTITUENT[2][57] = "COLBUN";CONSTITUENT[3][57] = "179808";CONSTITUENT[0][58] = "17241866";CONSTITUENT[1][58] = "COLONO FDO DE INVERSION MOBILIARIA CUOTAS";CONSTITUENT[2][58] = "CFIMCOLONO";CONSTITUENT[3][58] = "15739765";CONSTITUENT[0][59] = "31670132";CONSTITUENT[1][59] = "COMERCIAL E INDUSTRIAL VINA SA COM NPV";CONSTITUENT[2][59] = "COMVINA";CONSTITUENT[3][59] = "11417675";CONSTITUENT[0][60] = "17241896";CONSTITUENT[1][60] = "COMPANIA AGROPECUARIA COPEVAL SA COM NPV";CONSTITUENT[2][60] = "COPEVAL";CONSTITUENT[3][60] = "11414420";CONSTITUENT[0][61] = "17875039";CONSTITUENT[1][61] = "COMPANIA CERVECERIAS UNIDAS SA NPV";CONSTITUENT[2][61] = "CCU";CONSTITUENT[3][61] = "179757";CONSTITUENT[0][62] = "258410";CONSTITUENT[1][62] = "COMPANIA CERVECERIAS UNIDAS SA SPON ADR(CNV INTO 5 COM SHS";CONSTITUENT[2][62] = "CCU";CONSTITUENT[3][62] = "88392";CONSTITUENT[0][63] = "17241876";CONSTITUENT[1][63] = "COMPANIA GENERAL DE ELECTRICIDAD SA NPV";CONSTITUENT[2][63] = "CGE";CONSTITUENT[3][63] = "179786";CONSTITUENT[0][64] = "17242067";CONSTITUENT[1][64] = "COMPANIA SUD AMERICANA DE VAPORES NPV";CONSTITUENT[2][64] = "VAPORES";CONSTITUENT[3][64] = "179794";CONSTITUENT[0][65] = "17241883";CONSTITUENT[1][65] = "COMPANIAS CIC SA COM NPV";CONSTITUENT[2][65] = "CIC";CONSTITUENT[3][65] = "179793";CONSTITUENT[0][66] = "17241893";CONSTITUENT[1][66] = "CONOSUR";CONSTITUENT[2][66] = "CONOSUR";CONSTITUENT[3][66] = "179827";CONSTITUENT[0][67] = "17241898";CONSTITUENT[1][67] = "CONTENEDORES REDES YENVASES NPV";CONSTITUENT[2][67] = "CORESA";CONSTITUENT[3][67] = "179797";CONSTITUENT[0][68] = "8317927";CONSTITUENT[1][68] = "COPEFRUT SA NPV";CONSTITUENT[2][68] = "COPEFRUT";CONSTITUENT[3][68] = "1450385";CONSTITUENT[0][69] = "10740928";CONSTITUENT[1][69] = "CORPBANCA ADR-EACH REPR 5000 COM REG";CONSTITUENT[2][69] = "BCA";CONSTITUENT[3][69] = "9241082";CONSTITUENT[0][70] = "17241899";CONSTITUENT[1][70] = "CORPBANCA COM NPV";CONSTITUENT[2][70] = "CORPBANCA";CONSTITUENT[3][70] = "11414422";CONSTITUENT[0][71] = "32314256";CONSTITUENT[1][71] = "CORPBANCA NEW NPV (S/R 18/02/2010)";CONSTITUENT[2][71] = "CORPBA-OSA";CONSTITUENT[3][71] = "26994343";CONSTITUENT[0][72] = "28140691";CONSTITUENT[1][72] = "COSTA VERDE AERONA NPV";CONSTITUENT[2][72] = "CVA";CONSTITUENT[3][72] = "1472268";CONSTITUENT[0][73] = "17241903";CONSTITUENT[1][73] = "CRISTALERIAS DE CHILE SA NPV";CONSTITUENT[2][73] = "CRISTALES";CONSTITUENT[3][73] = "179799";CONSTITUENT[0][74] = "17241907";CONSTITUENT[1][74] = "CTI CIA TECNO INDUSTRIAL SA COM NPV";CONSTITUENT[2][74] = "CTI";CONSTITUENT[3][74] = "179940";CONSTITUENT[0][75] = "17241956";CONSTITUENT[1][75] = "DEPORTES CLUB DE GOLF SANTIAGO SA NPV";CONSTITUENT[2][75] = "GOLF";CONSTITUENT[3][75] = "9006640";CONSTITUENT[0][76] = "17241911";CONSTITUENT[1][76] = "DETROIT CHILE SA COM NPV";CONSTITUENT[2][76] = "DETROIT";CONSTITUENT[3][76] = "179804";CONSTITUENT[0][77] = "260756";CONSTITUENT[1][77] = "DISTRIBUCION Y SERV.ADR15";CONSTITUENT[2][77] = "DYSVY";CONSTITUENT[3][77] = "91287";CONSTITUENT[0][78] = "17241910";CONSTITUENT[1][78] = "DISTRIBUCION Y SERVICO D & S SA COM NPV (LATIBEX)";CONSTITUENT[2][78] = "D&S";CONSTITUENT[3][78] = "11597996";CONSTITUENT[0][79] = "17241912";CONSTITUENT[1][79] = "DUNCAN FOX NPV";CONSTITUENT[2][79] = "DUNCANFOX";CONSTITUENT[3][79] = "179806";CONSTITUENT[0][80] = "31540562";CONSTITUENT[1][80] = "DUOYUAN PRINTING INC COM USD0.001";CONSTITUENT[2][80] = "DYP";CONSTITUENT[3][80] = "26625490";CONSTITUENT[0][81] = "17241913";CONSTITUENT[1][81] = "ELECTRICA DE MAGALLANES SA NPV";CONSTITUENT[2][81] = "EDELMAG";CONSTITUENT[3][81] = "1295846";CONSTITUENT[0][82] = "17241989";CONSTITUENT[1][82] = "ELECTRICA DEL LITORAL SA NPV";CONSTITUENT[2][82] = "LITORAL";CONSTITUENT[3][82] = "179872";CONSTITUENT[0][83] = "17242007";CONSTITUENT[1][83] = "ELECTRICA PEHUENCHE SA NPV";CONSTITUENT[2][83] = "PEHUENCHE";CONSTITUENT[3][83] = "179767";CONSTITUENT[0][84] = "17242009";CONSTITUENT[1][84] = "ELECTRICAL PILMAIQUEN SA NPV";CONSTITUENT[2][84] = "PILMAIQUEN";CONSTITUENT[3][84] = "179818";CONSTITUENT[0][85] = "17241984";CONSTITUENT[1][85] = "EMBOT COCA COLA POLAR SA NPV";CONSTITUENT[2][85] = "KOPOLAR";CONSTITUENT[3][85] = "179809";CONSTITUENT[0][86] = "17241932";CONSTITUENT[1][86] = "EMBOTELLADORA ANDINA SA PRFANPV";CONSTITUENT[2][86] = "ANDINA-A";CONSTITUENT[3][86] = "1338832";CONSTITUENT[0][87] = "6908061";CONSTITUENT[1][87] = "EMBOTELLADORA ANDINA SA PRFBNPV";CONSTITUENT[2][87] = "ANDINA-B";CONSTITUENT[3][87] = "1338513";CONSTITUENT[0][88] = "73935";CONSTITUENT[1][88] = "EMBOTELLADORA ANDINA SA SPN ADR-REP 6 SER A PRF NPV";CONSTITUENT[2][88] = "AKO.A";CONSTITUENT[3][88] = "209306";CONSTITUENT[0][89] = "262089";CONSTITUENT[1][89] = "EMBOTELLADORA ANDINA SA SPN ADR-REP 6 SER B PRF NPV";CONSTITUENT[2][89] = "AKO.B";CONSTITUENT[3][89] = "90880";CONSTITUENT[0][90] = "17241943";CONSTITUENT[1][90] = "EMPRESA DE SERVICIOS SANITARIOS DEL BIO-BIO S.A.";CONSTITUENT[2][90] = "ESSBIO-A";CONSTITUENT[3][90] = "16446851";CONSTITUENT[0][91] = "17242008";CONSTITUENT[1][91] = "EMPRESA EL PENON SA NPV";CONSTITUENT[2][91] = "PENON";CONSTITUENT[3][91] = "179892";CONSTITUENT[0][92] = "17241916";CONSTITUENT[1][92] = "EMPRESA ELECTRICA DE ANTOFAGASTA SA NPV";CONSTITUENT[2][92] = "ELECDA";CONSTITUENT[3][92] = "179812";CONSTITUENT[0][93] = "17241922";CONSTITUENT[1][93] = "EMPRESA ELECTRICA DE ARICA SA NPV";CONSTITUENT[2][93] = "EMELARI";CONSTITUENT[3][93] = "179814";CONSTITUENT[0][94] = "17241918";CONSTITUENT[1][94] = "EMPRESA ELECTRICA DE IQUIQUE SA NPV";CONSTITUENT[2][94] = "ELIQSA";CONSTITUENT[3][94] = "179819";CONSTITUENT[0][95] = "17241914";CONSTITUENT[1][95] = "EMPRESA ELECTRICADEL NORTE GRANDE NPV";CONSTITUENT[2][95] = "EDELNOR";CONSTITUENT[3][95] = "179815";CONSTITUENT[0][96] = "17241921";CONSTITUENT[1][96] = "EMPRESA EMEL SA NPV";CONSTITUENT[2][96] = "EMEL";CONSTITUENT[3][96] = "179816";CONSTITUENT[0][97] = "17241925";CONSTITUENT[1][97] = "EMPRESA NACIONAL DE CARBON SA COM NPV";CONSTITUENT[2][97] = "ENACAR";CONSTITUENT[3][97] = "1451283";CONSTITUENT[0][98] = "262181";CONSTITUENT[1][98] = "EMPRESA NACIONAL DE ELECTRICIDAD SA ADS REPR 30 COM NPV";CONSTITUENT[2][98] = "EOC";CONSTITUENT[3][98] = "89599";CONSTITUENT[0][99] = "17241927";CONSTITUENT[1][99] = "EMPRESA NACIONAL DE ELECTRICIDAD SA NPV";CONSTITUENT[2][99] = "ENDESA";CONSTITUENT[3][99] = "179821";CONSTITUENT[0][100] = "17241941";CONSTITUENT[1][100] = "EMPRESA PESQUERA EPERVA SA COM NPV";CONSTITUENT[2][100] = "EPERVA";CONSTITUENT[3][100] = "179830";CONSTITUENT[0][101] = "17241963";CONSTITUENT[1][101] = "EMPRESAS CABO DE HORNOS SA COM NPV";CONSTITUENT[2][101] = "HORNOS";CONSTITUENT[3][101] = "179945";CONSTITUENT[0][102] = "17241887";CONSTITUENT[1][102] = "EMPRESAS CMPC NPV";CONSTITUENT[2][102] = "CMPC";CONSTITUENT[3][102] = "14936570";CONSTITUENT[0][103] = "17241895";CONSTITUENT[1][103] = "EMPRESAS COPEC SA NPV";CONSTITUENT[2][103] = "COPEC";CONSTITUENT[3][103] = "179897";CONSTITUENT[0][104] = "31760748";CONSTITUENT[1][104] = "EMPRESAS HITES S A COM NPV";CONSTITUENT[2][104] = "HITES";CONSTITUENT[3][104] = "26747480";CONSTITUENT[0][105] = "17241965";CONSTITUENT[1][105] = "EMPRESAS IANSA SA NPV";CONSTITUENT[2][105] = "IANSA";CONSTITUENT[3][105] = "179845";CONSTITUENT[0][106] = "17241988";CONSTITUENT[1][106] = "EMPRESAS LA POLAR S.A. COM NPV";CONSTITUENT[2][106] = "LA POLAR";CONSTITUENT[3][106] = "11417685";CONSTITUENT[0][107] = "17242000";CONSTITUENT[1][107] = "EMPRESAS NAVIERA SA NPV";CONSTITUENT[2][107] = "NAVIERA";CONSTITUENT[3][107] = "9258309";CONSTITUENT[0][108] = "17242059";CONSTITUENT[1][108] = "EMPRESAS TATTERSALL SA NPV";CONSTITUENT[2][108] = "TATTERSALL";CONSTITUENT[3][108] = "1408455";CONSTITUENT[0][109] = "17241923";CONSTITUENT[1][109] = "EMPRESSA ELECTRICA ATACAMA SA NPV";CONSTITUENT[2][109] = "EMELAT";CONSTITUENT[3][109] = "179810";CONSTITUENT[0][110] = "17241926";CONSTITUENT[1][110] = "ENAEX SA NPV";CONSTITUENT[2][110] = "ENAEX";CONSTITUENT[3][110] = "179822";CONSTITUENT[0][111] = "17241858";CONSTITUENT[1][111] = "ENERGIA DE CASABLANCA SA COM NPV";CONSTITUENT[2][111] = "CASABLANCA";CONSTITUENT[3][111] = "6356040";CONSTITUENT[0][112] = "17241939";CONSTITUENT[1][112] = "ENERSIS S.A NPV";CONSTITUENT[2][112] = "ENERSIS";CONSTITUENT[3][112] = "179828";CONSTITUENT[0][113] = "262241";CONSTITUENT[1][113] = "ENERSIS S.A SPON ADR REP 50 COM SHS NPV";CONSTITUENT[2][113] = "ENI";CONSTITUENT[3][113] = "88766";CONSTITUENT[0][114] = "29648242";CONSTITUENT[1][114] = "ENJOY";CONSTITUENT[2][114] = "ENJOY";CONSTITUENT[3][114] = "25094419";CONSTITUENT[0][115] = "17241940";CONSTITUENT[1][115] = "ENTEL TELECOMUNICATION(EMPRESA NAC) NPV";CONSTITUENT[2][115] = "ENTEL";CONSTITUENT[3][115] = "179823";CONSTITUENT[0][116] = "17241915";CONSTITUENT[1][116] = "ENVASES DEL PACIFICO SA NPV";CONSTITUENT[2][116] = "EDELPA";CONSTITUENT[3][116] = "179829";CONSTITUENT[0][117] = "17241944";CONSTITUENT[1][117] = "ESSBIO SA CLASSBNPV";CONSTITUENT[2][117] = "ESSBIO-B";CONSTITUENT[3][117] = "16446852";CONSTITUENT[0][118] = "17241946";CONSTITUENT[1][118] = "ESVAL S.A. COM SERANPV";CONSTITUENT[2][118] = "ESVAL-A";CONSTITUENT[3][118] = "179817";CONSTITUENT[0][119] = "21608081";CONSTITUENT[1][119] = "ESVAL S.A. COM SERCNPV";CONSTITUENT[2][119] = "ESVAL-C";CONSTITUENT[3][119] = "19519646";CONSTITUENT[0][120] = "17241948";CONSTITUENT[1][120] = "FARMACIAS AHUMADA NPV";CONSTITUENT[2][120] = "FASA";CONSTITUENT[3][120] = "179833";CONSTITUENT[0][121] = "17241882";CONSTITUENT[1][121] = "FORESTAL CHOLGUAN S.A NPV";CONSTITUENT[2][121] = "CHOLGUAN";CONSTITUENT[3][121] = "179838";CONSTITUENT[0][122] = "17241950";CONSTITUENT[1][122] = "FORUS S.A. COM NPV";CONSTITUENT[2][122] = "FORUS";CONSTITUENT[3][122] = "16446855";CONSTITUENT[0][123] = "17242069";CONSTITUENT[1][123] = "FRUTICOLA VICONTO SA NPV";CONSTITUENT[2][123] = "VICONTO";CONSTITUENT[3][123] = "1451296";CONSTITUENT[0][124] = "17241953";CONSTITUENT[1][124] = "GASCO";CONSTITUENT[2][124] = "GASCO";CONSTITUENT[3][124] = "179796";CONSTITUENT[0][125] = "17241957";CONSTITUENT[1][125] = "GRANADILLA COUNTRY CLUB SA NPV";CONSTITUENT[2][125] = "GRANADILLA";CONSTITUENT[3][125] = "179842";CONSTITUENT[0][126] = "17242035";CONSTITUENT[1][126] = "GROUP SECURITY SA COM NPV";CONSTITUENT[2][126] = "SECURITY";CONSTITUENT[3][126] = "14362971";CONSTITUENT[0][127] = "21778580";CONSTITUENT[1][127] = "HIPERMARC S.A. COM NPV";CONSTITUENT[2][127] = "HIPERMARC";CONSTITUENT[3][127] = "9007977";CONSTITUENT[0][128] = "17241970";CONSTITUENT[1][128] = "INDIVER S.A. NPV";CONSTITUENT[2][128] = "INDIVER";CONSTITUENT[3][128] = "179844";CONSTITUENT[0][129] = "17242070";CONSTITUENT[1][129] = "INDUSTRIAL EL VOLCAN SA NPV";CONSTITUENT[2][129] = "VOLCAN";CONSTITUENT[3][129] = "179787";CONSTITUENT[0][130] = "17241857";CONSTITUENT[1][130] = "INDUSTRIAS ALIMENTICIAS CAROZZI SA NPV";CONSTITUENT[2][130] = "CAROZZI";CONSTITUENT[3][130] = "179825";CONSTITUENT[0][131] = "17241968";CONSTITUENT[1][131] = "INDUSTRIAS DE ALUMINIO INDALUM NPV";CONSTITUENT[2][131] = "INDALUM";CONSTITUENT[3][131] = "179847";CONSTITUENT[0][132] = "17241972";CONSTITUENT[1][132] = "INDUSTRIAS FORESTALES SA COM NPV";CONSTITUENT[2][132] = "INFORSA";CONSTITUENT[3][132] = "179849";CONSTITUENT[0][133] = "5007314";CONSTITUENT[1][133] = "INDUSTRIAS PRODUCTS ALIMENTICIOS COM NPV";CONSTITUENT[2][133] = "IPAL";CONSTITUENT[3][133] = "1491391";CONSTITUENT[0][134] = "17241971";CONSTITUENT[1][134] = "INFODEMA SA COM NPV";CONSTITUENT[2][134] = "INFODEMA";CONSTITUENT[3][134] = "179850";CONSTITUENT[0][135] = "17241945";CONSTITUENT[1][135] = "INMOBILIARIA CNTRL DE ESTAC AGUSTAS NPV";CONSTITUENT[2][135] = "ESTACIONAM";CONSTITUENT[3][135] = "179851";CONSTITUENT[0][136] = "8317935";CONSTITUENT[1][136] = "INMOBILIARIA CRAIGHOUSE SA NPV";CONSTITUENT[2][136] = "CRAIGHOUSE";CONSTITUENT[3][136] = "232077";CONSTITUENT[0][137] = "17241981";CONSTITUENT[1][137] = "INMOBILIARIA SAN PATRICIO SA COM NPV";CONSTITUENT[2][137] = "ISANPA";CONSTITUENT[3][137] = "11417688";CONSTITUENT[0][138] = "17242054";CONSTITUENT[1][138] = "INMOBILIARIA SPORT FRANCALS NPV";CONSTITUENT[2][138] = "SPORTFRAN";CONSTITUENT[3][138] = "9008021";CONSTITUENT[0][139] = "8317973";CONSTITUENT[1][139] = "INMOBILIARIA VINA DEL MAR SA NPV";CONSTITUENT[2][139] = "INMOBVINA";CONSTITUENT[3][139] = "9006797";CONSTITUENT[0][140] = "17241969";CONSTITUENT[1][140] = "INSTITUTO DE DIAGNOSTICO SA COM NPV";CONSTITUENT[2][140] = "INDISA";CONSTITUENT[3][140] = "13752358";CONSTITUENT[0][141] = "17241974";CONSTITUENT[1][141] = "INTASA S.A.";CONSTITUENT[2][141] = "INTASA";CONSTITUENT[3][141] = "16446861";CONSTITUENT[0][142] = "17241976";CONSTITUENT[1][142] = "INVERCAP SA NPV";CONSTITUENT[2][142] = "INVERCAP";CONSTITUENT[3][142] = "179856";CONSTITUENT[0][143] = "18686791";CONSTITUENT[1][143] = "INVERSIONES AGUAS METROPOLITANAS ADR EA REP 20 ORD 144A";CONSTITUENT[2][143] = "INVERSIONES AGUAS METROPOLITANAS ADR EA REP 20 ORD 144A";CONSTITUENT[3][143] = "13194747";CONSTITUENT[0][144] = "19114083";CONSTITUENT[1][144] = "INVERSIONES AGUAS METROPOLITANAS ADR EA REP 20 ORD REGS";CONSTITUENT[2][144] = "IAMTY";CONSTITUENT[3][144] = "13523886";CONSTITUENT[0][145] = "17241964";CONSTITUENT[1][145] = "INVERSIONES AGUAS METROPOLITANAS COM NPV";CONSTITUENT[2][145] = "IAM";CONSTITUENT[3][145] = "12908534";CONSTITUENT[0][146] = "17241854";CONSTITUENT[1][146] = "INVERSIONES CAMPOS CHILENOS SA NPV";CONSTITUENT[2][146] = "CAMPOS";CONSTITUENT[3][146] = "179927";CONSTITUENT[0][147] = "17241902";CONSTITUENT[1][147] = "INVERSIONES COVADONGA NPV";CONSTITUENT[2][147] = "COVADONGA";CONSTITUENT[3][147] = "179858";CONSTITUENT[0][148] = "18822257";CONSTITUENT[1][148] = "INVERSIONES FRIMETAL SA COM NPV";CONSTITUENT[2][148] = "FRIMETAL";CONSTITUENT[3][148] = "17590942";CONSTITUENT[0][149] = "17241942";CONSTITUENT[1][149] = "INVERSIONES LA ESPANOLA SA NPV";CONSTITUENT[2][149] = "ESPANOLA";CONSTITUENT[3][149] = "179781";CONSTITUENT[0][150] = "17242001";CONSTITUENT[1][150] = "INVERSIONES NORTE GRANDE SA NPV";CONSTITUENT[2][150] = "NORTEGRAN";CONSTITUENT[3][150] = "9007141";CONSTITUENT[0][151] = "17242002";CONSTITUENT[1][151] = "INVERSIONES ORO BLANCO SA NPV";CONSTITUENT[2][151] = "ORO\BLANCO";CONSTITUENT[3][151] = "179932";CONSTITUENT[0][152] = "17241852";CONSTITUENT[1][152] = "INVERSIONES PAMPA CALICHERA SA COM SERANPV";CONSTITUENT[2][152] = "CALICHERAA";CONSTITUENT[3][152] = "179933";CONSTITUENT[0][153] = "17241853";CONSTITUENT[1][153] = "INVERSIONES PAMPA CALICHERA SA COM SERBNPV";CONSTITUENT[2][153] = "CALICHERAB";CONSTITUENT[3][153] = "403826";CONSTITUENT[0][154] = "17242037";CONSTITUENT[1][154] = "INVERSIONES SIEMEL SA COM NPV SERA";CONSTITUENT[2][154] = "SIEMEL";CONSTITUENT[3][154] = "179921";CONSTITUENT[0][155] = "17242062";CONSTITUENT[1][155] = "INVERSIONES TRICAHUE NPV";CONSTITUENT[2][155] = "TRICAHUE";CONSTITUENT[3][155] = "179863";CONSTITUENT[0][156] = "17242064";CONSTITUENT[1][156] = "INVERSIONES UNESPA NPV";CONSTITUENT[2][156] = "UNESPA";CONSTITUENT[3][156] = "179791";CONSTITUENT[0][157] = "17241979";CONSTITUENT[1][157] = "INVERSIONES UNION ESPANOLA SA NPV";CONSTITUENT[2][157] = "INVIESPA";CONSTITUENT[3][157] = "179864";CONSTITUENT[0][158] = "17241977";CONSTITUENT[1][158] = "INVERTEC PESQUERA MAR DE CHILOE SA COM NPV";CONSTITUENT[2][158] = "INVERMAR";CONSTITUENT[3][158] = "16446862";CONSTITUENT[0][159] = "17241983";CONSTITUENT[1][159] = "JUGOS CONCENTRADOS SA COM NPV";CONSTITUENT[2][159] = "JUCOSA";CONSTITUENT[3][159] = "179866";CONSTITUENT[0][160] = "17241933";CONSTITUENT[1][160] = "LABORATORIOS ANDROMACO SA COM NPV";CONSTITUENT[2][160] = "ANDROMACO";CONSTITUENT[3][160] = "13826497";CONSTITUENT[0][161] = "31510972";CONSTITUENT[1][161] = "LAFARGE CHILE SA NPV";CONSTITUENT[2][161] = "LAFARGE CL";CONSTITUENT[3][161] = "179754";CONSTITUENT[0][162] = "17241985";CONSTITUENT[1][162] = "LAN AIRLINES SA NPV";CONSTITUENT[2][162] = "LAN";CONSTITUENT[3][162] = "12364773";CONSTITUENT[0][163] = "271004";CONSTITUENT[1][163] = "LAN AIRLINES SA SPND ADR REPR 1 ORD SHS NPV";CONSTITUENT[2][163] = "LFL";CONSTITUENT[3][163] = "91431";CONSTITUENT[0][164] = "272460";CONSTITUENT[1][164] = "MADECO S.A. ADR REP 100 ORD NPV";CONSTITUENT[2][164] = "MADKY";CONSTITUENT[3][164] = "8423561";CONSTITUENT[0][165] = "17241990";CONSTITUENT[1][165] = "MADECO S.A. COM STK NPV";CONSTITUENT[2][165] = "MADECO";CONSTITUENT[3][165] = "11917145";CONSTITUENT[0][166] = "17241991";CONSTITUENT[1][166] = "MARBELLA COUNTRY CLUB SA NPV";CONSTITUENT[2][166] = "MARBELLACC";CONSTITUENT[3][166] = "179877";CONSTITUENT[0][167] = "17241992";CONSTITUENT[1][167] = "MARITIMA DE INVERSIONES SA NPV";CONSTITUENT[2][167] = "MARINSA";CONSTITUENT[3][167] = "179878";CONSTITUENT[0][168] = "17241993";CONSTITUENT[1][168] = "MASISA S.A. COM NPV";CONSTITUENT[2][168] = "MASISA";CONSTITUENT[3][168] = "12647599";CONSTITUENT[0][169] = "18464414";CONSTITUENT[1][169] = "MASISA S.A. SPONS ADR EACH REP 50 COM S";CONSTITUENT[2][169] = "MASISA S.A. SPONS ADR EACH REP 50 COM S";CONSTITUENT[3][169] = "12647600";CONSTITUENT[0][170] = "17241995";CONSTITUENT[1][170] = "MINERA VALPARAISO NPV";CONSTITUENT[2][170] = "MINERA";CONSTITUENT[3][170] = "179946";CONSTITUENT[0][171] = "17241996";CONSTITUENT[1][171] = "MOLIBDENOS Y METALES SA NPV";CONSTITUENT[2][171] = "MOLYMET";CONSTITUENT[3][171] = "179882";CONSTITUENT[0][172] = "18400532";CONSTITUENT[1][172] = "MULTIEXPORT FOODS COM NPV";CONSTITUENT[2][172] = "MULTIFOODS";CONSTITUENT[3][172] = "17313645";CONSTITUENT[0][173] = "17242061";CONSTITUENT[1][173] = "NACIONAL TELEFONOS DEL SUR SA NPV";CONSTITUENT[2][173] = "TELSUR";CONSTITUENT[3][173] = "179792";CONSTITUENT[0][174] = "17241999";CONSTITUENT[1][174] = "NAVARINO SA NPV";CONSTITUENT[2][174] = "NAVARINO";CONSTITUENT[3][174] = "179885";CONSTITUENT[0][175] = "17242003";CONSTITUENT[1][175] = "PACIFICO V REGION SA NPV";CONSTITUENT[2][175] = "PACIFICO";CONSTITUENT[3][175] = "9007196";CONSTITUENT[0][176] = "17242004";CONSTITUENT[1][176] = "PARQUE ARAUCO SA NPV";CONSTITUENT[2][176] = "PARAUCO";CONSTITUENT[3][176] = "179891";CONSTITUENT[0][177] = "17242005";CONSTITUENT[1][177] = "PASUR FORESTAL CONSTR Y COMERCIAL NPV";CONSTITUENT[2][177] = "PASUR";CONSTITUENT[3][177] = "179839";CONSTITUENT[0][178] = "17242006";CONSTITUENT[1][178] = "PAZ CORP SA COM STK NPV";CONSTITUENT[2][178] = "PAZ";CONSTITUENT[3][178] = "15289058";CONSTITUENT[0][179] = "17241889";CONSTITUENT[1][179] = "PESQUERA COLOSA SA NPV";CONSTITUENT[2][179] = "COLOSO";CONSTITUENT[3][179] = "179893";CONSTITUENT[0][180] = "17241982";CONSTITUENT[1][180] = "PESQUERA ITATA SA NPV";CONSTITUENT[2][180] = "ITATA";CONSTITUENT[3][180] = "179895";CONSTITUENT[0][181] = "17241952";CONSTITUENT[1][181] = "PORTUARIA CABO FROWARD SA NPV";CONSTITUENT[2][181] = "FROWARD";CONSTITUENT[3][181] = "179901";CONSTITUENT[0][182] = "17241900";CONSTITUENT[1][182] = "PRINCE OF WALES COUNTRY CUB SA INMO SHS NPV SERA";CONSTITUENT[2][182] = "COUNTRY-A";CONSTITUENT[3][182] = "179903";CONSTITUENT[0][183] = "17241901";CONSTITUENT[1][183] = "PRINCE OF WALES COUNTRY CUB SA INMO SHS NPV SERB";CONSTITUENT[2][183] = "COUNTRY-B";CONSTITUENT[3][183] = "179904";CONSTITUENT[0][184] = "17242017";CONSTITUENT[1][184] = "PUERTO DEL LIRQUEN SA NPV";CONSTITUENT[2][184] = "PUERTO";CONSTITUENT[3][184] = "1451291";CONSTITUENT[0][185] = "17242068";CONSTITUENT[1][185] = "PUERTO VENTANAS SA NPV";CONSTITUENT[2][185] = "VENTANAS";CONSTITUENT[3][185] = "179907";CONSTITUENT[0][186] = "17242015";CONSTITUENT[1][186] = "PUNTA DEL COBRE SA COM NPV SERA";CONSTITUENT[2][186] = "PUCOBRE-A";CONSTITUENT[3][186] = "179935";CONSTITUENT[0][187] = "8318180";CONSTITUENT[1][187] = "PUNTA DEL COBRE SA COM NPV SERC";CONSTITUENT[2][187] = "PUCOBRE-C";CONSTITUENT[3][187] = "9007280";CONSTITUENT[0][188] = "17242016";CONSTITUENT[1][188] = "PUNTA DEL COBRE SA COM NPV SERD";CONSTITUENT[2][188] = "PUCOBRE-D";CONSTITUENT[3][188] = "9007281";CONSTITUENT[0][189] = "17242019";CONSTITUENT[1][189] = "QUEMCHI SA COM NPV";CONSTITUENT[2][189] = "QUEMCHI";CONSTITUENT[3][189] = "179908";CONSTITUENT[0][190] = "17242020";CONSTITUENT[1][190] = "QUILICURA SA NPV";CONSTITUENT[2][190] = "QUILICURA";CONSTITUENT[3][190] = "179909";CONSTITUENT[0][191] = "17242021";CONSTITUENT[1][191] = "QUINENCO SA COM NPV";CONSTITUENT[2][191] = "QUINENCO";CONSTITUENT[3][191] = "179910";CONSTITUENT[0][192] = "17242022";CONSTITUENT[1][192] = "QUINTEC SA COM NPV";CONSTITUENT[2][192] = "QUINTEC";CONSTITUENT[3][192] = "1282682";CONSTITUENT[0][193] = "17242024";CONSTITUENT[1][193] = "REBRISA SA SERAPRF NPV";CONSTITUENT[2][193] = "REBRISA-A";CONSTITUENT[3][193] = "179911";CONSTITUENT[0][194] = "17242025";CONSTITUENT[1][194] = "REBRISA SA SERBPRF NPV";CONSTITUENT[2][194] = "REBRISA-B";CONSTITUENT[3][194] = "232093";CONSTITUENT[0][195] = "17242026";CONSTITUENT[1][195] = "RIPLEY CORP SA COM NPV";CONSTITUENT[2][195] = "RIPLEY";CONSTITUENT[3][195] = "12539538";CONSTITUENT[0][196] = "17241947";CONSTITUENT[1][196] = "S.A.C.I FALABELLA COM NPV";CONSTITUENT[2][196] = "FALABELLA";CONSTITUENT[3][196] = "179832";CONSTITUENT[0][197] = "17242027";CONSTITUENT[1][197] = "SALFACORP SA COM NPV";CONSTITUENT[2][197] = "SALFACORP";CONSTITUENT[3][197] = "11472186";CONSTITUENT[0][198] = "17242029";CONSTITUENT[1][198] = "SANTANA SA NPV";CONSTITUENT[2][198] = "SANTANA";CONSTITUENT[3][198] = "179916";CONSTITUENT[0][199] = "17242033";CONSTITUENT[1][199] = "SCHWAGER ENERGY SA COM NPV";CONSTITUENT[2][199] = "SCHWAGER";CONSTITUENT[3][199] = "16446871";CONSTITUENT[0][200] = "17242058";CONSTITUENT[1][200] = "SCOTIABANK SUD AMERICANO SA COM NPV SERA";CONSTITUENT[2][200] = "SUD AMER-A";CONSTITUENT[3][200] = "179739";CONSTITUENT[0][201] = "17241894";CONSTITUENT[1][201] = "SEGUROS LA CHILENA CONSOLIDADA SA NPV";CONSTITUENT[2][201] = "CONSOGRAL";CONSTITUENT[3][201] = "13493171";CONSTITUENT[0][202] = "17242040";CONSTITUENT[1][202] = "SIGDO KOPPERS S.A. COM NPV";CONSTITUENT[2][202] = "SK";CONSTITUENT[3][202] = "12955825";CONSTITUENT[0][203] = "31789026";CONSTITUENT[1][203] = "SIGLO XXI FONDO DE INVERSION MOBILI COM NPV";CONSTITUENT[2][203] = "CFIMSIGLO";CONSTITUENT[3][203] = "9006143";CONSTITUENT[0][204] = "17242038";CONSTITUENT[1][204] = "SINTEX SA NPV";CONSTITUENT[2][204] = "SINTEX";CONSTITUENT[3][204] = "179926";CONSTITUENT[0][205] = "17242039";CONSTITUENT[1][205] = "SIPSA SA NPV";CONSTITUENT[2][205] = "SIPSA";CONSTITUENT[3][205] = "179860";CONSTITUENT[0][206] = "17241885";CONSTITUENT[1][206] = "SOC INMOBILIARIA CLUB DE CAMPO COM NPV";CONSTITUENT[2][206] = "CLUBCAMPO";CONSTITUENT[3][206] = "179931";CONSTITUENT[0][207] = "17242049";CONSTITUENT[1][207] = "SOCIEDAD MANUFCT ELCTROARTEFACTOS NPV";CONSTITUENT[2][207] = "SOMELA";CONSTITUENT[3][207] = "179934";CONSTITUENT[0][208] = "17242043";CONSTITUENT[1][208] = "SOCIEDAD MATRIZ DEL BANCO DE CHILE SERANPV";CONSTITUENT[2][208] = "SM-CHILE A";CONSTITUENT[3][208] = "9007974";CONSTITUENT[0][209] = "17242044";CONSTITUENT[1][209] = "SOCIEDAD MATRIZ DEL BANCO DE CHILE SERBNPV";CONSTITUENT[2][209] = "SM-CHILE B";CONSTITUENT[3][209] = "8040166";CONSTITUENT[0][210] = "17242045";CONSTITUENT[1][210] = "SOCIEDAD MATRIZ DEL BANCO DE CHILE SERDNPV";CONSTITUENT[2][210] = "SM-CHILE D";CONSTITUENT[3][210] = "9007975";CONSTITUENT[0][211] = "17242046";CONSTITUENT[1][211] = "SOCIEDAD MATRIZ DEL BANCO DE CHILE SERENPV";CONSTITUENT[2][211] = "SM-CHILE E";CONSTITUENT[3][211] = "9007976";CONSTITUENT[0][212] = "284695";CONSTITUENT[1][212] = "SOCIEDAD QUIMICA Y MINERA DE CHILE ADR(REPR 1 PRF SERB)";CONSTITUENT[2][212] = "SQM";CONSTITUENT[3][212] = "89481";CONSTITUENT[0][213] = "17242056";CONSTITUENT[1][213] = "SOCIEDAD QUIMICA Y MINERA DE CHILE PRF SERA";CONSTITUENT[2][213] = "SQM-A";CONSTITUENT[3][213] = "179936";CONSTITUENT[0][214] = "17242057";CONSTITUENT[1][214] = "SOCIEDAD QUIMICA Y MINERA DE CHILE PRF SERB";CONSTITUENT[2][214] = "SQM-B";CONSTITUENT[3][214] = "1452646";CONSTITUENT[0][215] = "19547388";CONSTITUENT[1][215] = "SOCOVESA SA NPV";CONSTITUENT[2][215] = "SOCOVESA";CONSTITUENT[3][215] = "18109110";CONSTITUENT[0][216] = "17242050";CONSTITUENT[1][216] = "SONDA S.A. COM NPV";CONSTITUENT[2][216] = "SONDA";CONSTITUENT[3][216] = "16446880";CONSTITUENT[0][217] = "17242052";CONSTITUENT[1][217] = "SOPROCAL CALERIAS E INDUSTRIAS SA NPV";CONSTITUENT[2][217] = "SOPROCAL";CONSTITUENT[3][217] = "179937";CONSTITUENT[0][218] = "17242053";CONSTITUENT[1][218] = "SOQUIMICH COMERCIAL SA NPV";CONSTITUENT[2][218] = "SOQUICOM";CONSTITUENT[3][218] = "179938";CONSTITUENT[0][219] = "17241904";CONSTITUENT[1][219] = "TELEFONICA CHILE S.A. NPV SER A";CONSTITUENT[2][219] = "CTC-A";CONSTITUENT[3][219] = "8670001";CONSTITUENT[0][220] = "17241905";CONSTITUENT[1][220] = "TELEFONICA CHILE S.A. NPV SERB";CONSTITUENT[2][220] = "CTC-B";CONSTITUENT[3][220] = "9063852";CONSTITUENT[0][221] = "17242060";CONSTITUENT[1][221] = "TELEFONOS DE COYHAIQUE SA NPV";CONSTITUENT[2][221] = "TELCOY";CONSTITUENT[3][221] = "179795";CONSTITUENT[0][222] = "17241881";CONSTITUENT[1][222] = "TELMEX CORP SA COM NPV";CONSTITUENT[2][222] = "CHILESAT";CONSTITUENT[3][222] = "9186253";CONSTITUENT[0][223] = "17241958";CONSTITUENT[1][223] = "THE GRANGE SCHOOL SA NPV SERA";CONSTITUENT[2][223] = "GRANGE-A";CONSTITUENT[3][223] = "9006651";CONSTITUENT[0][224] = "17241886";CONSTITUENT[1][224] = "UNION INMOBILIARIA SA NPV";CONSTITUENT[2][224] = "CLUBUNION";CONSTITUENT[3][224] = "9006198";CONSTITUENT[0][225] = "17242055";CONSTITUENT[1][225] = "VALPARAISO SPORTING CLUB SA NPV";CONSTITUENT[2][225] = "SPORTING";CONSTITUENT[3][225] = "9008022";CONSTITUENT[0][226] = "17241892";CONSTITUENT[1][226] = "VINA CONCHA Y TORO NPV";CONSTITUENT[2][226] = "CONCHATORO";CONSTITUENT[3][226] = "179949";CONSTITUENT[0][227] = "290751";CONSTITUENT[1][227] = "VINA CONCHA Y TORO SPON ADR REP 20 SHS NPV";CONSTITUENT[2][227] = "VCO";CONSTITUENT[3][227] = "89509";CONSTITUENT[0][228] = "17242032";CONSTITUENT[1][228] = "VINA SAN PEDRO TARAPACA SA COM NPV";CONSTITUENT[2][228] = "SAN PEDRO";CONSTITUENT[3][228] = "179950";CONSTITUENT[0][229] = "17242031";CONSTITUENT[1][229] = "VINA SANTA RITA SA NPV";CONSTITUENT[2][229] = "SANTA RITA";CONSTITUENT[3][229] = "179918";CONSTITUENT[0][230] = "17241924";CONSTITUENT[1][230] = "VINEDOS EMILIANA SA NPV";CONSTITUENT[2][230] = "EMILIANA";CONSTITUENT[3][230] = "179745";CONSTITUENT[0][231] = "32669743";CONSTITUENT[1][231] = "WATTS S.A. COMANPV";CONSTITUENT[2][231] = "WATTS";CONSTITUENT[3][231] = "13524126";CONSTITUENT[0][232] = "17242072";CONSTITUENT[1][232] = "WATTS S.A. COMBNPV";CONSTITUENT[2][232] = "WATTS-B";CONSTITUENT[3][232] = "13524127";CONSTITUENT[0][233] = "17242074";CONSTITUENT[1][233] = "ZONA FRANCA DE IQUIQUE SA NPV";CONSTITUENT[2][233] = "ZOFRI";CONSTITUENT[3][233] = "179953";CONSTITUENT[0][234] = "17719976";CONSTITUENT[1][234] = "AGUASA-SD";CONSTITUENT[2][234] = "AGUASA-SD";CONSTITUENT[3][234] = "16832335";CONSTITUENT[0][235] = "17781312";CONSTITUENT[1][235] = "ALMEN-SD";CONSTITUENT[2][235] = "ALMEN-SD";CONSTITUENT[3][235] = "16860395";CONSTITUENT[0][236] = "28794847";CONSTITUENT[1][236] = "ANDINAA-SD";CONSTITUENT[2][236] = "ANDINAA-SD";CONSTITUENT[3][236] = "22195202";CONSTITUENT[0][237] = "28793070";CONSTITUENT[1][237] = "ANDINAB-SD";CONSTITUENT[2][237] = "ANDINAB-SD";CONSTITUENT[3][237] = "22187175";CONSTITUENT[0][238] = "17657974";CONSTITUENT[1][238] = "ANTAR-SD";CONSTITUENT[2][238] = "ANTAR-SD";CONSTITUENT[3][238] = "16781572";CONSTITUENT[0][239] = "28654583";CONSTITUENT[1][239] = "CONCHA-OSA";CONSTITUENT[2][239] = "CONCHA-OSA";CONSTITUENT[3][239] = "24405057";CONSTITUENT[0][240] = "28328075";CONSTITUENT[1][240] = "CONCHA-SD";CONSTITUENT[2][240] = "CONCHA-SD";CONSTITUENT[3][240] = "16492179";CONSTITUENT[0][241] = "17657976";CONSTITUENT[1][241] = "COLBUN-SD";CONSTITUENT[2][241] = "COLBUN-SD";CONSTITUENT[3][241] = "16781574";CONSTITUENT[0][242] = "17241909";CONSTITUENT[1][242] = "CURAUMA";CONSTITUENT[2][242] = "CURAUMA";CONSTITUENT[3][242] = "16446847";CONSTITUENT[0][243] = "17696884";CONSTITUENT[1][243] = "CTCA-SD";CONSTITUENT[2][243] = "CTCA-SD";CONSTITUENT[3][243] = "16816194";CONSTITUENT[0][244] = "17648838";CONSTITUENT[1][244] = "EMBONOA-SD";CONSTITUENT[2][244] = "EMBONOA-SD";CONSTITUENT[3][244] = "16774785";CONSTITUENT[0][245] = "28835520";CONSTITUENT[1][245] = "EMBONOB-SD";CONSTITUENT[2][245] = "EMBONOB-SD";CONSTITUENT[3][245] = "22552470";CONSTITUENT[0][246] = "17585487";CONSTITUENT[1][246] = "ENAEX-SD";CONSTITUENT[2][246] = "ENAEX-SD";CONSTITUENT[3][246] = "16730874";CONSTITUENT[0][247] = "28923083";CONSTITUENT[1][247] = "ENDESA-SD";CONSTITUENT[2][247] = "ENDESA-SD";CONSTITUENT[3][247] = "16832336";CONSTITUENT[0][248] = "17704854";CONSTITUENT[1][248] = "ENTEL-SD";CONSTITUENT[2][248] = "ENTEL-SD";CONSTITUENT[3][248] = "16820911";CONSTITUENT[0][249] = "17241943";CONSTITUENT[1][249] = "ESSBIO-A";CONSTITUENT[2][249] = "ESSBIO-A";CONSTITUENT[3][249] = "16446851";CONSTITUENT[0][250] = "17241944";CONSTITUENT[1][250] = "ESSBIO-B";CONSTITUENT[2][250] = "ESSBIO-B";CONSTITUENT[3][250] = "16446852";CONSTITUENT[0][251] = "17648840";CONSTITUENT[1][251] = "FALABEL-SD";CONSTITUENT[2][251] = "FALABEL-SD";CONSTITUENT[3][251] = "16774787";CONSTITUENT[0][252] = "17572025";CONSTITUENT[1][252] = "GENER-SD";CONSTITUENT[2][252] = "GENER-SD";CONSTITUENT[3][252] = "16719098";CONSTITUENT[0][253] = "17757856";CONSTITUENT[1][253] = "IAM-SD";CONSTITUENT[2][253] = "IAM-SD";CONSTITUENT[3][253] = "16838466";CONSTITUENT[0][254] = "17241974";CONSTITUENT[1][254] = "INTASA-SD";CONSTITUENT[2][254] = "INTASA-SD";CONSTITUENT[3][254] = "16446861";CONSTITUENT[0][255] = "17719978";CONSTITUENT[1][255] = "QUINTEC-SD";CONSTITUENT[2][255] = "QUINTEC-SD";CONSTITUENT[3][255] = "16832337";CONSTITUENT[0][256] = "17809100";CONSTITUENT[1][256] = "MASISA-SD";CONSTITUENT[2][256] = "MASISA-SD";CONSTITUENT[3][256] = "16887316";CONSTITUENT[0][257] = "17261739";CONSTITUENT[1][257] = "LAPOLAR-SD";CONSTITUENT[2][257] = "LAPOLAR-SD";CONSTITUENT[3][257] = "16465196";CONSTITUENT[0][258] = "17704857";CONSTITUENT[1][258] = "OROBCO-SD";CONSTITUENT[2][258] = "OROBCO-SD";CONSTITUENT[3][258] = "16820914";CONSTITUENT[0][259] = "17637125";CONSTITUENT[1][259] = "PARAUCO-SD";CONSTITUENT[2][259] = "PARAUCO-SD";CONSTITUENT[3][259] = "16765144";CONSTITUENT[0][260] = "17781313";CONSTITUENT[1][260] = "PAZ-SD";CONSTITUENT[2][260] = "PAZ-SD";CONSTITUENT[3][260] = "16860396";CONSTITUENT[0][261] = "23051555";CONSTITUENT[1][261] = "PILMA-SD";CONSTITUENT[2][261] = "PILMA-SD";CONSTITUENT[3][261] = "20543513";CONSTITUENT[0][262] = "17781314";CONSTITUENT[1][262] = "RIPLEY-SD";CONSTITUENT[2][262] = "RIPLEY-SD";CONSTITUENT[3][262] = "16860397";CONSTITUENT[0][263] = "17704858";CONSTITUENT[1][263] = "SALFA-SD";CONSTITUENT[2][263] = "SALFA-SD";CONSTITUENT[3][263] = "16820915";CONSTITUENT[0][264] = "28895747";CONSTITUENT[1][264] = "SOQUIB-SD";CONSTITUENT[2][264] = "SOQUIB-SD";CONSTITUENT[3][264] = "16781579";CONSTITUENT[0][265] = "22647091";CONSTITUENT[1][265] = "SOCOVE-SD";CONSTITUENT[2][265] = "SOCOVE-SD";CONSTITUENT[3][265] = "20257483";CONSTITUENT[0][266] = "29126237";CONSTITUENT[1][266] = "ZOFRI-SD";CONSTITUENT[2][266] = "ZOFRI-SD";CONSTITUENT[3][266] = "16908373";