tilt.attachEvent(document, "contentreceived", function(){
	try {
		$('#slogans').cycle({ 
			timeout:  6000, 
			speed:  2000
		});
	}catch(e){alert(e)}
	
	function fadeElement(selector, speed) {
		var theSelector, theSpeed;
		theSelector = selector;
		theSpeed = speed;
		fadeIn();
		
		function fadeOut() {
			$(theSelector).fadeOut(theSpeed, fadeIn);
		}
		function fadeIn() {
			$(theSelector).fadeIn(theSpeed, fadeOut);
		}
	}
	function replaceWithFlash(img)
	{
		var width = img.currentStyle ? img.currentStyle.width.replace(/px/, "") : img.width;
		var height = img.currentStyle ? img.currentStyle.height.replace(/px/, "") : img.height;
		var src = img.src;
		if (width && height && src) {

			var movie = src.replace(/\.swf\..+/, ".swf");
			var version = 4;
			var useNetscapePlugins = navigator.plugins && navigator.mimeTypes.length;
			
			if (detectFlash())
			{
				var parent = img.parentNode;
				if (parent.nodeName.toUpperCase() == "A") {
					parent = parent.parentNode;
				}
				parent.innerHTML = createMovieHtml();
			}
			
		}

		function createMovieHtml()
		{
			var sizeAttributes = "width=\"" + width + "\" height=\"" + height + "\"";
			return useNetscapePlugins ?
				"<embed type=\"application/x-shockwave-flash\" src=\"" + movie + "\" " + sizeAttributes + "></embed>"
				:
				"<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" " + sizeAttributes + "><param name=\"movie\" value=\"" + movie + "\" /></object>";
		}
		
		function detectFlash()
		{
			return getFlashVersion() >= version;

			function getFlashVersion()
			{
				if (useNetscapePlugins)
				{
					var plugin = navigator.plugins["Shockwave Flash"];
					if(plugin && plugin.description)
					{
						var description = plugin.description;
   						return description.charAt(description.indexOf('.')-1);
					}
				} 
				else
				{
					var version = 0;
					for(var i = 4; i >= 3; i--)
					{
						var testObject;
						try
						{
							testObject = new ActiveXObject("ShockwaveFlash.ShockwaveFlash." +  i);
						}
						catch(e)
						{
							continue;
						}
						return i;
   					}
				}
				return 0;
			}
		}
	}
});
