﻿/*::::::::::::::::::::::::::::::::::::::::::::
		Physician Associates of Florida
		Copyright © 2010 McMurry
::::::::::::::::::::::::::::::::::::::::::::*/

$(function () {
	//Featured Services
	$('#content .featured-services .service-list').accordion({ autoHeight: false, header: 'h3' });

	$('#marquee .slide').each(function () {
		if ($(this).find('a').length > 0) {
			$(this).css('cursor', 'pointer').click(function () {
				window.location = $(this).find('a').attr('href');
			});
		}
	});
	if ($('#marquee .slide').length > 1) {
		$('#marquee-wrap').prepend('<div class="marquee-pager"></div>');
		$('#marquee').cycle({
			fx: 'fade',
			speed: 200,
			timeout: 6000,
			pager: '.marquee-pager',
			next: null,
			prev: null

		});
	}

	// Our Stories
	var params = {};
	var flashvars = {};
	params.align = "center";
	params.allowscriptaccess = "always";
	params.allowfullscreen = "false";
	params.flashvars = "&file=/ClientResources/FileRepository/Videos/video-immunization.flv&image=/ClientResources/FileRepository/Videos/video-immunization.jpg&backcolor=adbe92&frontcolor=454545&lightcolor=666666&screencolor=666666&bufferlength=5&controlbar=bottom&autostart=false";
	swfobject.embedSWF("/Resources/Common/Flash/player.swf", "video-immunization", "300", "200", "8", "false", flashvars, params);
});
