$(function(){});if(!Larosa){var Larosa={};}
Larosa.global=function(){return{positionFooter:function(){placeFooter();$(window).scroll(placeFooter).resize(placeFooter);function placeFooter(){var docHeight=$(document.body).height()-$("#sticky-footer-push").height();if(docHeight<$(window).height()){var diff=$(window).height()-docHeight;if(!$("#sticky-footer-push").length>0){$("#footer").before('<div id="sticky-footer-push"></div>');}
$("#sticky-footer-push").height(diff);}}},configureForIe:function(){if($.browser.msie){$("button").click(function(){this.blur();});}},applyQTipToTitles:function(title){var attr="a[title]";if(title){attr="a[title^='"+title+"']";}
if($(attr).val()==""){return;}
$(attr).qtip({style:{name:'cream',tip:true,width:{max:400,min:0},border:{radius:2}},position:{corner:{target:'topLeft',tooltip:'bottomRight'}}});},newWindow:function(path){var newWindowName=""+new Date().getTime();var newBrowserWindow=window.open(path,newWindowName,'toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=1,width=800,height=600');return false;},commonElementHeight:function(){var height=0;for(var i=0;i<arguments.length;i++){height=Math.max(height,$(arguments[i]).height());}
for(var i=0;i<arguments.length;i++){$(arguments[i]).height(height);}},commonElementHeight2:function(element){var height=0;$(element).each(function(){height=Math.max(height,$(this).height());});$(element).each(function(){$(this).height(height);});},modalDialogInit:function(element,width,height){$(element).addClass("iframe");$(element).fancybox({'width':width,'height':height,'hideOnOverlayClick':false,'hideOnContentClick':false,'enableEscapeButton':true,'padding':0,'overlayColor':'#111','overlayOpacity':0.7,'autoscale':false,'titleShow':false,'autoDimensions':false,'showCloseButton':false});},pageInitFront:function(){this.applyQTipToTitles();this.positionFooter();this.configureForIe();}}}();
