// SPDWB Main JavaScript


var loadingMsg = '<img class="ajaxLoader" src="/media/olgwc/images/jan/jan_ajaxloader_whiteblue_32x32.gif" />';


function launchOverlay( objLink, width, height )
{
	if ( objLink.href )
	{
		tb_show( "",
			objLink.href + "&width=" + width + "&height=" + height + "&TB_iframe=true",
			false
			);
	}
	return false;
}


$(function(){
	var origWidth = "";
	$("#nav a[class!=on]")
		.hover(
			function(){
				origWidth = $(this).css("width");
				$(this)
					.css("background-position","0 0")
					.css("color","#FFF")
					.stop()
					.animate({
						width: "144px"
					},200).children("span").show();
			},
			function(){
				$(this)
					.stop()
					.animate({
						width: origWidth
					},200)
					.css("background-position","158px 0")
					.css("color","#DE7026")
					.children("span").hide();
			}
		);
});


function iFrameHeight(objFrame)
{
  if (objFrame) {
    //find the height of the internal page
    var contentHeight = objFrame.contentWindow.document.body.scrollHeight;
    objFrame.height = contentHeight;
  }
}

$(document).ready(function() 
{
  $('div.secretWeapon:eq(0)> div').hide();
  $('div.secretWeapon:eq(0)> h3').click(function() 
{
 $(this).next().slideToggle('fast');
  });
});