/**************************************
@Clase Buscador
***************************************
@Autor: Javier Martin
@Fecha: 2007/21/23
@Dependencia: clsajxgrg.js
@
*/

var Noticias = Class.create();

Noticias.prototype = {

    /**********************************************************************************************
    * Constructor
    **********************************************************************************************/
    initialize: function(route,couponID){
        this.ajx_TxtCargando='<div id="loading"><img vspace="10" src="'+route+'/loading.gif" /><br />Cargando informaci&oacute;n, aguarde un instante por favor<br/><img src="'+route+'/pixtrans.gif" width="1" height="5" /></div>';
        micouponID=couponID
        this._result=null;
    },
    /**********************************************************************************************
    * _cleanResults
    **********************************************************************************************/
    _cleanResults: function(){
        this._result.value="";
    },
    /*********************************************************************
    * getSearchAlfabetico
    ******************************************************/
    getNoticiasTele: function(start,end,quantity){
    	  
        var params = 'do=ajax@Noticias&accion=getNoticiasTele&start='+ start +'&end='+ end +'&quantity=' + quantity+ '&couponID=' + micouponID;
        var ajx = new clsAjx()
        ajx.setTxtCargando(this.ajx_TxtCargando);
        ajx.objOwner = this;//this._objOwner;
        ajx.setValores(params);
        ajx.ResultinTA(false);
        ajx.setURL("index.php");
        ajx.setCapa("noticiasajx");
        ajx.setCallBack("myfin");
        ajx.runAjx();
    },
    myfin: function(){
        /*if (navigator.appName == "Microsoft Internet Explorer"){
            var oheight = document.getElementById("content").offsetHeight;
            oheight=oheight+40;
            if (oheight<=1040) 
              document.getElementById("lateral").style.height=oheight+"px";
        }
        else{
            var oheight = document.getElementById("content").offsetHeight;
            oheight=oheight+30;
            if (oheight<=1040)
		           		document.getElementById("content").style.height=oheight+"px";
         }
         */
    },
    /**********************************************************************************************
    * whoIam
    **********************************************************************************************/
    whoIam: function(){
        alert("Noticias.js");
    }
};

