// simple function to permit type augmentation
Function.prototype.method = function (name, func) {     
	this.prototype[name] = func; 
    return this; 
};
// adds trim support for javascript string type
String.method('trim', function (  ) {     
	return this.replace(/^\s+|\s+$/g, ''); 
});

var storiesArray=new Array;

/* Galeries */
var photoArray=new Array();
var videoArray=new Array();

var galDelay=4000;
var galSpeed=1000;

var photoInterval=null;
var videoInterval=null;

var photoGalControl=0;
var videoGalControl=0;

function startPhotoGalAnim(){
	var div1=$('#photoGal1'),div2=$('#photoGal2'),galLength=photoArray.length;
	
	$('#photoControl_'+photoGalControl).addClass('galoff').removeClass('galon');
	
	if((photoGalControl+1)<galLength) photoGalControl++;
	else photoGalControl=0;
	
	$('#photoControl_'+photoGalControl).addClass('galon').removeClass('galoff');
	
	if(div2.css('opacity')==0){
		div2.html(photoArray[photoGalControl]);
		
		if(div2.height()<'200')div2.css('marginTop',parseInt((200-div2.height())/2));
		else div2.css('marginTop',0);
		
		if(div2.width()<'300')div2.css('marginLeft',parseInt((300-div2.width())/2));
		else div2.css('marginLeft',0);
		
		div2.animate(
			{opacity: 1},
			galSpeed,
			'swing'
		);
		div1.animate(
			{opacity: 0},
			galSpeed,
			'swing'
		);
	}else{
		div1.html(photoArray[photoGalControl]);
		
		if(div1.height()<'200')div1.css('marginTop',parseInt((200-div1.height())/2));
		else div1.css('marginTop',0);
		
		if(div1.width()<'300')div1.css('marginLeft',parseInt((300-div1.width())/2));
		else div1.css('marginLeft',0);
		
		div1.animate(
			{opacity: 1},
			galSpeed,
			'swing'
		);
		
		div2.animate(
			{opacity: 0},
			galSpeed,
			'swing'
		);
	}
}

function changePhotoGal(id){
	var div1=$('#photoGal1'),div2=$('#photoGal2'),galLength=photoArray.length;
	clearInterval(photoInterval);
	$('#photoControl_'+photoGalControl).addClass('galoff').removeClass('galon');
	photoGalControl=id;
	$('#photoControl_'+photoGalControl).addClass('galon').removeClass('galoff');
	
	$('#photoPlayPause').addClass('play').removeClass('pause');
	
	if(div2.css('opacity')==0){
		div2.html(photoArray[photoGalControl]);
		
		if(div2.height()<'200')div2.css('marginTop',parseInt((200-div2.height())/2));
		else div2.css('marginTop',0);
		
		if(div2.width()<'300')div2.css('marginLeft',parseInt((300-div2.width())/2));
		else div2.css('marginLeft',0);
		
		div2.animate(
			{opacity: 1},
			galSpeed,
			'swing'
		);
		div1.animate(
			{opacity: 0},
			galSpeed,
			'swing'
		);
	}else{
		div1.html(photoArray[photoGalControl]);
		
		if(div1.height()<'200')div1.css('marginTop',parseInt((200-div1.height())/2));
		else div1.css('marginTop',0);
		
		if(div1.width()<'300')div1.css('marginLeft',parseInt((300-div1.width())/2));
		else div1.css('marginLeft',0);
		
		div1.animate(
			{opacity: 1},
			galSpeed,
			'swing'
		);
		
		div2.animate(
			{opacity: 0},
			galSpeed,
			'swing'
		);
	}
}

