﻿// Name:        PreviewXaml.debug.js
// Assembly:    Microsoft.Web.Preview
// Version:     1.2.61025.0
// FileVersion: 1.2.61025.0
// 
//  PreviewXaml.debug.js                                            for Silverlight 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 ASP.NET Futures 
//  license available at http://go.microsoft.com/fwlink/?LinkId=95072.  
//  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.
// 
Type.registerNamespace('Sys.Preview.UI.Xaml');

Sys.Preview.UI.Xaml.scriptVersion = "1.0.070716.0";

Sys.Preview.UI.Xaml.ScaleMode = function Sys$Preview$UI$Xaml$ScaleMode() {
    /// <field name="none" type="Number" integer="true" static="true"></field>
    /// <field name="zoom" type="Number" integer="true" static="true"></field>
    /// <field name="stretch" type="Number" integer="true" static="true"></field>
    if (arguments.length !== 0) throw Error.parameterCount();
    throw Error.notImplemented();
}




Sys.Preview.UI.Xaml.ScaleMode.prototype = {
    none: 0,
    zoom: 1,
    stretch: 2
}
Sys.Preview.UI.Xaml.ScaleMode.registerEnum('Sys.Preview.UI.Xaml.ScaleMode');
Sys.Preview.UI.Xaml.ErrorEventArgs = function Sys$Preview$UI$Xaml$ErrorEventArgs(xamlError) {
    /// <param name="xamlError"></param>
    var e = Function._validateParams(arguments, [
        {name: "xamlError"}
    ]);
    if (e) throw e;

    this._xamlError = xamlError;
    Sys.Preview.UI.Xaml.ErrorEventArgs.initializeBase(this);
}



    function Sys$Preview$UI$Xaml$ErrorEventArgs$get_error() {
        /// <value></value>
        if (arguments.length !== 0) throw Error.parameterCount();
        return this._xamlError;
    }
