// This script writes in the iframe containing the login to blackboard
// Andrew Harris, TeLaRS Web Team. aharris@unimelb.edu.au
// 2005-03-03
//
// inserted 2005-03-15 to get IE-mac users around the cross domain scripting
// error when Bb tries to break out of the iframe.
var agt = navigator.userAgent.toLowerCase();
// provide this variable in the html to change the instance name
function iframe(instance) {
	if ((agt.indexOf("mac") != -1)&&(agt.indexOf("msie") != -1)) {
		document.write("<a href=\""+instance+"\" >Login to the LMS</a>");
	} else {
		document.write("<iframe src=\""+instance+"\" type=\"text/html\" frameborder=\"0\" height=\"300\" width=\"90%\" scrolling=\"auto\" marginwidth=\"0\" marginheight=\"0\" name=\"login\">");
		document.write("<a href=\""+instance+"\" >Login to the LMS</a>");
		document.write("</iframe>");
	}
}
//
