jQuery(document).ready(function(){$("body").append("
")});function SmartUnLoading(){$(".divMessageBox").fadeOut(300,function(){$(this).remove()});$(".LoadingBoxContainer").fadeOut(300,function(){$(this).remove()})}var ExistMsg=0,SmartMSGboxCount=0,PrevTop=0;$.SmartMessageBox=function(a,j){var g,b;a=$.extend({title:"",content:"",NormalButton:undefined,ActiveButton:undefined,buttons:undefined,input:undefined,inputValue:undefined,placeholder:"",options:undefined},a);SmartMSGboxCount=SmartMSGboxCount+1;if(ExistMsg==0){ExistMsg=1;g="
";$("body").append(g);if(isIE8orlower()==1){$("#MsgBoxBack").addClass("MessageIE")}}var c="";var h=0;if(a.input!=undefined){h=1;a.input=a.input.toLowerCase();switch(a.input){case"text":a.inputValue=$.type(a.inputValue)==="string"?a.inputValue.replace(/'/g,"'"):a.inputValue;c="

";break;case"password":c="

";break;case"select":if(a.options==undefined){alert("For this type of input, the options parameter is required.")}else{c=""}break;default:alert("That type of input is not handled yet")}}b="
";b+="
";b+=""+a.title+"";b+="

"+a.content+"

";b+=c;b+="
";if(a.buttons==undefined){a.buttons="[Accept]"}a.buttons=$.trim(a.buttons);a.buttons=a.buttons.split("");var f="";var d=0;if(a.NormalButton==undefined){a.NormalButton="#232323"}if(a.ActiveButton==undefined){a.ActiveButton="#ed145b"}for(var e=0;e<=a.buttons.length-1;e++){if(a.buttons[e]=="["){f=""}else{if(a.buttons[e]=="]"){d=d+1;f="";b+=f}else{f+=a.buttons[e]}}}b+="
";if(SmartMSGboxCount>1){$(".MessageBoxContainer").hide().css("z-index",99999)}$(".divMessageBox").append(b);if(h==1){$("#txt"+SmartMSGboxCount).focus()}$(".botTempo").hover(function(){var i=$(this).attr("id")},function(){var i=$(this).attr("id")});$(".botTempo").click(function(){var n=$(this).attr("id");var m=n.substr(n.indexOf("-")+1);var k=$.trim($(this).text());if(h==1){if(typeof j=="function"){var l=m.replace("Msg","");var i=$("#txt"+l).val();if(j){j(k,i)}}}else{if(typeof j=="function"){if(j){j(k)}}}$("#"+m).addClass("animated fadeOut fast");SmartMSGboxCount=SmartMSGboxCount-1;if(SmartMSGboxCount==0){$("#MsgBoxBack").removeClass("fadeIn").addClass("fadeOut").delay(300).queue(function(){ExistMsg=0;$(this).remove()})}})};var SmallBoxes=0,SmallCount=0,SmallBoxesAnchos=0;$.smallBox=function(b,g){var d,e;b=$.extend({title:"",content:"",icon:undefined,iconSmall:undefined,color:undefined,timeout:undefined,colortime:1500,colors:undefined},b);SmallBoxes=SmallBoxes+1;d="";var c="",a="smallbox"+SmallBoxes;if(b.iconSmall==undefined){c="
"}else{c="
"}if(b.icon==undefined){d="
"+b.title+"

"+b.content+"

"+c+"
"}else{d="
"+b.title+"

"+b.content+"

"+c+"
"}if(SmallBoxes==1){$("#divSmallBoxes").append(d);SmallBoxesAnchos=$("#smallbox"+SmallBoxes).height()+40}else{var f=$(".SmallBox").size();if(f==0){$("#divSmallBoxes").append(d);SmallBoxesAnchos=$("#smallbox"+SmallBoxes).height()+40}else{$("#divSmallBoxes").append(d);$("#smallbox"+SmallBoxes).css("top",SmallBoxesAnchos);SmallBoxesAnchos=SmallBoxesAnchos+$("#smallbox"+SmallBoxes).height()+20;$(".SmallBox").each(function(j){if(j==0){$(this).css("top",20);heightPrev=$(this).height()+40;SmallBoxesAnchos=$(this).height()+40}else{$(this).css("top",heightPrev);heightPrev=heightPrev+$(this).height()+20;SmallBoxesAnchos=SmallBoxesAnchos+$(this).height()+20}})}}var i=$("#smallbox"+SmallBoxes);if(b.color==undefined){i.css("background-color","#004d60")}else{i.css("background-color",b.color)}var h;if(b.colors!=undefined&&b.colors.length>0){i.attr("colorcount","0");h=setInterval(function(){var j=i.attr("colorcount");i.animate({backgroundColor:b.colors[j].color,});if(j-1){if(a>=8){b="You're using a recent copy of Windows Internet Explorer."}else{b="You should upgrade your copy of Windows Internet Explorer."}}alert(b)}function isIE8orlower(){var b="0";var a=getInternetExplorerVersion();if(a>-1){if(a>=9){b=0}else{b=1}}return b};