			$(function(){

				$.each($('.citation .cit_abstr'), function(){
					$(this).find('a.sus_continue').wrap('<p></p>');
				});
				
				$('#case .citation').each(function() { 
					if($(this).find('h3').height() >50){
						$(this).find('.cit_abstr').css('height','123px');
					}
					else if($(this).find('h3').height() > 17){
						$(this).find('div.cit_abstr').css('height','135px');
					}
					else{
						$(this).find('div.cit_abstr').css('height','150px');
					}
				});

				$('#case div.citation .cit_abstr br').remove();

				$("#jmp_links span").click(function(){
					if($(this).hasClass("selected")) return false;
					$("#jmp_links span").removeClass("selected");
					var index =$(this).addClass("selected").prevAll("span").size();
					$("#case div.citation:visible").fadeOut(500,function(){
						$("#case div.citation:eq(" + index + ")").fadeIn();	
						if($("#case div.citation:eq(" + index + ")").find('h3').height() > 50){
							$("#case div.citation:eq(" + index + ")").find('div.cit_abstr').css('height','123px');
						}
						else if($("#case div.citation:eq(" + index + ")").find('h3').height() > 17){
							$("#case div.citation:eq(" + index + ")").find('div.cit_abstr').css('height','135px');
						}
						else{
							$("#case div.citation:eq(" + index + ")").find('div.cit_abstr').css('height','150px');
						}
					});		
					return false;			
				});
				
				$("img.chart_icon").hover( 
				 function () {
					$(this).next().show();
					},
				 function () {
					 $(this).next().hide();
				 
				 });
				 
				 $("div.create_pdf").click(function(){
					var l = window.screenLeft + 200, 
					    t = window.screenTop+100,
					    p = "toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=180,height=500,left="+l+",top="+t;
			      		var newwind = window.open("/gx/en/sustainability/download.html", "PDF", p);
					newwind.focus();
				});
				 
				
				$("a img.cite_icon").hover( 
					 function () {
						$(this).next().show();
						},
						function () {
					    $(this).next().hide();
						});
							
				var timer = setInterval(loop,20000);
				$("a img.cite_icon").parent("a").addClass("popup_icon");
				
				$("#right_slide").click(function(){
					if($("#did_you_know div.tips:visible").next("div.tips").length > 0 ){
						$("#did_you_know div.tips:visible").fadeOut(600,function(){
							$(this).next().fadeIn(1000);
						});
					}
				});
				
				$("#left_slide").click(function(){
					if($("#did_you_know div.tips:visible").prev("div.tips").length > 0 ){
						$("#did_you_know div.tips:visible").fadeOut(600,function(){
							$(this).prev().fadeIn(1000);
						});
					}
				});
				
				
				
			});
			
			function loop(){				
				$("#did_you_know div.tips:visible").fadeOut(3000, function(){
					if ($(this).next("div.tips").length > 0) {
						$(this).next().fadeIn(2000);
					}
					else
						$("#did_you_know div.tips:first").fadeIn();
				});
			}	
