$(window).load(function(){
	
	//Tag Canvas Code goes here...
	try {
		TagCanvas.interval = 	20 	;//Interval between animation frames, in milliseconds
		TagCanvas.maxSpeed = 	0.05 	;//Maximum speed of rotation
		TagCanvas.minSpeed = 	0.0 	;//Minimum speed of rotation when mouse leaves canvas
		TagCanvas.decel = 	0.95 	;//Deceleration rate when mouse leaves canvas
		TagCanvas.minBrightness = 	0.1 	;//Brightness of tags at farthest point (0.0-1.0)
		TagCanvas.textColour = 	"#ff99ff" 	;//Colour of the tag text
		TagCanvas.textHeight = 	25 	;//Height of the tag text font (in pixels)
		TagCanvas.textFont = 	"Helvetica, Arial,sans-serif" 	;//Font family for the tag text
		TagCanvas.outlineColour = 	"#ffff99" 	;//Colour of the box around the active tag
		TagCanvas.outlineThickness = 	2 	;//Thickness of outline in pixels
		TagCanvas.outlineOffset = 	5 	;//Distance of outline from text, in pixels
		TagCanvas.pulsateTo = 	1.0 	;//Pulsate outline to this opacity (0.0-1.0)
		TagCanvas.pulsateTime = 	3 	;//Pulse rate, in seconds per beat
		TagCanvas.depth = 	0.5 	;//Controls the perspective (0.0-1.0)
		TagCanvas.initial = 	null 	;//Initial rotation, with horizontal and vertical as an array, e.g. [0.8,-0.3]. Values are multiplied by maxSpeed.
		TagCanvas.freezeActive = 	false 	;//Set to true to pause movement when a tag is highlighted.
		TagCanvas.frontSelect = 	false 	;//Set to true to prevent selection of tags at back of cloud.
		TagCanvas.txtOpt = 	true 	;//Text optimisation, converts text tags to images for better performance.
		TagCanvas.txtScale = 	2 	;//Scaling factor of text when converting to image in txtOpt mode.
		TagCanvas.reverse = 	false 	;//Set to true to reverse direction of movement relative to mouse position.
		TagCanvas.hideTags = 	false 	;//Set to true to automatically hide the tag list element if TagCanvas is started successfully.
		TagCanvas.zoom = 	1.0 	;//Adjusts the relative size of the tag cloud in the canvas. Larger values will zoom into the cloud, smaller values will zoom out.
		TagCanvas.shadow = 	"#000000" 	;//Colour of the shadow behind each tag.
		TagCanvas.shadowBlur = 	0 	;//Amount of tag shadow blurring, in pixels.
		TagCanvas.shadowOffset = 	[0,0] 	;//X and Y offset of the tag shadow, in pixels.
		TagCanvas.weight = 	false 	;//Set to true to turn on weighting of tags.
		TagCanvas.weightMode = 	"size" 	;//Method to use for displaying tag weights. Should be one of size, colour or both.
		TagCanvas.weightSize = 	1.0 	;//Multiplier for adjusting the size of tags when using a weight mode of size or both.
//			TagCanvas.weightGradient = 	{0:'#f00', 0.33:'#ff0',	0.66:'#0f0', 1:'#00f'} 	;//The colour gradient used for colouring tags when using a weight mode of colour or both.
		TagCanvas.weightFrom = 	null 	;//The link attribute to take the tag weight from. The default of null means that the weight is taken from the calculated link font size.
		TagCanvas.textColour = '#999';
		TagCanvas.outlineColour = '#ff9999';
		TagCanvas.Start('myCanvas','taglist');
		
	} catch(e) {
	  // in Internet Explorer there is no canvas!
	  document.getElementById('myCanvasContainer').style.display = 'none';
	}
	
});