Sys.Preview.UI.Xaml.ErrorEventArgs.prototype = {
    _xamlError: null,
    
    get_error: Sys$Preview$UI$Xaml$ErrorEventArgs$get_error
}
Sys.Preview.UI.Xaml.ErrorEventArgs.registerClass("Sys.Preview.UI.Xaml.ErrorEventArgs", Sys.CancelEventArgs);
Sys.Preview.UI.Xaml.Control = function Sys$Preview$UI$Xaml$Control(domElement) {
    /// <param name="domElement" domElement="true"></param>
    var e = Function._validateParams(arguments, [
        {name: "domElement", domElement: true}
    ]);
    if (e) throw e;

    Sys.Preview.UI.Xaml.Control.initializeBase(this, [domElement]);
}








    function Sys$Preview$UI$Xaml$Control$add_xamlError(handler) {
    var e = Function._validateParams(arguments, [{name: "handler", type: Function}]);
    if (e) throw e;

        this.get_events().addHandler('xamlError', handler);
    }
    function Sys$Preview$UI$Xaml$Control$remove_xamlError(handler) {
    var e = Function._validateParams(arguments, [{name: "handler", type: Function}]);
    if (e) throw e;

        this.get_events().removeHandler('xamlError', handler);
    }

    function Sys$Preview$UI$Xaml$Control$add_resize(handler) {
    var e = Function._validateParams(arguments, [{name: "handler", type: Function}]);
    if (e) throw e;

        this.get_events().addHandler("resize", handler);
    }
    function Sys$Preview$UI$Xaml$Control$remove_resize(handler) {
    var e = Function._validateParams(arguments, [{name: "handler", type: Function}]);
    if (e) throw e;

        this.get_events().removeHandler("resize", handler);
    }

    function Sys$Preview$UI$Xaml$Control$add_xamlInitialized(handler) {
    var e = Function._validateParams(arguments, [{name: "handler", type: Function}]);
    if (e) throw e;

        this.get_events().addHandler('xamlInitialized', handler);
    }
    function Sys$Preview$UI$Xaml$Control$remove_xamlInitialized(handler) {
    var e = Function._validateParams(arguments, [{name: "handler", type: Function}]);
    if (e) throw e;

        this.get_events().removeHandler('xamlInitialized', handler);
    }

    function Sys$Preview$UI$Xaml$Control$get_scaleMode() {
        /// <value type="Sys.Preview.UI.Xaml.ScaleMode"></value>
        if (arguments.length !== 0) throw Error.parameterCount();
        return this._scaleMode;
    }
    function Sys$Preview$UI$Xaml$Control$set_scaleMode(value) {
        var e = Function._validateParams(arguments, [{name: "value", type: Sys.Preview.UI.Xaml.ScaleMode}]);
        if (e) throw e;

        this._scaleMode = value;
        if (this._xamlInitialized && value !== Sys.Preview.UI.Xaml.ScaleMode.none) {
            this._ensureTransform();
        }
    }

    function Sys$Preview$UI$Xaml$Control$get_minimumSilverlightVersion() {
        if (arguments.length !== 0) throw Error.parameterCount();
                /// <value type="String">The minimum required version of Silverlight for this control to function.</value>
        return this._minimumVersion || "";
    }
    function Sys$Preview$UI$Xaml$Control$set_minimumSilverlightVersion(value) {
                if (!value.match(/^\d+\.\d+$/)) throw Error.argument("minimumSilverlightVersion", Sys.Preview.UI.Xaml.Res.silverlightVersionFormat);
        this._minimumVersion = value;
    }

    function Sys$Preview$UI$Xaml$Control$get_xamlSource() {
        /// <value type="String"></value>
        if (arguments.length !== 0) throw Error.parameterCount();
        return this._xamlSource || "";
    }
    function Sys$Preview$UI$Xaml$Control$set_xamlSource(value) {
        var e = Function._validateParams(arguments, [{name: "value", type: String}]);
        if (e) throw e;

        if (this.get_isInitialized()) {
            throw Error.invalidOperation(Sys.Preview.UI.Xaml.Res.cannotChangeXamlSource);
        }
        this._xamlSource = value;
    }

    function Sys$Preview$UI$Xaml$Control$addEventListener(element, eventName, handler) {
        /// <param name="element"></param>
        /// <param name="eventName" type="String"></param>
        /// <param name="handler" type="Function"></param>
        /// <returns></returns>
        var e = Function._validateParams(arguments, [
            {name: "element"},
            {name: "eventName", type: String},
            {name: "handler", type: Function}
        ]);
        if (e) throw e;

        if (!this._boundEvents) {
            this._boundEvents = [];
        }

        var token = element.addEventListener(eventName, handler);
        this._boundEvents[this._boundEvents.length] = { element: element, eventName: eventName, token: token };
        return token;
    }

    function Sys$Preview$UI$Xaml$Control$addEventListeners(element, events, handlerOwner) {
        /// <param name="element"></param>
        /// <param name="events" type="Object"></param>
        /// <param name="handlerOwner" optional="true"></param>
        /// <returns></returns>
        var e = Function._validateParams(arguments, [
            {name: "element"},
            {name: "events", type: Object},
            {name: "handlerOwner", optional: true}
        ]);
        if (e) throw e;

        var tokens = { };
        for (var name in events) {
            var handler = events[name];
            if (typeof(handler) !== 'function') throw Error.invalidOperation(Sys.Res.cantAddNonFunctionhandler);
            if (handlerOwner) {
                handler = Function.createDelegate(handlerOwner, handler);
            }
            tokens[name] = this.addEventListener(element, name, handler);
        }
        return tokens;
    }

    function Sys$Preview$UI$Xaml$Control$dispose() {
        var host = this.get_element();
        if (host) {
            if (this._resizeDelegate) {
                host.content.onResize = null;
                this._resizeDelegate = null;
            }
            host.OnLoad = null;
            host.OnError = null;
        }

        if (this._xamlInitialized) {
            this.xamlDispose();
            this._xamlInitialized = false;
        }
        
        if (this._boundEvents) {
            for (var i = 0, l = this._boundEvents.length; i < l; i++) {
                var e = this._boundEvents[i];
                e.element.removeEventListener(e.eventName, e.token);
            }
            this._boundEvents = null;
        }

        Sys.Preview.UI.Xaml.Control.callBaseMethod(this, "dispose");
    }

    function Sys$Preview$UI$Xaml$Control$initialize() {
        Sys.Preview.UI.Xaml.Control.callBaseMethod(this, "initialize");

        if (Sys.Preview.UI.Xaml.Control._ensureVersion(this)) {
        var host = this.get_element();
        host.OnError = Function.createDelegate(this, this._xamlError);
        
                var src = this.get_xamlSource();
        if (src && (typeof(host.Source) === 'undefined' || host.Source !== src)) {
            host.OnLoad = Function.createDelegate(this, this._xamlLoaded);
            host.Source = src;
        }
        else {
                        this._raiseXamlInitialize();
        }
        }
    }

    function Sys$Preview$UI$Xaml$Control$onResize(args) {
        /// <param name="args" type="Sys.EventArgs"></param>
        var e = Function._validateParams(arguments, [
            {name: "args", type: Sys.EventArgs}
        ]);
        if (e) throw e;

    }

    function Sys$Preview$UI$Xaml$Control$onXamlError(errorEventArgs) {
        /// <param name="errorEventArgs" type="Sys.Preview.UI.Xaml.ErrorEventArgs"></param>
        var e = Function._validateParams(arguments, [
            {name: "errorEventArgs", type: Sys.Preview.UI.Xaml.ErrorEventArgs}
        ]);
        if (e) throw e;

    }

    function Sys$Preview$UI$Xaml$Control$xamlDispose() {
        if (arguments.length !== 0) throw Error.parameterCount();
    }

    function Sys$Preview$UI$Xaml$Control$xamlInitialize() {
        if (arguments.length !== 0) throw Error.parameterCount();
    }

    function Sys$Preview$UI$Xaml$Control$_ensureTransform() {

        var root = this.get_element().content.root;
        var scalePlayer = Sys.Preview.UI.Xaml.Control._computeScale(root);
        var x, y;
        if (this.get_scaleMode() === Sys.Preview.UI.Xaml.ScaleMode.zoom) {
                        x = y = Math.min(scalePlayer.horizontal, scalePlayer.vertical);
        }
        else {
                        x = scalePlayer.horizontal;
            y = scalePlayer.vertical;
        }
        Sys.Preview.UI.Xaml.Control._ensureScale(root, x, y);
        
                if (!this._resizeDelegate) {
            this._resizeDelegate = Function.createDelegate(this, this._onResize);
            root.getHost().content.onResize = this._resizeDelegate;
        }
    }

    function Sys$Preview$UI$Xaml$Control$_onResize() {
        var element = this.get_element();
                if (element && (this.get_scaleMode() !== Sys.Preview.UI.Xaml.ScaleMode.none)) {
            this._ensureTransform();

            var args = Sys.EventArgs.Empty;
            this.onResize(args);
            var handler = this.get_events().getHandler("resize");
            if (handler) {
                handler(this, args);
            }
        }
    }

    function Sys$Preview$UI$Xaml$Control$_raiseXamlError(sender, errorEventArgs) {
        this.onXamlError(errorEventArgs);
        
        if (!errorEventArgs.get_cancel()) {
            var handler = this.get_events().getHandler("xamlError");
            if (handler) {
                handler(this, errorEventArgs);
            }
                                                else {
                var xamlError = errorEventArgs.get_error(),
                    errorType = xamlError.errorType,
                    errorCode = xamlError.errorCode,
                    errorMessage = xamlError.errorMessage,
                    id = this.get_id(),
                    lineNumber = "", charPosition = "", xamlFile = "", methodName = "",
                    errorFormat = Sys.Preview.UI.Xaml.Res.otherError;
                                if (errorType === "ParserError") {
                    errorFormat = Sys.Preview.UI.Xaml.Res.parserError;
                    lineNumber = xamlError.lineNumber;
                    charPosition = xamlError.charPosition;
                    xamlFile = xamlError.xamlFile;
                }
                else if ((errorType === "ImageError" || errorType === "MediaError") && errorMessage === "AG_E_NOT_FOUND") {
                        errorFormat = Sys.Preview.UI.Xaml.Res.mediaError_NotFound;
                        errorMessage = sender.Source;
                }
                else if (errorType === "RuntimeError") {
                    if (xamlError.lineNumber) {
                        errorFormat = Sys.Preview.UI.Xaml.Res.runtimeErrorWithPosition;
                        lineNumber = xamlError.lineNumber;
                        charPosition = xamlError.charPosition;
                        methodName = xamlError.methodName;
                    }
                    else {
                        errorFormat = Sys.Preview.UI.Xaml.Res.runtimeErrorWithoutPosition;
                        methodName = xamlError.methodName;
                    }
                }
                throw Error.invalidOperation(
                    String.format(errorFormat, id, errorType, errorCode, errorMessage, lineNumber, charPosition, methodName, xamlFile));
            }
        }
    }

    function Sys$Preview$UI$Xaml$Control$_raiseXamlInitialize() {
        if (this.get_scaleMode() !== Sys.Preview.UI.Xaml.ScaleMode.none) {
            this._ensureTransform();
        }
        this._xamlInitialized = true;
        this.xamlInitialize();
        var handler = this.get_events().getHandler('xamlInitialized');
        if (handler) {
            handler(this, Sys.EventArgs.Empty);
        }
    }

    function Sys$Preview$UI$Xaml$Control$_xamlError(sender, args) {
        var element = this.get_element();
        if (element) {
                        this._raiseXamlError(sender, new Sys.Preview.UI.Xaml.ErrorEventArgs(args));
        }
    }

    function Sys$Preview$UI$Xaml$Control$_xamlLoaded() {
        var element = this.get_element();
        if (element) {
                        element.OnLoad = null;
            this._raiseXamlInitialize();
        }
    }
