Shadowbox.init({
	players: ["html","img"],
	language: sShadowboxLang
});


$(document).ready(function() {

	$('div.toggleBlock').hide();
	$('a.toggleOnLink').show();

	iItems = parseInt($('div.toggleBlock').size());
	if (iItems > 0)
	{
		$('a#topLink').hide();
	}

	$('a.toggleOnLink').click(function() {
		$('div.toggleBlock').fadeIn();
		$('a.toggleOnLink').fadeOut();
		$('a#topLink').show();
		return false;
	});
	$('a#serviceboxLink').click(function() {
		sServiceboxContent = $('div#serviceboxContent').html();
		Shadowbox.open({
			content:    '<div id="serviceboxOverlay">'+sServiceboxContent+'</div>',
			player:     "html",
			title:      "Servicebox",
			height:     450,
			width:      550
		});
		return false;
	});

	$('.textinput').focus(function() {
		$(this).addClass('hover');
	});
	$('.textinput').blur(function() {
		$(this).removeClass('hover');
	});


/*	$('.tooltip').tooltip(
	{
		showURL: false,
		delay: 0,
		fade: 250,
		track: true
	});*/
});
