var PostNewItem   = new Object();
//=====================================================//
//** extending the master Util class
var Util = $.extend(Util, {

});

//=====================================================//
var Validate = $.extend(Validate, {

});

var Media = {
    setUploadifyForEvaluationSubmit: function(sessionID) {
    	$('#fld_fileName').uploadify({
    		  'uploader'       : '/jss/jquery/uploadify/uploadify.swf'
    		, 'script'         : '/index.php'
    		, 'fileDataName'   : 'fld_fileName'
    		, 'cancelImg'      : '/jss/jquery/uploadify/cancel.png'
    		, 'queueID'        : 'fileUploadProgress'
    		, 'multi'          : false
    		, 'buttonImg'      : '/images/btn_browse.png'
            , 'width'          : '47'
            , 'height'         : '18'
            , 'auto'           : true
    		, 'scriptData'     : {
    		                       '_room'       :'media'
    		                      ,'_spAction'   :'uploadEvaluationQuickSubmitTemp'
    		                      ,'recordType'  :'attachment'
    		                      ,'showHTML'    :'0'
    		                      ,'sessionIDCP' :sessionID
    		                      ,'successText' :'success'
    		                     }
    		, 'onSelect': function() {
                Util.showProgressInd();
                $('#evaluationForm #fileUploadProgress').show();
    		}
    		, 'onComplete': function(e, queueID, fileObj, response) {
                $('#evaluationForm #fileUploadProgress').hide();
                $('#evaluationForm #fileNameDiv').html(response).show();
                Util.hideProgressInd();
    		}
    	});
    }
}
