// JavaScript Document

// Start closure to prevent namespace conflicts
;(function($) {

// Perform initial setup tasks when DOM is ready
$(document).ready( function() {
	setupNavigationLinks();

});

// Set up main navigation mouseover menus
function setupNavigationLinks() {
	$('.nav-menu').each(function() {
		var menu = $(this);
		
		menu.hover(function() {
			menu.addClass('hover');
		}, function() {
			menu.removeClass('hover');
		});
	});
}

// End closure
})(jQuery);



function setFlashWidth(divid, newW){
		document.getElementById(divid).style.width = newW+"px";
		}
		
function setFlashHeight(divid, newH){
	document.getElementById(divid).style.height = newH+"px";  
	}
	
function setFlashSize(divid, newW, newH){
	setFlashWidth(divid, newW);
	setFlashHeight(divid, newH);
}

function radio(file, audio) {
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
	document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="30" height="30" align="absmiddle">');
    document.write('<param name="movie" value="'+ file +'"><param name="salign" value="lt" />');
	document.write('<PARAM NAME=FlashVars VALUE="audio='+ audio +'">\n');
    document.write('<param name="quality" value="high">');
	document.write('<param name="wmode" value="transparent" />');
    document.write('<embed src="'+ file +'" FlashVars="audio='+ audio +'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="30" height="30"  align="absmiddle"  salign="lt" wmode="transparent"></embed>');
    document.write('</object>');
}



function sponsors(file, width, height, myPath, filelist, myURLs) {
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
	document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="'+ width +'" height="'+ height +'">');
    document.write('<param name="movie" value="'+ file +'.swf"><param name="salign" value="lt" />');
	document.write('<PARAM NAME=FlashVars VALUE="myPath='+ myPath +'&filelist='+filelist+'&myURLs='+myURLs+'">\n');
    document.write('<param name="quality" value="high">');
	document.write('<param name="wmode" value="transparent" />');
    document.write('<embed src="'+ file +'.swf" FlashVars="myPath='+ myPath +'&filelist='+filelist+'&myURLs='+myURLs+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+ width +'" height="'+ height +'" salign="lt" wmode="transparent"></embed>');
    document.write('</object>');
}




