﻿function doChange(_val) {
    try {
        SWFAddress.setValue(_val);
    }
    catch (e) { }
}

try {
    SWFAddress.addEventListener("change", setSWFAddressValue);
}
catch (e) { }

function setSWFAddressValue(_val) {
    try {
        var control = document.getElementById("Xaml1");
        control.Content.Page.swfAddressChanged(SWFAddress.getValue());
    }
    catch (e) {

    }


}

function getSWFAddressValue() {
    try {
        var retObj = new Object();
        retObj.val = SWFAddress.getValue();
        return retObj;
    }
    catch (e) { }

}

try {
    var theAddress = SWFAddress.getValue();
}
catch (e) { };

var SLControl = null;
$(document).ready(function () {

    $("ul.sf-menu").superfish({
        autoArrows: true // emulate default behaviour for this example
    });
    SLControl = document.getElementById("Xaml1");
});



		 
