﻿/* UI scripts */

// Uses http://jQuery.com

// Subscription form tabs - works in combination with CSS

$(document).ready(function() {
	$('table.section-overview td p a').after('<span>&nbsp;</span>');
});

// Compact form fields
$(function(){
    $('.overlabel').overlabel();
});


// Shy back to top links

$(function(){
    $('.con-main .backtotop').each(function(){
			var topoffset = $(this).offset().top;
			var windowheight = $(window).height();
			if(topoffset < windowheight){
				$(this).addClass('shy');
			}
		}
    )
});

function openLink()
{
	var links = document.getElementById('options');
	window.open(links.options[links.selectedIndex].value);
}
