var VIGET = VIGET || {};
VIGET.fileInputs = function() {
var thisfile = jQuery(this),
fileval = thisfile.val(),
valArray = fileval.split('\\'),
newVal = valArray[valArray.length-1],
button = thisfile.siblings('.button'),
fakeFile = thisfile.siblings('.file-holder');
alert(thisfile);
if(newVal !== '') {
button.text('Photo Chosen');
if(fakeFile.length === 0) {
button.after('<span class="file-holder">' + newVal + '</span>');
} else {
fakeFile.text(newVal);
}
}
};