Sys.Preview.UI.Xaml.Control.prototype = {
    _minimumVersion: "1.0",
    _xamlSource: null,
    _xamlInitialized: false,
    _scaleMode: Sys.Preview.UI.Xaml.ScaleMode.none,
    _resizeDelegate: null,
    _boundEvents: null,
    
    add_xamlError: Sys$Preview$UI$Xaml$Control$add_xamlError,
    remove_xamlError: Sys$Preview$UI$Xaml$Control$remove_xamlError,

    add_resize: Sys$Preview$UI$Xaml$Control$add_resize,
    remove_resize: Sys$Preview$UI$Xaml$Control$remove_resize,

    add_xamlInitialized: Sys$Preview$UI$Xaml$Control$add_xamlInitialized,
    remove_xamlInitialized: Sys$Preview$UI$Xaml$Control$remove_xamlInitialized,

    get_scaleMode: Sys$Preview$UI$Xaml$Control$get_scaleMode,
    set_scaleMode: Sys$Preview$UI$Xaml$Control$set_scaleMode,
    
    get_minimumSilverlightVersion: Sys$Preview$UI$Xaml$Control$get_minimumSilverlightVersion,
    set_minimumSilverlightVersion: Sys$Preview$UI$Xaml$Control$set_minimumSilverlightVersion,
    
    get_xamlSource: Sys$Preview$UI$Xaml$Control$get_xamlSource,
    set_xamlSource: Sys$Preview$UI$Xaml$Control$set_xamlSource,
    
    addEventListener: Sys$Preview$UI$Xaml$Control$addEventListener,
    
    addEventListeners: Sys$Preview$UI$Xaml$Control$addEventListeners,
    
    dispose: Sys$Preview$UI$Xaml$Control$dispose,    
    
    initialize: Sys$Preview$UI$Xaml$Control$initialize,

    onResize: Sys$Preview$UI$Xaml$Control$onResize,
    
    onXamlError: Sys$Preview$UI$Xaml$Control$onXamlError,
    
    xamlDispose: Sys$Preview$UI$Xaml$Control$xamlDispose,

    xamlInitialize: Sys$Preview$UI$Xaml$Control$xamlInitialize,
    
    _ensureTransform: Sys$Preview$UI$Xaml$Control$_ensureTransform,

    _onResize: Sys$Preview$UI$Xaml$Control$_onResize,
    
    _raiseXamlError: Sys$Preview$UI$Xaml$Control$_raiseXamlError,
    
    _raiseXamlInitialize: Sys$Preview$UI$Xaml$Control$_raiseXamlInitialize,

    _xamlError: Sys$Preview$UI$Xaml$Control$_xamlError,
    
    _xamlLoaded: Sys$Preview$UI$Xaml$Control$_xamlLoaded
}

