 jQuery(document).ready(function($) {
if(navigator.platform == 'iPad' || navigator.platform == 'iPhone' || navigator.platform == 'iPod')
{
$("#toolkit-contain").css("position", "static");
};
});

$(document).ready(function() {

    $('#toggle-posts').cycle({
        fx: 'fade',
        speed: 0800,
       timeout: 0,
        pager: 'ul#post-nav',
        pagerAnchorBuilder: function(idx, slide) {
            // return sel string for existing anchor
            return 'ul#post-nav li:eq(' + (idx) + ') a';
        }
    });
	});
	
	
	$(document).ready(function() {

Cufon.replace('h1, ul.sidenav li a, .col2 h3, h2');
	});


$(function () {
$('.bubbleInfo').each(function () {
var distance = 30;
var time = 200;
var hideDelay = 500;

var hideDelayTimer = null;

var beingShown = false;
var shown = false;
var trigger = $('.trigger', this);
var info = $('.popup', this).css('opacity', 0);


$([trigger.get(0), info.get(0)]).mouseover(function () {
if (hideDelayTimer) clearTimeout(hideDelayTimer);
if (beingShown || shown) {
	// don't trigger the animation again
	return;
} else {
	// reset position of info box
	beingShown = true;

	info.css({
		top: -195,
		left: -440,
		display: 'block'
	}).animate({
		top: '-=' + distance + 'px',
		opacity: 1
	}, time, 'swing', function() {
		beingShown = false;
		shown = true;
	});
}

return false;
}).mouseout(function () {
if (hideDelayTimer) clearTimeout(hideDelayTimer);
hideDelayTimer = setTimeout(function () {
	hideDelayTimer = null;
	info.animate({
		left: '-=' + distance + 'px',
		opacity: 0
	}, time, 'swing', function () {
		shown = false;
		info.css('display', 'none');
	});

}, hideDelay);

return false;
});
});
}); 




