function fileQueued(file){}
function fileQueueError(file,errorCode,message){$("div#alert-loading-holder").stop(true,true).fadeOut("normal");$("div#alert-holder").html(tips[1]);$("div#alert-holder").stop(true,true).fadeIn("normal").fadeTo(2000,1).fadeOut("normal");}
function fileDialogComplete(numFilesSelected,numFilesQueued){this.startUpload();}
function uploadStart(file){$("div#alert-loading-holder").stop(true,true).fadeIn("normal");return true;}
function uploadProgress(file,bytesLoaded,bytesTotal){}
function uploadSuccess(file,serverData){jsonData=eval("("+serverData+")");if(jsonData.items[0]){$("#custom_brand_image div input[name=brand_image]").remove();var brand_img=$("#custom_brand_image img");brand_img.css({"margin":"0px","width":"auto"}).hide();brand_img.attr("src","http://demo.firerift.com/upload/brand/"+jsonData.items[0].brand_image).load(function(){if(parseInt(this.height)>58){$(this).css({"margin-top":"-"+Math.round((parseInt(this.height)-58)/2)+"px"});}
if(parseInt(this.height)>=400){$(this).css({"margin-left":"-"+Math.round((parseInt(this.width)-400)/2)+"px"}).show();}else{$(this).css({"width":"400px"}).show();}});$("#custom_brand_image").show();$("div#alert-loading-holder").stop(true,true).fadeOut("normal");$("div#alert-holder").html(tips[2]);$("div#alert-holder em:first").text("1 item");$("div#alert-holder em:last").text("Custom Brand Image");$("div#alert-holder").fadeIn("normal").fadeTo(3000,1).fadeOut("normal");$("div#dropdown-holder").hide("slide",{direction:"up"},500);}}
function uploadError(file,errorCode,message){if(errorCode!="-240"){$("div#alert-loading-holder").stop(true,true).fadeOut("normal");$("div#alert-holder").html(tips[1]);$("div#alert-holder").stop(true,true).fadeIn("normal").fadeTo(2000,1).fadeOut("normal");}}
function uploadComplete(file){this.startUpload();}
function queueComplete(numFilesUploaded){}
