ip$.handlers = [
 function(){
  //ip$.assignFirstChild("UL","LI");
  //ip$.assignLastChild("UL","LI");
  ip$.externalLinks();
  ie6Fix();
		window.onresize = ie6Fix;
		$('#Video').click(function(){return false});
 }
];

/**
 * @desc Handle IE6 min-height support
 */
function ie6Fix(){
	var isIE6 = $.browser.msie && $.browser.version == "6.0";
	var isSaf = $.browser.safari;
	var innerH = document.body.clientHeight;
	var minH = parseInt($("body").css("min-height"));
	if(!$("#Wrap").length && isIE6){
		$("#Page").wrap("<div id='Wrap'></div>");
	}
	if(isIE6 && innerH > minH){
		$("#Wrap").css({height:'auto'});
	}
	else{
		$("#Wrap").css({height:minH});
	}
	if(isSaf){
		$("#Page").css({top:parseInt($("body").height()/2)+'px'});
	}
}

/// <summary>
///  This function opens a centered popup
/// </summary>

function Popup (URL, Width, Height, Scrollable, Resizable)
{
	try
	{
		var Popup;
		if ((typeof(Width) == "number") && (typeof(Height) == "number"))
		{
			Popup = window.open(URL, "Popup", "width = " + Width + ", height = " + Height + ", top = " + ((screen.height - Height) / 2) + ", left = " + ((screen.width - Width) / 2) + ", resizable = " + (Resizable ? "yes" : "no") + ", scrollbars = " + (Scrollable ? "yes" : "no") + ", status = no");
		}
		else
		{
			Popup = window.open(URL, "Popup");
		}
		Popup.window.focus();
	}
	catch (ExceptionObject)
	{
		alert("Your browser or a piece of software installed on your\ncomputer appears to be blocking popups on this page.\n\nPlease enable popups and refresh this page to continue.");
	}
}
