﻿if (!window.sl_ad)
    sl_ad = {};

sl_ad.Page = function() {
}

sl_ad.Page.prototype =
{
    handleLoad: function(control, userContext, rootElement) {
        this.control = control;
        //alert("Hi");
        // Beispiel für Ereigniseinbindung:	
        rootElement.addEventListener("MouseLeftButtonDown", Silverlight.createDelegate(this, this.handleMouseDown));

        this.control.content.findName("Storyboard1").Begin();
    },

    // Sample event handler
    handleMouseDown: function(sender, eventArgs) {
        // The following line of code shows how to find an element by name and call a method on it.
        // this.control.content.findName("Storyboard1").Begin();
    }
}

function clickTag(sender, args) {
    var title = "Banner: Hub n Soke";
    var targetUrl = "http://www.microsoft.com/germany/dynamics/enterprise-application-integration/default.aspx";
    var wtUrl = "/germany/dynamics/enterprise-application-integration/default.aspx"
    var WtChannel = "_germany_dynamics_";

    dcsMultiTrack('DCS.dcsuri', wtUrl, 'WT.ti', title, 'WT.sp', WtChannel, 'WT.dl', '1');
    window.location = targetUrl;
}