var VideoList = new function() {this.location = "modules/video_list/VideoList.ajax.php"; this.searchVideoItems = function(keywords, tags, p_categoryID, pageNo){var arrParams = [keywords, tags, p_categoryID, pageNo].join( String.fromCharCode( 3 ) );var data = "lang=default&loc="+this.location+"&met=searchVideoItems¶ms="+arrParams;$.ajax({type: "POST", url: "index.php?ajax=invoke",contentType: "application/x-www-form-urlencoded;charset=utf-8",data: data,async: true,cache: false,success: function(data, statusText, jqXHR){if(typeof VideoList_callback_searchVideoItems == "function"){ VideoList_callback_searchVideoItems( { returnVal:$.trim(data), success:true, status:jqXHR.status, statusText:statusText} );}},error: function( jqXHR, statusText, thrownError ){if(typeof VideoList_callback_searchVideoItems == "function"){ VideoList_callback_searchVideoItems( {returnVal:null, success:false, status:jqXHR.status, statusText:statusText} );}}});} this.getVideoItems = function(p_categoryID, pageNo){var arrParams = [p_categoryID, pageNo].join( String.fromCharCode( 3 ) );var data = "lang=default&loc="+this.location+"&met=getVideoItems¶ms="+arrParams;$.ajax({type: "POST", url: "index.php?ajax=invoke",contentType: "application/x-www-form-urlencoded;charset=utf-8",data: data,async: true,cache: false,success: function(data, statusText, jqXHR){if(typeof VideoList_callback_getVideoItems == "function"){ VideoList_callback_getVideoItems( { returnVal:$.trim(data), success:true, status:jqXHR.status, statusText:statusText} );}},error: function( jqXHR, statusText, thrownError ){if(typeof VideoList_callback_getVideoItems == "function"){ VideoList_callback_getVideoItems( {returnVal:null, success:false, status:jqXHR.status, statusText:statusText} );}}});}}