Sys.Preview.UI.Xaml.Control._computeScale = function Sys$Preview$UI$Xaml$Control$_computeScale(element) {
            var width = element.width;
    var height = element.height;
    var host = element.getHost();
    var x = width ? (host.content.ActualWidth / width) : 0;
    var y = height ? (host.content.ActualHeight / height) : 0;
    return { horizontal: x, vertical: y };
}
Sys.Preview.UI.Xaml.Control._ensureScale = function Sys$Preview$UI$Xaml$Control$_ensureScale(el, x, y) {
    var transform = el.RenderTransform;
    if (!transform) {
        el.RenderTransform = transform = el.getHost().content.createFromXaml('<ScaleTransform ScaleX="1" ScaleY="1"/>');
    }
    else if (transform.toString() !== "ScaleTransform") {
        throw Error.invalidOperation(Sys.Preview.UI.Xaml.Res.scaleModeRequiresScaleTransform);
    }
    transform.ScaleX = x;
    transform.ScaleY = y;
}
Sys.Preview.UI.Xaml.Control.registerClass("Sys.Preview.UI.Xaml.Control", Sys.UI.Control);
Sys.Preview.UI.Xaml.Control._ensureVersion = function Sys$Preview$UI$Xaml$Control$_ensureVersion(control) {
    if (!Sys.Preview.UI.Xaml.Control._isMinimumVersion(control)) {
        Sys.Preview.UI.Xaml.Control._showInstallPrompt(control);
        return false;	
    }
    else {
        return true;
    }
}

