window.addEvent('domready', function() {
	var initMultiBox = new multiBox({
		mbClass: '.mb',//class you need to add links that you want to trigger multiBox with (remember and update CSS files)
		container: $(document.body),//where to inject multiBox
		descClassName: 'multiBoxDesc',//the class name of the description divs
		useOverlay: true,//use a semi-transparent background. default: false;
		//maxSize: {w:800, h:300},//max dimensions (width,height) - set to null to disable resizing
		addDownload: false,//do you want the files to be downloadable?
		//pathToDownloadScript: './Scripts/ForceDownload.asp',//if above is true, specify path to download script (classicASP and ASP.NET versions included)
		addRollover: false,//add rollover fade to each multibox link
		addOverlayIcon: false,//adds overlay icons to images within multibox links
		addChain: false,//cycle through all images fading them out then in
		recalcTop: true,//subtract the height of controls panel from top position
		addTips: false,//adds MooTools built in 'Tips' class to each element (see: http://mootools.net/docs/Plugins/Tips)
		showControls: false,//show the previous/next, title, download etc
		contentColor: '#000'//background colour of the content holder within the pop-up

	});
	
});
$j(window).bind('resize',function(){
	if($j('#services').height() != null){
		var screenOrient = ($j(window).width() > $j(window).height())?'h':'v';
		if( screenOrient == 'h' ){
			var swfHeight = $j(window).height()-200;
			var swfWidth = Math.round(swfHeight*336/351);
		} else {
			var swfWidth = $j(window).width()-360;
			var swfHeight = Math.round(swfWidth*351/336);
		}
		$j('#services').height(swfHeight);
		$j('#services').width(swfWidth);
	}
});
$j(window).bind('load',function() {
		$j('#services').css('display','block');
		var screenOrient = ($j(window).width() > $j(window).height())?'h':'v';
		if( screenOrient == 'h' ){
			var swfHeight = $j(window).height()-200;
			var swfWidth = Math.round(swfHeight*336/351);
		} else {
			var swfWidth = $j(window).width()-360;
			var swfHeight = Math.round(swfWidth*351/336);
		}
		$j('#services').height(swfHeight);
		$j('#services').width(swfWidth);
});

