/**
 * jquery_osd_api.js - JavaScript Functions.
 * @package jquery_osd_api.js
 * @copyright 2005 - 2009 OSD
 * Functions for jQuery interface.
*/

if (typeof jQuery != 'undefined') { 
    $(document).ready(function() { 
        if ($("#slideshow").length > 0) { 
            $('ul#slideshow').innerfade({ 
                speed: 1500,
                timeout: 6000,
                type: 'sequence',
                containerheight: '240px'
            });
            $('.fade').innerfade({ 
                speed: 1000,
                timeout: 6000,
                type: 'random_start',
                containerheight: '240px'
            });
        }
        if ($(".zoom_map").length > 0) { 
            $(".zoom_map").fancybox({'frameHeight':400, 'frameWidth':700, 'printIcon': true});
        }
        if ($(".zoom_pdf").length > 0) { 
            $(".zoom_pdf").fancybox({'printIcon': true});
        }
        if (($.os.name == "mac") && ($.browser.name == "firefox")) { 
        	$(".menu a").css("padding", "12px 15px 2px 15px");
        }
        if ($.os.name == "mac") { 
        	$("#bq_phone_num").css("font-size", "37px");
        }
    });
}
//delay map display by 200 milliseconds until iframe renders
function initDelay() { 
	setTimeout("initialize()",200);
}