function DisplayFlash(path, width, height, wmode){

    text = "<object type=\"application/x-shockwave-flash\" data=\""+path+"\" allowScriptAccess=\"sameDomain\" width=\""+width+"\" height=\""+height+"\" wmode=\""+wmode+"\" quality=\"high\">\r\n";
    text += "<param name=\"movie\"	value=\""+path+"\" />\r\n";
    text += "<param name=\"allowScriptAccess\"	value=\"sameDomain\" />\r\n";
    text += "<param name=\"wmode\" value=\""+wmode+"\" />\r\n";
    text += "<param name=\"quality\" value=\"high\" />\r\n";
    text += "<param name=\"width\" value=\""+width+"\" />\r\n";
    text += "<param name=\"height\" value=\""+height+"\" />\r\n";
    text += "</object>";
    document.write(text);
}


jQuery(document).ready(function(){  
	$('.sub-menu').parent().mousemove(function(){
		$(this).find('.sub-menu').each(function(){
			if($(this).css('display') == 'none'){
				$(this).css('display','block');
				//$(this).parent().css('height','100px').css('border','1px solid black').css('z-index','10000');
			}else{
				//$(this).hide('slow');
			}
		});
	});
	$('#flash-bg').mousemove(function(){
		$('.sub-menu').css('display','none');
	});
	$('#top-body-out').mousemove(function(){
		$('.sub-menu').css('display','none');
	});

    
    
    //$('body').width('300px');
    
    $('a').each(function(){
		if($(this).attr('name')) {
			var a = $(this);
			a.css('cursor','pointer');
			$(this).removeAttr('href').find('~ span.gr:first').each(function(){
				hash = document.location.hash.substr(1, (document.location.hash.length - 1) );
				if( $(a).attr('name') != hash ){
					$(this).hide('slow');
				}	
			});
			$(this).click(function(){
				if($(this).hasClass('no-plus') == false){
					$(this).find('~ span.gr:first').show('slow');
					$(this).addClass('no-plus');
				}else{
					$(this).find('~ span.gr:first').hide('slow');
					$(this).removeClass('no-plus');
				}
			});	
		}
	});
	
	var height = $('#top-body-out').height() + 500;
    $('body').height(height + 'px');
	
	
});
