﻿

 function setSilverlight(data, param, controlId, divname, requested) {

            data = data.replace('[path]', 'ClientBin/AudioManager.xap');
            data = data.replace('//', '/');
            data = data.replace('[config]', 'SiteMap=MENU');

            jQuery('#' + divname).html(data);//don't want to see it until it shows it's self.

        }


        jQuery(document).ready(function() {


        /* //fetch the silverlight menu and plug it in, it's controlid #1
        //when I'm ready, embed this in this div  <div id="embeddedSilverlightUsage"></div>   
        jQuery.get('js/htmlSLControls/sl.htm', function(data) {
        setSilverlight(data, 'ControlId', 1, 'embeddedSilverlightUsage');
        })*/




        });
         

jQuery.fn.hoverClass = function(c) {
    return this.each(function() {
        jQuery(this).hover(
			function() { jQuery(this).addClass(c); },
			function() { jQuery(this).removeClass(c); }
		);
    });
};	

function popItScroll(theLink){ 
	window.open(theLink,null,'height=800,width=700,scrollbars=yes,resizable=yes'); 
	
}
function showIt(theBox){
    if(theBox.style.display==""){
        theBox.style.display="none";
    }else{
        theBox.style.display="";
   
    }
}
function toggleIt(theBox){
    if(theBox.style.display=="none"){
        new Effect.Appear(theBox);
    }else{
        new Effect.Fade(theBox);
   
    }
}