Sys.Preview.UI.Xaml.Control._baseFWLink = "http://go.microsoft.com/fwlink/?LinkID=";

Sys.Preview.UI.Xaml.Control._getFWLinksAlpha = function Sys$Preview$UI$Xaml$Control$_getFWLinksAlpha(supported) {
        supported = supported && navigator.userAgent.indexOf('PPC Mac OS X') === -1;
    
    var fwLinks = { image2: null, privacy: null, eula: null };
    fwLinks.image1 = Sys.Preview.UI.Xaml.Control._installed ? "94378" : "92810";
   
    if (supported) {
        if (navigator.userAgent.indexOf('Windows NT') !== -1) {
            fwLinks.install = '92809';
        }
        else if (navigator.userAgent.indexOf('Mac OS X') !== -1) {
            fwLinks.install = '92813';
        }
    }
    else {
        fwLinks.install = '92821';
    }
    
    var baseUrl = Sys.Preview.UI.Xaml.Control._baseFWLink;
    fwLinks.image1 = baseUrl + fwLinks.image1;
    fwLinks.installHtml = Sys.Preview.UI.Xaml.Res.linkedInstallHtml;
    return fwLinks;
}

Sys.Preview.UI.Xaml.Control._getFWLinks = function Sys$Preview$UI$Xaml$Control$_getFWLinks(forVersion) {
        var supported =
                (   (Sys.Browser.agent === Sys.Browser.InternetExplorer) &&
            (Sys.Browser.version >= 6) &&
            (navigator.userAgent.indexOf('Win64') === -1) &&
            (navigator.userAgent.indexOf('Mac OS X') === -1)) ||
                ((Sys.Browser.agent === Sys.Browser.Firefox) && (Sys.Browser.version >= 1.5)) ||
                ((Sys.Browser.agent === Sys.Browser.Safari) && (navigator.userAgent.indexOf("Windows NT") === -1));

    var v = 0;
    try { v = parseFloat(forVersion); }
    catch (e) { }
    if (v >= 1.1) {
        return Sys.Preview.UI.Xaml.Control._getFWLinksAlpha(supported);
    }
    
        var fwLinks = { install: "92822", eula: "93481", privacy: "93483" };

    if (Sys.Preview.UI.Xaml.Control._installed) {
                fwLinks.image1 = "94376";
        fwLinks.image2 = "94382";
    }
    else {
        fwLinks.image1 = "92802";
        fwLinks.image2 = "94381";
    }
    
    if (supported) {
        if (navigator.userAgent.indexOf('Windows NT') !== -1) {
            fwLinks.install = "92799";
            fwLinks.eula = "92803";
            fwLinks.privacy = "92805";
        }
        else if (navigator.userAgent.indexOf('PPC Mac OS X') !== -1) {
            fwLinks.install = "92807";
            fwLinks.eula = "92815";
            fwLinks.privacy = "92816";
        }
        else if (navigator.userAgent.indexOf('Intel Mac OS X') !== -1) {
            fwLinks.install = "92808";
            fwLinks.eula = "92804";
            fwLinks.privacy = "92806";
        }
            }

    
    var baseUrl = Sys.Preview.UI.Xaml.Control._baseFWLink;
    fwLinks.image1 = baseUrl + fwLinks.image1;
    fwLinks.image2 = baseUrl + fwLinks.image2;
    fwLinks.eula = baseUrl + fwLinks.eula;
    fwLinks.privacy = baseUrl + fwLinks.privacy;
    fwLinks.installHtml = Sys.Preview.UI.Xaml.Res.inlineInstallHtml;
        return fwLinks;
}

Sys.Preview.UI.Xaml.Control._isMinimumVersion = function Sys$Preview$UI$Xaml$Control$_isMinimumVersion(control) {
    var minVersion = control.get_minimumSilverlightVersion();
    if (!minVersion) {
                return true;
    }
    var element = control.get_element();
    if (typeof(element.IsVersionSupported) !== "undefined") {
                Sys.Preview.UI.Xaml.Control._installed = true;
        return element.IsVersionSupported(minVersion);
    }
    Sys.Preview.UI.Xaml.Control._installed = false;
    return false;
}
    