function startVideoGalAnim(){
	var div1=$('#videoGal1'),div2=$('#videoGal2'),galLength=videoArray.length;
	
	$('#videoControl_'+videoGalControl).addClass('galoff').removeClass('galon');
	
	if((videoGalControl+1)<galLength) videoGalControl++;
	else videoGalControl=0;
	
	$('#videoControl_'+videoGalControl).addClass('galon').removeClass('galoff');
	
	changeVideoGal(videoGalControl, true);
/*
	if(div2.css('opacity')==0){
		//div2.html(videoArray[videoGalControl]);
		
		if(div2.height()<'200')div2.css('marginTop',parseInt((200-div2.height())/2));
		else div2.css('marginTop',0);
		
		if(div2.width()<'300')div2.css('marginLeft',parseInt((300-div2.width())/2));
		else div2.css('marginLeft',0);
		
		div2.animate(
			{opacity: 1},
			galSpeed,
			'swing'
		);
		div1.animate(
			{opacity: 0},
			galSpeed,
			'swing'
		);
	}else{
		//div1.html(videoArray[videoGalControl]);
		
		if(div1.height()<'200')div1.css('marginTop',parseInt((200-div1.height())/2));
		else div1.css('marginTop',0);
		
		if(div1.width()<'300')div1.css('marginLeft',parseInt((300-div1.width())/2));
		else div1.css('marginLeft',0);
		
		div1.animate(
			{opacity: 1},
			galSpeed,
			'swing'
		);
		
		div2.animate(
			{opacity: 0},
			galSpeed,
			'swing'
		);
	}
*/
}

function changeVideoGal(id, continuePlayingFlag)
{
	var div1=$('#videoGal1'),div2=$('#videoGal2'),galLength=videoArray.length;
	if(!continuePlayingFlag)
	{
		clearInterval(videoInterval);
		$('#videoControl_'+videoGalControl).addClass('galoff').removeClass('galon');
		videoGalControl=id;
		$('#videoControl_'+videoGalControl).addClass('galon').removeClass('galoff');
	
		$('#videoPlayPause').addClass('play').removeClass('pause');
	}	

	var videoSelected = $('#videoList .galItem')[videoGalControl];
	var htmlToAdd = getElementHtmlWithoutScripts(videoSelected);

	if(div2.css('opacity')==0){
		
		div2.html(htmlToAdd);
		//div2.html(videoArray[videoGalControl]);
	
		/*	
		if(div2.height()<'200')div2.css('marginTop',parseInt((200-div2.height())/2));
		else div2.css('marginTop',0);
		
		if(div2.width()<'300')div2.css('marginLeft',parseInt((300-div2.width())/2));
		else div2.css('marginLeft',0);
		*/		

		div2.animate(
			{opacity: 1},
			galSpeed,
			'swing'
		);
		div1.animate(
			{opacity: 0},
			galSpeed,
			'swing'
		);
	}else{
		//div1.html(videoArray[videoGalControl]);	
		div2.html(htmlToAdd);
		
		/*
		if(div1.height()<'200')div1.css('marginTop',parseInt((200-div1.height())/2));
		else div1.css('marginTop',0);
		
		if(div1.width()<'300')div1.css('marginLeft',parseInt((300-div1.width())/2));
		else div1.css('marginLeft',0);
		*/		

		div2.animate(
			{opacity: 1},
			galSpeed,
			'swing'
		);
		
		div1.animate(
			{opacity: 0},
			galSpeed,
			'swing'
		);
	}

}

function photoPlayPause(){
	if($('#photoPlayPause').attr('class')=='play'){
		$('#photoPlayPause').addClass('pause').removeClass('play');
		photoInterval=setInterval(startPhotoGalAnim,galDelay);
	}else{
		$('#photoPlayPause').addClass('play').removeClass('pause');
		clearInterval(photoInterval);
	}
}

function videoPlayPause(){
	if($('#videoPlayPause').attr('class')=='play'){
		$('#videoPlayPause').addClass('pause').removeClass('play');
		videoInterval=setInterval(startVideoGalAnim,galDelay);
	}else{
		$('#videoPlayPause').addClass('play').removeClass('pause');
		clearInterval(videoInterval);
	}
}

