(function(b){b.fn.fakeloader=function(m){var f=b.extend({timetohide:1200,pos:"fixed",top:"0px",left:"0px",width:"100%",height:"100%",zindex:"999",bgcolor:"#2ecc71",spinner:"spinner7",imagepath:""},m);var l='
';var k='';var j='';var i='';var h='';var g='';var e='';var d=b(this);var c={position:f.pos,width:f.width,height:f.height,top:f.top,left:f.left};d.css(c);d.each(function(){var n=f.spinner;switch(n){case"spinner1":d.html(l);break;case"spinner2":d.html(k);break;case"spinner3":d.html(j);break;case"spinner4":d.html(i);break;case"spinner5":d.html(h);break;case"spinner6":d.html(g);break;case"spinner7":d.html(e);break;default:d.html(l)}if(f.imagepath!=""){d.html('');a()}});settimeout(function(){b(d).fadeout()},f.timetohide);return this.css({backgroundcolor:f.bgcolor,zindex:f.zindex})};function a(){var c=b(window).width();var e=b(window).height();var d=b(".fl").outerwidth();var f=b(".fl").outerheight();b(".fl").css({position:"absolute",left:(c/2)-(d/2),top:(e/2)-(f/2)})}b(window).load(function(){a();b(window).resize(function(){a()})})}(jquery));