/* Javascript Support Functions for HTML Dialog */var targetURL="";var timer = null;function delayer(){	if(targetURL!="")		parent.window.location = targetURL;}function constructDialog(title, message, target, noTimer, postmethod, button1, button2){	 	// store the target	targetURL = target;		// setup the default timer	if(noTimer === undefined)		timer = setTimeout('delayer()', 15000);		var dialogContent ='<div id="dialogBox" class="ModalDialog" style="top: 100px">';      dialogContent +='<div class="close-button">';      dialogContent +='<a onclick="return closeDialog();" href="javascript:{}"><img alt="Close" src="http://uindy.edu/js/ubox/close.png" border=0/></a>';      dialogContent +='</div>';                 dialogContent +='<h1>'+title+'</h1>';	dialogContent +='<div class="dialog-content">'+message+'</div>';	dialogContent +='<br/>';		if(postmethod === undefined)      	dialogContent +='<form method="get" action="'+targetURL+'" name="ModalDeleteForm">';	else 		dialogContent +='<form method="'+postmethod+'" action="'+targetURL+'" name="ModalDeleteForm">';					if(button1 === undefined)		dialogContent +='<button class="dialog-submit" onclick="closeDialog();" type="button">Cancel</button>';	else		dialogContent +='<button class="dialog-submit" onclick="closeDialog();" type="button">'+button1+'</button>';		if(button2 === undefined)		dialogContent +='<button class="dialog-submit" type="submit">Continue to Website</button>';	else 		dialogContent +='<button class="dialog-submit" type="submit">'+button2+'</button>';	      dialogContent +='</form>';      dialogContent +='</div>';  	               	// create & show the back drop	// determine if this IS IE or not	var OP = (navigator.userAgent.indexOf('Opera') != -1) ? true : false;	var IE = (navigator.userAgent.indexOf('MSIE') != -1 && !OP) ? true : false;	var minHeight = ((!IE ? document.body.clientHeight : document.documentElement.clientHeight) + document.body.style.marginBottom) + 'px';		$("<div id='backdrop' class='ModalDialogBackdrop' style=' height: 200%; min-height: "+minHeight+"px; filter:alpha(opacity=75);  opacity: 0.75; -moz-opacity:0.75;' onClick='closeDialog()'/>").appendTo("body");	$("#backdrop").show("fast");		$('<div id="DialogContainer" ></div>').appendTo("body");		// insert html content ot the dialog box	centerThis('#DialogContainer');	$('#DialogContainer').html(dialogContent);	$('#DialogContainer').show("fast");	}function closeDialog(){	// delete the backdrop (created on the fly		$("#backdrop").remove();		// delete the dialog content	$('#dialogBox').remove();		if(timer!=null)		clearTimeout(timer);			return false;}// this is a fixed redirect functionfunction confirmExit(url){	constructDialog("Leaving UIndy Webspace", "All data and information provided on this site is for informational purposes only. The University of Indianapolis makes no representations as to accuracy, completeness, timeliness, suitability, or validity of any information on this site and will not be liable for any errors, omissions, or delays in this information or any losses, injuries, or damages arising from its display or use. All information is provided on an as-is basis.", url);	}	function centerThis(div)  {	var winH = $(window).height();		var winW = $(window).width();		//alert("Height: "+winH+" Width:"+winW);	var centerDiv = $(div);	var iframe =  $('#frame');		//alert("Height: "+iframe.height()+" Width:"+iframe.width());	var top = (winH-iframe.height())/2;	if(top<0)		top=5;			centerDiv.css('top', top);	centerDiv.css('left', (winW/2)-(iframe.width()/2)-25); }