// JavaScript Document

$(document).ready(function() {


/* This script will find the link to the active page, and strip the link tag off of it. For the BMA site - this script will programatically*/
var activeLink = $('#rSubNav a[@href$="' + location.pathname.substring(1) + '"]')
var linkContent = $(activeLink).html()
$(activeLink).parent().html(linkContent);


$(".matisseFlash").click(function() {
							 var matisse = window.open('/flash/matisse.html','matisse',
'top=100,left=100,width=700,height=390,toolbar=1,resizable=1');
										return false;
											 });
$(".paintedPrints").click(function() {
	var prints = window.open('http://artbma.org/paintedprints/index.html','prints','scrollbars=yes,resizable=yes,width=800,height=600');
	return false;
	})

	

$(".coneFlash").click(function() {
							 
							 var coneflash = window.open('/flash/coneflash.html','coneflash',
'width=600,height=400,toolbar=1,resizable=1');
										return false;
											 });

$(".coneVideo").click(function() {
							 
							 var conevideo = window.open('/video/conevideo.html','conevideo',
'width=600,height=400,toolbar=1,resizable=1');
										return false;
											 });


$("#submitBtn").hover(function() {
	$(this).attr("src", "/images/sub/icons/submit_roll.gif");},function(){
	$(this).attr("src", "/images/sub/icons/submit.gif");});
							
							   
							  
 });


