//CONFIG SECTION
//check to see if site root was initialized by php(refer to /includes/header.php for this code)
if ( typeof( variable ) == 'undefined' || siteRoot == "") 
{
	var siteRoot = "./";
}

/* create flash elements via swfObject*/
function initFlashElements()
{
	var flashvars = {};
	var params = {
			menu: "false",
			wmode: "transparent",
			base: siteRoot+"flash/"
		};
	var attributes = false;
	var expressInstall = siteRoot+"flash/expressInstall.swf";
	
	if($("#flashBox").length)
	{
		swfobject.embedSWF(siteRoot+"flash/homeFlash.swf", "flashBox", "722", "240", "8.0.0", expressInstall, flashvars, params, attributes);
	}
}

/* a function to remove inline styles*/
function removeInlineStyles(myObject)
{
	myObject.removeAttr("style");
}

//for error reporting on ajax functions
$(document).ajaxError(function(){
    if (window.console && window.console.error) {
        console.error(arguments);
	}
});


$(document).ready(function() 
{
// swfObject for all flash elements
	initFlashElements();
	
// PNG Fix
	//$(document).pngFix();

//FORMS CODE IS IN ITS OWN JS FILE
	
});

//jquery cycle

$(function() {
    $('#clientBox').cycle();
    
});
