var $j = jQuery.noConflict();
$j(document).ready(function(){

	$j(document).pngFix( );
});



$j(document).ready(function(){ 
    $j('a.external').click(function(){
        window.open(this.href);
        return false;
    });
	$j('ul.sf-menu').superfish({ 
            delay:       1000, // one second delay on mouseout 
            animation:   {opacity:'show',height:'show'},  // fade-in and slide-down animation 
            speed:       'fast',  // faster animation speed 
            autoArrows:  true, // disable generation of arrow mark-up 
            dropShadows: false  // disable drop shadows 
        }); 
});



rnd.today=new Date();
rnd.seed=rnd.today.getTime();

function rnd() {
        rnd.seed = (rnd.seed*9301+49297) % 233280;
        return rnd.seed/(233280.0);
};

function rand(number) {
        return Math.ceil(rnd()*number);
};



// Clear/Replace Fields
function clearText(thefield) {
  if (thefield.defaultValue==thefield.value) { thefield.value = "" }
}

function replaceText(thefield) {
  if (thefield.value=="") { thefield.value = thefield.defaultValue }
}