﻿///////////////////////////////////////////////////////////////////////////////
//
//  createobjects.js   			version 1.0
//
//  This file is provided by Microsoft as a helper file for websites that
//  incorporate Silverlight Objects. This file is provided under the Silverlight 
//  SDK 1.0 license available at http://go.microsoft.com/fwlink/?linkid=94240.  
//  You may not use or distribute this file or the code in this file except as 
//  expressly permitted under that license.
// 
//  Copyright (c) 2007 Microsoft Corporation. All rights reserved.
//
///////////////////////////////////////////////////////////////////////////////

function createMySLObject() {
	Silverlight.createObjectEx({
		source: "ClientBin/ProductDesigner.xap",
		parentElement:
        document.getElementById("divProductDesigner"),
		id: "ProductDesigner",
		properties: {
			width: "100%",
			height: "100%",
			version: "4.0.60531.0",
			enableHtmlAccess: "true",
			autoUpgrade: "true",
			SplashScreenSource: "pgs/Splash.xaml",
			onSourceDownloadProgressChanged: "onSourceDownloadProgressChanged"
		},
		events: {
		}
	});
}


function createMySLObject2(initParamsString, xapDate) {
	Silverlight.createObjectEx({
		source: "ClientBin/ProductDesigner.xap?tag=" + xapDate,
		parentElement:
        document.getElementById("divProductDesigner"),
		id: "ProductDesigner",
		properties: {
			width: "100%",
			height: "100%",
			version: "4.0.60531.0",
			enableHtmlAccess: "true",
			autoUpgrade: "true",
			SplashScreenSource: "pgs/Splash.xaml",
			onSourceDownloadProgressChanged: "onSourceDownloadProgressChanged"
		},
		events: {
		},

		initParams: initParamsString
	});
}