function galsInit(){
	$('#photoList .galItem').each(function(){
		photoArray.push($(this).html());	
	});
	
	$('#videoList .galItem').each(function(){
		
		//videoArray.push($(this).html());

		//var galItemHtml = "";
		//for(var c = 0; c<this.children.length; c++)
		//{
		//	galItemHtml += this.children[c].tagName.toLowerCase()!="script" ? this.children[c].outerHTML : "";
		//}

		videoArray.push("");
		$(this).css('display', 'none');
	});
	
	//$('#photoList ,#videoList').remove();
	
	$('#photoGal1').css('opacity',1);
	$('#photoGal2').css('opacity',0);
	
	$('#photoGal1').html(photoArray[photoGalControl]);
	
	$('#videoGal1').css('opacity',1);
	$('#videoGal2').css('opacity',0);
	
	$('#videoGal1').html(videoArray[videoGalControl]);
	
	var photoControls='<div id="photoPlayPause" class="play" onclick="photoPlayPause()"></div><ul class="galControls">';
	for(i in photoArray){
		photoControls=photoControls+'<li id="photoControl_'+i+'" class="galoff" onclick="changePhotoGal('+i+')"></li>';
	}
	photoControls=photoControls+'</ul>'
	
	var videoControls='<div id="videoPlayPause" class="play" onclick="videoPlayPause()"></div><ul class="galControls">';
	for(i in videoArray){
		videoControls=videoControls+'<li id="videoControl_'+i+'" class="galoff" onclick="changeVideoGal('+i+')"></li>';
	}
	videoControls=videoControls+'</ul>'
	
	$('#photoGalControls').html(photoControls);
	$('#videoGalControls').html(videoControls);
	
	$('#photoGalControls .galControls').css('marginLeft',parseInt(($('#photoGalControls').width()-($('#photoPlayPause').width()+$('#photoGalControls .galControls').width()))/2)-20);
	$('#videoGalControls .galControls').css('marginLeft',parseInt(($('#videoGalControls').width()-($('#videoPlayPause').width()+$('#videoGalControls .galControls').width()))/2)-20);
	
	$('#photoControl_0').addClass('galon').removeClass('galoff');
	$('#videoControl_0').addClass('galon').removeClass('galoff');
	
/*	photoInterval=setInterval(startPhotoGalAnim,galDelay);
	videoInterval=setInterval(startVideoGalAnim,galDelay);*/


	var initVideoGallery = function()
	{
		var objectItems = $('#videoList .galItem object');
		if(objectItems.length == 0)
			setTimeout(initVideoGallery, 500);
		else
			changeVideoGal(0);	
	}

	//will try to init until flash object exists
	initVideoGallery();	

}

/*Side Scrolling Carroussel*/
var sideScrollTimeInterval=4000;
var sideScrollAnimSpeed=1000;
var sideScrollarticleWidth=630;

var sideScrollInterval=null;
var sideScrollArticleCount=null;
var sideScrollControl=0;
var autoplay=true;

function sideScrollAnim(increment){
	if(autoplay==false){
		if(sideScrollControl==0 && increment<0)sideScrollControl=sideScrollArticleCount-1;
		else if(sideScrollControl>=(sideScrollArticleCount-1) && increment>0){sideScrollControl=0}
		else sideScrollControl+=increment;
	}else{
		if(sideScrollControl<sideScrollArticleCount-1)sideScrollControl++;
		else sideScrollControl=0;
	}
	if (sideScrollControl>=(sideScrollArticleCount-1) && autoplay==false && increment<0) {
		$('#mainImagePro').css('left',-(sideScrollarticleWidth)*sideScrollArticleCount);
	}
	if (sideScrollControl==0 && autoplay==false && increment>0) {
		$('#mainImagePro').css('left',sideScrollarticleWidth);
	} 
	if (sideScrollControl==0 && autoplay==true) {
		$('#mainImagePro').css('left',sideScrollarticleWidth);
	} 
        $('#mainImagePro').animate(
		{left: -(sideScrollarticleWidth*sideScrollControl)},
		sideScrollAnimSpeed,
		'swing'
	);
}

function sideScrollCarr(){
	sideScrollArticleCount=$('.sideScrollArticles').length;
	sideScrollInterval=window.setInterval(sideScrollAnim,sideScrollTimeInterval);
}

