﻿         function doChange(_val) {
			 try
			 {
				 //alert("hjh");
				 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) {
				// alert(e)
             }
             
            // alert('set : ' + SWFAddress.getValue());
         }

         function getSWFAddressValue() {
			try{
				var retObj = new Object();
				 retObj.val = SWFAddress.getValue();
				 return retObj;
			 }
			 catch(e){}

         }

		try
		{		 
         var theAddress=SWFAddress.getValue();
		}
		catch(e){}

		 
$(document).ready(function() {

 $("ul.sf-menu").superfish({
		autoArrows : true // emulate default behaviour for this example
	});
});		 
		 
