<!-- Copyright 2008 Crossnet AB - www.crossnet.net Author: Marcus Carlsson -->
var silverlightPath = "/silverlight"; /* subfoldername/path, do not end with slash */
function include(file)
{  
	var script  = document.createElement('script');  
	script.src  = file;  
	script.type = 'text/javascript';  
	script.defer = true;
	document.getElementsByTagName('head').item(0).appendChild(script);  
}

function SilverlightPlayer() {
	this.PlayXaml = null;
	this.PlaySrc = "/silverlight/images/play.png";
	this.PlayHooverSrc = "/silverlight/images/playHoover.png";
	this.PauseSrc = "/silverlight/images/pause.png";
	this.PauseHooverSrc = "/silverlight/images/pauseHoover.png";
	this.FullscreenSrc = "/silverlight/images/fullscreen.png";
	this.FullscreenHooverSrc = "/silverlight/images/fullscreenHoover.png";
	this.MuteSrc = "/silverlight/images/mute.png";
	this.MutedSrc = "/silverlight/images/muted.png";
	this.Width = 474;
	this.Height = 360;
	this.Instance = null;
	this.AutoPlay = false;
	this.Left="0";
	this.Top="0";
	this.Stretch="Fill";

	this.test = function() {
	};
}

function SilverlightClip() {
	this.Title = "";
	this.Text = "";
	this.Source = "";
	this.ObjId = -1;
	this.Tab = -1;
}

function SilverlightSimpleObject() {
	this.Instance = null;
	this.OriginalWidth = -1;
	this.OriginalHeight = -1;
	this.OriginalLeft = -1;
	this.OriginalTop = -1;
}

function SilverlightPlugin() {
	clips = new Array(); accessClips = function() {return clips;};
	player = new SilverlightPlayer();
	this.Instance = null;
	this.BufferTimeout = null;
	this.MarkerTimeout = null;
	this.Volume = -1;
	this.Width = "474";
	this.Height = "385";
	this.Clips = accessClips();
	this.ClipId = -1;
	this.Player = player;
	this.RootCanvas = null;
	this.Controlbar = new SilverlightSimpleObject();
	this.Timeline = new SilverlightSimpleObject();
	this.Marker = new SilverlightSimpleObject();
	this.VolumeRect = new SilverlightSimpleObject();
	this.VolumeImg = new SilverlightSimpleObject();
	this.MarkerMove = false;
}

var silverlightPlugin = new SilverlightPlugin();

