var uploadifyPath="scripts/jquery/uploadify/";

function getImageUplodifySettings(imagePath,completeFunc,readyFunc){
	return {
	    'buttonImg' : uploadifyPath+'browse.gif',
	    'expressInstall': uploadifyPath+'expressInstall.swf',
	    'uploader'  : uploadifyPath+'uploadify.allglyphs.swf',
	    'script'    : uploadifyPath+'uploadify.asp',
	    'cancelImg' : uploadifyPath+'cancel.png',
	    'fileExt'   : '*.bmp;*.jpg;*.gif;*.jpeg;*.png',
	    'fileDesc'  : 'Image Files (*.bmp,*.jpg,*.gif,*.jpeg,*.png)',
	    'folder'    : imagePath,
	    'sizeLimit' : 512000,
	    'multi'     : false,
	    'auto'      : true,
	    'onError'   : function(e,ID,fileObj,errorObj){
	    	alert(errorObj.type + ' Error: ' + errorObj.info);
	    	alert("Supported file types png, jpg, jpeg, gif, bmp. Maximum image file size 500KB.");
	    },
	    'onComplete': completeFunc,
	    'onSWFReady': readyFunc
    }
}