$(document).ready(function(){
  var control=0;
  
  function onBefore(){
    switch(control){
		case 0:
			$('#blackArrow').css('top','0px');
			$('#headline0').addClass('headlinesideHighlight');
			$('#headline1').removeClass('headlinesideHighlight');
			$('#headline2').removeClass('headlinesideHighlight');
			$('#headline3').removeClass('headlinesideHighlight');
			$('#headline4').removeClass('headlinesideHighlight');
			control=1;
			break;
		case 1:
			$('#blackArrow').css('top','51px');
			$('#headline0').removeClass('headlinesideHighlight');
			$('#headline1').addClass('headlinesideHighlight');
			$('#headline2').removeClass('headlinesideHighlight');
			$('#headline3').removeClass('headlinesideHighlight');
			$('#headline4').removeClass('headlinesideHighlight');
			control=2;
			break;
		case 2:
			$('#blackArrow').css('top','102px');
			$('#headline0').removeClass('headlinesideHighlight');
			$('#headline1').removeClass('headlinesideHighlight');
			$('#headline2').addClass('headlinesideHighlight');
			$('#headline3').removeClass('headlinesideHighlight');
			$('#headline4').removeClass('headlinesideHighlight');
			control=3;
			break;
		case 3:
			$('#blackArrow').css('top','153px');
			$('#headline0').removeClass('headlinesideHighlight');
			$('#headline1').removeClass('headlinesideHighlight');
			$('#headline2').removeClass('headlinesideHighlight');
			$('#headline3').addClass('headlinesideHighlight');
			$('#headline4').removeClass('headlinesideHighlight');
			control=4;
			break;
		case 4:
			$('#blackArrow').css('top','204px');
			$('#headline0').removeClass('headlinesideHighlight');
			$('#headline1').removeClass('headlinesideHighlight');
			$('#headline2').removeClass('headlinesideHighlight');
			$('#headline3').removeClass('headlinesideHighlight');
			$('#headline4').addClass('headlinesideHighlight');
			control=0;
			break;
		default:
			control=0;
    }
  }
              
  $('#mainImage').after('<div id="nav" class="nav">').cycle({ 
    //fx:     'scrollDown',
    timeout: 7000,
    speed:  500,
    before:  onBefore,
    pause:  1,
    pager:  '#nav'
  });
  

  $('a.tooltip').tooltip({ 
    track: true, 
    delay: 750, 
    showURL: false, 
    showBody: " - ", 
    fade: 250
  });
  
  var pagers=new Array;
  var oldpagers=new Array;
  var mynav=$('#nav');
  var bordergeneral=$('#bordergeneral');
  
  $("#nav a").each(function () {
    pagers.push($(this));
  });
  


  $("#sideheadlines div.headlineside").each(function (){
    oldpagers.push($(this));
  });
  
  
  for(var i in oldpagers){
    if(pagers[i]){
		pagers[i].html(oldpagers[i].html());
		pagers[i].attr('class',oldpagers[i].attr('class'));
		pagers[i].attr('id','headline'+i);
	}
  }
  
  var count=0;
  $("#nav a").each(function () {
    $(this).id='headline'+count;
	count++;
  });
  
  //$("#nav").append(bordergeneral);
  $("#sideheadlines").html('');
  $("#sideheadlines").append(mynav);
  
  
  var realClick=true;
  
  $('#headline0').click(function(){
	if(realClick==true){
	  document.location.href=$('#'+$(this).attr('id')+' .hiddenlink').attr('href');
	  realClick=false;  
	}else{
		$('#blackArrow').css('top','0px');
	  $('#headline0').addClass('headlinesideHighlight');
	  $('#headline1').removeClass('headlinesideHighlight');
	  $('#headline2').removeClass('headlinesideHighlight');
	  $('#headline3').removeClass('headlinesideHighlight');
	  $('#headline4').removeClass('headlinesideHighlight');
	  control=1;
	  realClick=true;
	}
  });
  
  $('#headline1').click(function(){
	if(realClick==true){
	  document.location.href=$('#'+$(this).attr('id')+' .hiddenlink').attr('href');
	  realClick=false;  
	}else{
		$('#blackArrow').css('top','51px');
	  $('#headline0').removeClass('headlinesideHighlight');
	  $('#headline1').addClass('headlinesideHighlight');
	  $('#headline2').removeClass('headlinesideHighlight');
	  $('#headline3').removeClass('headlinesideHighlight');
	  $('#headline4').removeClass('headlinesideHighlight');
	  control=2;
	  realClick=true;
	}
  });
  
  $('#headline2').click(function(){
    if(realClick==true){
	  document.location.href=$('#'+$(this).attr('id')+' .hiddenlink').attr('href');
	  realClick=false;  
	}else{
		$('#blackArrow').css('top','102px');
	  $('#headline0').removeClass('headlinesideHighlight');
	  $('#headline1').removeClass('headlinesideHighlight');
	  $('#headline2').addClass('headlinesideHighlight');
	  $('#headline3').removeClass('headlinesideHighlight');
	  $('#headline4').removeClass('headlinesideHighlight');
	  control=3;
	  realClick=true;
	}
  });
  
  $('#headline3').click(function(){
    if(realClick==true){
	  document.location.href=$('#'+$(this).attr('id')+' .hiddenlink').attr('href');
	  realClick=false;  
	}else{
		$('#blackArrow').css('top','153px');
	  $('#headline0').removeClass('headlinesideHighlight');
	  $('#headline1').removeClass('headlinesideHighlight');
	  $('#headline2').removeClass('headlinesideHighlight');
	  $('#headline3').addClass('headlinesideHighlight');
	  $('#headline4').removeClass('headlinesideHighlight');
	  control=4;
	  realClick=true;
	}
  });
  
  $('#headline4').click(function(){
    if(realClick==true){
	  document.location.href=$('#'+$(this).attr('id')+' .hiddenlink').attr('href');
	  realClick=false;  
	}else{
		$('#blackArrow').css('top','204px');
	  $('#headline0').removeClass('headlinesideHighlight');
	  $('#headline1').removeClass('headlinesideHighlight');
	  $('#headline2').removeClass('headlinesideHighlight');
	  $('#headline3').removeClass('headlinesideHighlight');
	  $('#headline4').addClass('headlinesideHighlight');
	  control=0;
	  realClick=true;
	}
  });
  
$('#headline0, #headline1, #headline2, #headline3, #headline4').hover(function(e){$('#mainImage').cycle('pause');realClick=false;$(this).trigger('click');},function(e){$('#mainImage').cycle('resume');});
	
	
	$('.sideScrollCarr, #mainImagePro,#mainImagePro .headlinetext, .carrButtons,#carr_left, #carr_right').mouseover(
		function(){
			clearInterval(sideScrollInterval);
		}
	);
	
	$('#mainImagePro').mouseout(
		function(){
			autoplay=true;
			sideScrollInterval=window.setInterval(sideScrollAnim,sideScrollTimeInterval);
		}
	);
	
	$('#carr_left').click(
		function(){
			autoplay=false;
			clearInterval(sideScrollInterval);
			sideScrollAnim(-1);
		}
	)
	
	$('#carr_right').click(
		function(){
			autoplay=false;
			clearInterval(sideScrollInterval);
			sideScrollAnim(1);
		}
	)

	/*Init side scrolling headline*/
	sideScrollCarr();
	
	/*Remove rightboxes' bottom border from last element*/
	$('.boxRight ul.content li:last-child').css('border','0px');
	
	/*Init Galleries*/
	galsInit();
});

