<!--
	jQuery(function($) {
		$(".AutoScrollArticleDiv").jCarouselLite({
			vertical: true,
			hoverPause:true,
			visible: 4,
			auto:4000,
			speed:2000
		});
	});
	
	jQuery(document).ready(function($){
		$("#sliderprods").easySlider();
		
		$('.trainingvideo a, .trainingvideo img, .videolink_btm a').click(function(e){
			e.preventDefault();
			$('body').append('<div id="omg_flash_video"></div><div id="omg_overlay"></div>');
			var ebw = $('#omg_flash_video').outerWidth() / 2;
			var ebh = $('#omg_flash_video').outerHeight() / 2;
			var ww = $(window).width() / 2;
			var wh = $(window).height() / 2;
			var ebwww = ww - ebw;
			var ebhwh = (wh - ebh) + ($(window).scrollTop());
			$('#omg_flash_video').css('top', ebhwh + 'px').css('left', ebwww + 'px');
			$('#omg_overlay').fadeTo(500, 0.75, function(){
				$('#omg_flash_video').html('<embed src="skins/OMGskin/media/flvPlayer.swf" quality="high" bgcolor="#808080" width="329" height="286" name="flvPlayer" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed>').fadeTo(250, 1);
			});
		});
		
		$('#omg_overlay').live('click', function(e){
			e.preventDefault();
			$('#omg_flash_video').fadeTo(100, 0, function(){
					$(this).remove();
					$('#omg_overlay').fadeTo(250, 0, function(){
						$(this).remove();
					});
			});
		});	

		$('#footer_content > ul > li > a').click(function(e){
			e.preventDefault();
			var tdiv = $(this).attr('rel');
			$('#' + tdiv).slideToggle(250, function(){
				var postogo = $('#page_bottom').position().top;
				if(postogo > 0) {
					$('html, body').animate({scrollTop: postogo},500);
				}
			}).siblings('.slider_links').hide();
		});
		
		$('#flash_container').fadeTo(0, 0.10);

		$('#banner_visible > img:first-child').addClass('active');
		$('.imgdescription p').text($('#banner_visible > img.active').attr('alt'));
		
		var bannertext = $('#banner_visible > img.active').attr('alt');
		if (bannertext == '' || bannertext.length <= 1 ) {
			$('.imgdescription').addClass('displaynone');
		}else {
			$('.imgdescription').removeClass('displaynone');
			$('.imgdescription p').text(bannertext);
		}	
		
		
		
		$('.slideshow_rightarrow a').click(function(e){
			e.preventDefault();
			var title;
			if($('#banner_visible img.active').is(':last-child')) {
				$('#banner_visible img:first-child').show().addClass('active').siblings('img').removeClass('active').hide();
			} else {
				$('#banner_visible img.active').next().show().addClass('active').siblings('img').removeClass('active').hide();
			}
			title = $('#banner_visible > img.active').attr('alt');
			
			
			if (title == '' || title.length <= 1 ) {
				$('.imgdescription').addClass('displaynone');
			}else {
				$('.imgdescription').removeClass('displaynone');
				$('.imgdescription p').text(title);
			}			
		});

		$('.slideshow_leftarrow a').click(function(e){
			e.preventDefault();
			var title;
			if($('#banner_visible img.active').is(':first-child')) {
				$('#banner_visible img:last-child').show().addClass('active').siblings('img').removeClass('active').hide();
			} else {
				$('#banner_visible img.active').prev().show().addClass('active').siblings('img').removeClass('active').hide();
			}
			title = $('#banner_visible > img.active').attr('alt');
			
			if (title == '' || title.length <= 1 ) {
				$('.imgdescription').addClass('displaynone');
			}else {
				$('.imgdescription').removeClass('displaynone');
				$('.imgdescription p').text(title);
			}
		});

		var rotator = setInterval(function(){
			$('.slideshow_rightarrow a').stop().trigger('click');
		}, 10000);

		$('#bodysection').hover(function(){
			clearInterval(rotator);
		}, function(){
			rotator = setInterval(function(){
				$('.slideshow_rightarrow a').stop().trigger('click');
				
				var bannertext = $('#banner_visible > img.active').attr('alt');
				if (bannertext == '' || bannertext.length <= 1 ) {
					$('.imgdescription').addClass('displaynone');
				}else {
					$('.imgdescription').removeClass('displaynone');
				}
				
			}, 10000);
		});
		
		
		$('#bodyright_content > ul > li > a').stop().hover(function(){
			$(this).animate({
				paddingLeft: '25px'
			}, 100, function(){
				$(this).animate({
					paddingLeft: '10px'
				}, 150)
			});
		}, function(){
			$(this).stop().animate({
				paddingLeft: '0'
			}, 250, function(){
				$(this).css('paddingLeft', '0');
			});
		});
		
		
		
	});
	


	
	//-->

