// CUSTOM FLASH ZOOM IMAGE
function thisMovie(movieName){
	if (window.document[movieName]) {
		return window.document[movieName];
	}
	if (navigator.appName.indexOf("Microsoft Internet")==-1) {
		if (document.embeds && document.embeds[movieName])
			return document.embeds[movieName]; 
		} else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
		{
		return document.getElementById(movieName);
	}
}
// zoom button
function zoomButton() {
	doPassVar("toggleZoom");
};
function doPassVar(args){
	thisMovie("prodFlash").SetVariable('action', args);
}
// zoom thumb
var thisURL;
var thisURLB;
function changeImage(thisURL, thisURLB){
	thisURL = thisURL.replace(/&amp;/g, '&');
	imagePath = thisURL;
	imagePathBig = thisURLB;
	thisMovie("prodFlash").SetVariable('image', imagePath);
	thisMovie("prodFlash").SetVariable('imagebig', imagePathBig);
	thisMovie("prodFlash").Rewind();
	thisMovie("prodFlash").Play();
}
// superzoom
var action;
function superzoom(action) {
	if (action == 'enlarge') {
		$('#prodZoom').addClass("zoomed");
		$('#prodFlash').attr({
			width: "960"
		});
	} else if (action == 'reduce') {
		$('#prodZoom').removeClass("zoomed");
		$('#prodFlash').attr({
			width: "420"
		});
	}
}