function addToFavorites(obj, url){
	var title = "Arte Sonora - O resto é barulho";
	if(window.sidebar){
		// Mozilla Firefox Bookmark
		window.sidebar.addPanel(title, url,"");
	} else if(document.all){
		window.external.AddFavorite(url, title);
	}else if((window.opera && window.print) || window.chrome){
		jAlert('O teu browser não suporta esta funcionalidade.<br>Por favor pressiona Ctrl+D (ou Command+D em Macintosh) para adicionar a Arte Sonora aos teus Marcadores','Aviso');
	}else jAlert('Lamentamos mas o teu browser não suporta esta funcionalidade.','Erro');
}

function setHomePage(baseurl){
	if (document.all){
        document.body.style.behavior='url(#default#homepage)';
		document.body.setHomePage(baseurl);
    }
    else if (window.sidebar){
		if(window.netscape){
			try{  
				netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
			}  
			catch(e)  {  
				jAlert('Esta funcionalidade não é suportada pelo seu browser.','Erro');  
			}
		} 
		var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components. interfaces.nsIPrefBranch);
		prefs.setCharPref('browser.startup.homepage',baseurl);
		jAlert('A Arte Sonora foi definida como a tua nova HomePage','Aviso');
	}else jAlert('Lamentamos mas o teu browser não suporta esta funcionalidade.','Erro');
}

function showAdTab(){
		countWebscope();
		if(typeof(firstTracker)!='undefined'){
			firstTracker._trackPageview(location.href);
		}
		reloadAd(12);
}

