function getFlashMovie(movieName) {
	var isIE = navigator.appName.indexOf("Microsoft") != -1;
	return (isIE) ? window[movieName] : document[movieName];
}

function viewSlideshow(show) {
	var xmlfile = "/slideshows/"+show+"/images.xml";
	getFlashMovie("slideshow").switchXMLFile(xmlfile);
	try{
		var s = document.getElementById('slideshow_links').getElementsByTagName('a');
		for(var x = 0; x < s.length; x++){
			if(s[x].href.indexOf(show) > -1){
				s[x].className+= ' current';
				s[x].blur();
			}else{
				s[x].className = '';
			}
		}
	}catch(e){
		/* not on the portfolio page */
	}
}