/**************************************************
 * Methods for initialisation when the page loads
 **************************************************/
 
	/*
	 * Adds rounded corners to the main content div
	 */
	$(document).ready(function () 
	{
		settingsNoPad = 
		{
			tl: { radius: 10 },
			tr: { radius: 10 },
			bl: { radius: 0 },
			br: { radius: 0 },
			antiAlias: true,
			autoPad: true,
			validTags: ["div"]
		}
		
		settings = 
		{
			tl: { radius: 10 },
			tr: { radius: 10 },
			bl: { radius: 10 },
			br: { radius: 10 },
			antiAlias: true,
			autoPad: true,
			validTags: ["div"]
		}
		
		var myBoxObject = new curvyCorners(settings, "roundMe");
			myBoxObject.applyCornersToAll();
		
		var myGreyBlock = new curvyCorners(settingsNoPad , "greyBlock");
			myGreyBlock.applyCornersToAll();
		
	});
	
	/*
	 * Enable the javascript menu for ie
	 */
	$(document).ready(function () 
	{
		var sfEls = document.getElementById("nav").getElementsByTagName("LI");
		
		for (var i=0; i<sfEls.length; i++) 
		{
			sfEls[i].onmouseover=function() 
			{
				this.className+=" sfhover";
			}
			
			sfEls[i].onmouseout=function() 
			{
				this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
			}
		}
		
	});
	
	/*
	 * Enable the tabs
	 */
	$(function()
	{
		$('#tabs').tabs();
	});
	
	function openInstallAirWindow() 
	{
		var w = window.open("http://www.saffroninteractive.com/workbench/badge-install/index.html","AssessmentWorkbenchInstaller","height=180,width=250,left=0,top=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,fullscreen=1");
			w.moveTo((screen.width-250)/2,(screen.height-180)/2 )
			
	}
	

