/* /sites/CSectionHealing/_resources/js/global.js*/ 
/* 
CSectionHealing - global.js
*/

// IE6 flickering
try { document.execCommand("BackgroundImageCache", false, true); } catch (err) { }

$j(document).ready(function() {
	// Change all a.video tags to swf video player objects
	insertVideo();

	//tb_init('.print-email', 'a.thickbox');
	standard_email_tb_init('.print-email a.email');
});

$j(function($) {
	
//add class "even" to every other product list item for proper wrapping
	$('body#information-kit.signup li:even').addClass('even');
	//add class "even" to every other product list item for proper wrapping
	$j('table tbody tr:odd').addClass('odd');



});// document ready

var insertVideo = function() {
	$j("a.video").each(function(i) {
		var $this = $j(this);
		var params = $this.attr("class").split(" ");

		// params[1] = height & params[2] = width
		var flashVars = {
			stream: $this.attr("href")
		};
		var objectVars = {
			quality: "high",
			bgcolor: "#ffffff"
		};

		// provide sane defaults if no size parameters are provided.
		var height = (1 in params) ? params[1] : 272;
		var width = (2 in params) ? params[2] : 330;
		swfobject.embedSWF("~/media/Files/CSectionHealing/TitaniumS_400x300.swf", $this.attr("id"), width, height, "8", undefined, flashVars, objectVars, undefined);
	});
};

function TrackPrint(obj) {
	var s = s_gi(s_account);
	s.tl(obj, "o", "Print this page");
}



