//image preloading
var pic1 = new Image();
pic1.src='images/imgButtons/galleryOver.png';
var pic2 = new Image();
pic2.src='images/imgButtons/merchOver.png';
var pic3 = new Image();
pic3.src='images/imgButtons/playlistOver.png';
var pic4 = new Image();
pic4.src='images/imgButtons/reviewOver.png';
var pic5 = new Image();
pic5.src='images/imgButtons/videoOver.png';
var pic6 = new Image();
pic6.src='images/layout/navOver.jpg';


//here's the sIfr code for the h1 tags
//code for the .title class
var avant1 = {  src: 'avantGardeGothic_med.swf' };
sIFR.activate(avant1);

sIFR.replace(avant1, {
  selector: '.title', 
  wmode: 'transparent', 
  src: 'avantGardeGothic_med.swf', 
  css: [ '.sIFR-root {color:#ABBC6E;}'  ]
});

var avant2 = {  src: 'avantGardeGothic_med.swf' };
sIFR.activate(avant2);

sIFR.replace(avant2, {
  selector: '.sideTitle', 
  wmode: 'transparent', 
  src: 'avantGardeGothic_med.swf', 
  css: [ '.sIFR-root {color:#ffffff; text-align:center;}'  ]
});

var avant3 = {  src: 'avantGardeGothic_med.swf' };
sIFR.activate(avant3);

sIFR.replace(avant3, {
  selector: '.shinyText', 
  wmode: 'transparent', 
  src: 'avantGardeGothic_med.swf', 
  css: [ '.sIFR-root {color:#ABBC6E;}'
		+'.sIFR-root a {color:#434629;}'
		+'.sIFR-root a:hover {color:#ECB429;}']
});




//start jQuery functions
$(document).ready(function(){
						   
	/*/ add hover effect to menu for page which is current /*/
	$(function(){
		$('#nav>ul>li a').each(function(){
			// get page name from url
			var sPath = window.location.pathname;
			var pageName = sPath.substring((sPath.lastIndexOf('/') + 1),(sPath.lastIndexOf('.')));
			// get page name from href
			var curr_href = $(this).attr('href');
			var curr_page = curr_href.substring(0,(curr_href.lastIndexOf('.')));
			// compare the two and add hover effect
				if (curr_page == pageName){$(this).addClass("hoverOn");}
				else {$(this).removeClass("hoverOn");}
		});
	});
	
									

	/* remove box from links */
	$('a').focus(function(){this.blur();});
	
});

