$(document).ready(function(){
		    var options = {
				loadPlayer:			['flv', 'html', 'img', 'swf'],
		        resizeLgImages:     true, loadingImage: "images/loading.gif",
		        displayNav:         true, handleUnsupported:  'remove',
		        keysClose:          ['c', 27], // c or esc
		        autoplayMovies:     true,
				overlayOpacity:		0.1,
				assetURL:			'http://www.tradingfacesonline.com/'
		    };
		    Shadowbox.init(options);
$(".rollover").hover(
	function(){
		if($(this).attr("src").indexOf("-over") == -1) {
			var newSrc = $(this).attr("src").replace(".gif","-over.gif#hover");
			$(this).attr("src",newSrc);
		}
	},
	function(){
		if($(this).attr("src").indexOf("-over.gif#hover") != -1) {
			var oldSrc = $(this).attr("src").replace("-over.gif#hover",".gif");
			$(this).attr("src",oldSrc);
		}
	}
);
		});

		
		function abrirSB(type, title, url, width, height, typepop)
			 {
			     Shadowbox.init({skipSetup: true});
				 title = title.replace("~","'")
			     Shadowbox.open({type: type, title: title, content: url, width: width, height: height, typepop:typepop});
		}; 
 
		function changeClass(id, id2)
			 {
			     document.getElementById(id).className='roundedwhitelefttitle';
				 document.getElementById(id + '2').className='roundedwhiterighttitle';
				 document.getElementById(id + '2').style.color='black';
				 document.getElementById(id2).className='littlespace';
				 document.getElementById(id2 + '2').className='';
				 document.getElementById(id2 + '2').style.color='white';
				 
		};
		
		function changeColor(id, colorval)
			 {
				 document.getElementById(id).style.background=colorval;
				 
		};
		
