function meerkat(options){this.settings={showMeerkatOnLoad:'true',close:'none',dontShow:'.dont-show',dontShowExpire:0,removeCookie:'none',meerkatPosition:'bottom',animation:'fade',animationSpeed:10,height:'100%',background:'#fff'}
if(options){jQuery.extend(this.settings,options);}
var settings=this.settings;var cookieExpiration=settings.dontShowExpire;function createCookie(name,value,days){if(days){var date=new Date();date.setTime(date.getTime()+(days*24*60*60*1000));var expires="; expires="+date.toGMTString();}
else{var expires="";}
document.cookie=name+"="+value+expires+"; path=/";}
function readCookie(name){var nameEQ=name+"=";var ca=document.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' ')c=c.substring(1,c.length);if(c.indexOf(nameEQ)==0)return c.substring(nameEQ.length,c.length);}
return null;}
function eraseCookie(name){createCookie(name,"",-1);}
jQuery(settings.removeCookie).click(function(){eraseCookie('meerkat')});if(readCookie('meerkat')!='dontshow')
{jQuery('html, body').css({'margin':'0','padding':'0','height':'100%'});jQuery('#meerkat').show().wrap('<div id="meerkat-wrap"><div id="meerkat-container">'+'</div></div>');jQuery('#meerkat-wrap').css({'position':'fixed','z-index':'99','width':'100%','height':settings.height}).css(settings.meerkatPosition,"0");jQuery('#meerkat-container').css({'background':settings.background,'height':settings.height});jQuery(settings.close+","+settings.dontShow).css({"cursor":"pointer"});if(jQuery.browser.msie&&jQuery.browser.version<=6){jQuery('html, body').css({'height':'100%','width':'100%','overflow':'hidden'});jQuery('#meerkat-wrap').css({'position':'absolute','bottom':'-1px'});jQuery("body").children().filter(function(index){return jQuery(this).attr("id")!="meerkat-wrap";}).wrapAll('<div id="ie6-content-container">','</div>');jQuery('#ie6-content-container').css({'position':'relative','overflow':'auto','width':'100%','height':'100%'});var element=document.getElementById('ie6-content-container');if((element.clientHeight<element.scrollHeight)&&(settings.height!=100+'%')){jQuery('#meerkat-container').css({'margin-right':'17px'});}
var bodyStyle=document.body.currentStyle;var bodyBgStyles=bodyStyle.backgroundColor+" "+bodyStyle.backgroundImage+" "+bodyStyle.backgroundRepeat+" "+bodyStyle.backgroundAttachment+" "+bodyStyle.backgroundPositionX+" "+bodyStyle.backgroundPositionY;jQuery('body').css({'background-image':'none'});jQuery('#ie6-content-container').css({'background':bodyBgStyles});}
if((settings.showMeerkatOnLoad=="true")&&(settings.animation=="fade")){jQuery('#meerkat-wrap').css("display","block");jQuery(settings.close).click(function(){jQuery("#meerkat-wrap").css("display","none");});jQuery(settings.dontShow).click(function(){createCookie('meerkat','dontshow',cookieExpiration);});}}else{jQuery("#meerkat").hide();}}
jQuery(document).ready(function(){meerkat();});
jQuery(document).ready(function(){
    if (jQuery.browser.msie) {
        jQuery('#flashdiv').html('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="950" height="400"><param name="movie" value="http://www.bbminaqua.com/CMS/wp-content/themes/minaqua/js/minaqua.swf" /><param name="wmode" value="transparent"/></object>');
    } else {
        jQuery('#flashdiv').html('<object type="application/x-shockwave-flash" data="http://www.bbminaqua.com/CMS/wp-content/themes/minaqua/js/minaqua.swf" wmode="transparent" width="950" height="400"></object>');
    }
});