Sys.Preview.UI.Xaml.Control._replacePlugin = function Sys$Preview$UI$Xaml$Control$_replacePlugin(control, replacementElement) {
            var element = control.get_element();
    var pluginStyle = Sys.UI.DomElement._getCurrentStyle(element);
    replacementElement.style.width = pluginStyle.width;
    replacementElement.style.height = pluginStyle.height;
    replacementElement.style.display = '';
    var parent = element.parentNode;
    parent.insertBefore(replacementElement, element);
    parent.removeChild(element);
    control._element = replacementElement;
}

Sys.Preview.UI.Xaml.Control._followFWLink = function Sys$Preview$UI$Xaml$Control$_followFWLink(fwLink) {
    window.top.location = Sys.Preview.UI.Xaml.Control._baseFWLink + fwLink;
}
    
Sys.Preview.UI.Xaml.Control._showInstallPrompt = function Sys$Preview$UI$Xaml$Control$_showInstallPrompt(control) {
    var replacementElement = document.createElement("div");
    var fwLinks = Sys.Preview.UI.Xaml.Control._getFWLinks(control.get_minimumSilverlightVersion());
    replacementElement.innerHTML = String.format(fwLinks.installHtml,
        fwLinks.install,
        fwLinks.image1,
        fwLinks.eula,
        fwLinks.privacy,
        fwLinks.image2);

    var element = control.get_element();
    replacementElement.id = element.id;
    this._replacePlugin(control, replacementElement);
}

Type.registerNamespace('Sys.Preview.UI.Xaml');
Sys.Preview.UI.Xaml.Res={
"runtimeErrorWithoutPosition":"Runtime error {2} in control \u0027{0}\u0027, method {6}: {3}",
"scaleModeRequiresScaleTransform":"When ScaleMode is set to zoom or stretch, only ScaleTransforms are permitted on the root Canvas.",
"mediaError_NotFound":"Media \"{3}\" in control \"{0}\" could not be found.",
"runtimeErrorWithPosition":"Runtime error {2} in control \u0027{0}\u0027, method {6} (line {4}, col {5}): {3}",
"silverlightVersionFormat":"Must be in the format \"MajorVersion.MinorVersion\".",
"otherError":"{1} error #{2} in control \u0027{0}\u0027: {3}",
"cannotChangeXamlSource":"The xaml source cannot be changed after initialization.",
"parserError":"Invalid XAML for control \u0027{0}\u0027. [{7}] (line {4}, col {5}): {3}",
"inlineInstallHtml":"\u003ctable border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"205px\"\u003e\u003ctr\u003e\u003ctd\u003e\u003cimg title=\"Get Microsoft Silverlight\" onclick=\"javascript:Sys.Preview.UI.Xaml.Control._followFWLink({0});\" style=\"border:0; cursor:pointer; display:block\" src=\"{1}\"/\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd style=\"background:#C7C7BD; text-align: center; color: black; font-family: Verdana; font-size: 9px; padding-bottom: 0.05cm; padding-top: 0.05cm\" \u003eBy clicking \u003cb\u003eGet Microsoft Silverlight\u003c/b\u003e you accept the \u003ca title=\"Silverlight License Agreement\" href=\"{2}\" target=\"_top\" style=\"text-decoration: underline; color: #36A6C6\"\u003e\u003cb\u003eSilverlight license agreement\u003c/b\u003e\u003c/a\u003e.\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd style=\"border-left-style: solid; border-right-style: solid; border-width: 2px; border-color:#c7c7bd; background: #817d77; color: #FFFFFF; text-align: center; font-family: Verdana; font-size: 9px\"\u003eSilverlight updates automatically, \u003ca title=\"Silverlight Privacy Statement\" href=\"{3}\" target=\"_top\" style=\"text-decoration: underline; color: #36A6C6\"\u003e\u003cb\u003elearn more\u003c/b\u003e\u003c/a\u003e.\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e\u003cimg src=\"{4}\" alt=\"\" style=\"display:block\"/\u003e\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e",
"linkedInstallHtml":"\u003cdiv style=\"width: 205px; height: 67px; background-color: #FFFFFF\"\u003e\u003cimg onclick=\"javascript:Sys.Preview.UI.Xaml.Control._followFWLink({0});\" style=\"border:0; cursor:pointer;display:block\" src=\"{1}\" alt=\"Get Microsoft Silverlight\"/\u003e\u003c/div\u003e"
};

if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();