$(document).ready(function ()
{
	if( $("ul#news_ticker").liScroll != null )
	{
		$("ul#news_ticker").liScroll({travelocity: 0.04}); 
	}
	
	//if( $(".anchorheading").add(".anchorheading_avaya").corner != null )
	//{
	//	$(".anchorheading").add(".anchorheading_avaya").corner("round tr 30px");
	//}
	// $(".quotecontainer").corner();
	
	if( $.localScroll != null )
	{
		$.localScroll();
	}
	
	if ($('#cyclediv').cycle != null)
	{
		$('#cyclediv').cycle(
		{ 
			fx:     'scrollUp', 
			timeout: 5000, 
			delay:  -3000,
			pause:	1
		});
	}
	
	if ($('#cyclehorizdiv').cycle != null)
	{
		$('#cyclehorizdiv').cycle(
		{ 
			fx		: 'scrollUp', 
			timeout	: 5000, 
			delay	: -3000,
			pause	: 1
		});

	}
	
	if( $('a[rel="zoom"]').fancybox != null )
	{
		$('a[rel="zoom"]').fancybox({ 'zoomOpacity' : true, 'overlayShow' : false, 'zoomSpeedIn' : 500, 'zoomSpeedOut' : 500, 'imageScale':true });
	}

	if ($('#tabs').tabs != null)
	{
		$("#tabs").tabs();
	}
	
	if ($('#tabs1').tabs != null)
	{
		$("#tabs1").tabs();
	}

	if ($('#tabs2').tabs != null)
	{
		$("#tabs2").tabs();
	}
	
	if( $('a.externalcontent').fancybox != null )
	{
		$("a.externalcontent").fancybox({'frameWidth':760,'frameHeight':500,'hideOnContentClick': false, 'zoomOpacity' : true, 'overlayShow' : true, 'zoomSpeedIn' : 500, 'zoomSpeedOut' : 500, 'imageScale':true });
	}
	
	if( $('a.popup_quote').fancybox != null )
	{
		$("a.popup_quote").fancybox({'frameWidth':760,'hideOnContentClick': false, 'zoomOpacity' : true, 'overlayShow' : true, 'zoomSpeedIn' : 500, 'zoomSpeedOut' : 500, 'imageScale':true });
	}

	
	$( ".wallboardcontent" ).fadeIn(1500);
	
	$(".avaya_registration_required").click(function(event)
	{
		$("#requestedfile").val($(this).attr("href"));
		event.preventDefault();
		document.getElementById("fileform").submit();
	});
});

window.onload = function ()
{
	window.setTimeout( function()
	{
		$( ".hidden_text_left" ).animate({"left": "-=50px"}, 1500, "linear");
		$( ".hidden_text_right" ).animate({"right": "-=50px"}, 1500, "linear");
		$( ".quotesource" ).fadeIn(1500);
		$( ".show_text" ).fadeIn(1500);
	}, 1500 );

};