function changeTabHP(tabsArray,url,isHP){
	var tabid = 'tab'+tabsArray[0];
	$.ajax({
		type: 'GET',
		url: "/gen.pl?p=ajax:activetab&tab="+tabid,
		async: true
	});

	jQuery.cookie('active_tab', tabid, { expires: 365 });
	
	
	changeTab(tabsArray,url,isHP);
}

function triggerHPTab(){
	var activetab = jQuery.cookie('active_tab');
	jQuery('#'+activetab+' a').trigger('click');
}

function changeTab(tabsArray,url,isHP){
  var loading='<div id="loading" class="w100"><div class="w100 hidden tacenter"><div class="f12 vdray bold mright10">Separador em carregamento...</div><div><img class="mtop20 mbot20" src="/i/icons/ic_loading.gif"></div></div></div>';
  var errormsg='<div id="errorMsg" class="w100 fleft f12 red bold tacenter mtop20 mbot20 mright10">Imposs&iacute;vel carregar este separador. Tente novamente mais tarde, por favor.</div>';
  var folder='/static/html/';
  url=folder+url;
  var tabid = 'tab'+tabsArray[0];

  for(var i in tabsArray){
    if(i==0){
      $('#tab'+tabsArray[i]).addClass('blacktabcustom');
      $('#tab'+tabsArray[i]).removeClass('graytabcustom');
    }
    else{ 
      $('#container'+tabsArray[i]).hide();
      $('#tab'+tabsArray[i]).removeClass('blacktabcustom');
      $('#tab'+tabsArray[i]).addClass('graytabcustom');
    }
  }
  if($('#container'+tabsArray[0]).html().trim()=='' && url!=''){
   $.ajax({
     type: "GET",
     url: url,
     async: true,
     timeout: 30000,
     beforeSend:function(){
      $('#container'+tabsArray[0]).show();
      $("#container"+tabsArray[0]).append(loading);
     }, 
     success: function(goGetter){
        $("#container"+tabsArray[0]).append(goGetter);
        $('#loading').remove();
     },
     error:function(){
      jAlert('Lamentamos inform&aacute;-lo que ocorreu um erro no carregamento do separador que acabou de requisitar.<br /> Por favor, tente mais tarde.','Erro');
      $('#loading').remove();
      $("#container"+tabsArray[0]).append(errormsg);
     }
   });
  }else{
    $('#container'+tabsArray[0]).show();
  }
  if(isHP && isHP==true){
	showAdTab();
  }
}



function getObj(id){
  return document.getElementById(id);
}

function onFocus(id){
  var obj=getObj(id);
  if(obj.value==obj.defaultValue){
    obj.value="";
  }
}

function onBlur(id){
  var obj=getObj(id);
  if(obj.value==""){
    obj.value=obj.defaultValue;
  }
}

function removeBottomBorder(containers,elementType){
  for(var i=0;i<containers.length;i++){
    var container=document.getElementById(containers[i]);
    var elements=container.getElementsByTagName(elementType);
    if(elements.length>0){
      var classString=elements[elements.length-1].className.split('bbotdashed ');
      elements[elements.length-1].className=classString[0]+classString[1];
      if(elements.length%2==0){
        var classString2=elements[elements.length-2].className.split('bbotdashed ');
        elements[elements.length-2].className=classString2[0]+classString2[1];
      }
    }
  }  
}

function valSearch(form,id){
  var tbox=document.getElementById(id);
  if(tbox.value==tbox.defaultValue){
    jAlert('Deves introduzir um crit&eacute;rio de pesquisa', 'Erro');
  }else form.submit();
}

function getElementHtmlWithoutScripts(element)
{
        var retHtml = ""; 
        var childs = $(element.children).filter(':not(script)');
	for(var c = 0; c<childs.length; c++)
        {
              retHtml += childs[c].outerHTML || new XMLSerializer().serializeToString(childs[c]);
        }
	return retHtml;

}

function stopGalVdeoInterval(){
	clearInterval(videoInterval);

	$('#videoPlayPause').addClass('play').removeClass('pause');
}

function playerStateChanged(state) {
      // State code 0 means playback ended
      if (state == 1){
	stopGalVdeoInterval()
      }
    }

function onYouTubePlayerReady(playerId) {
  var ytplayer = document.getElementById("galPlayer");
  ytplayer.addEventListener("onStateChange", "playerStateChanged");
}


