/**
 * FlexiZoomer Image Gallery supporting JavaScript
 * Since 13.feb 2009
 *
 */



$(document).ready(initialize);


function initialize(){

	$(".imageLink").click(setPath);
}


function setPath(){
	
	// get image url
	var url = this.href;

	// update flash with new image
	try{
	 getFlashMovie('rotateTool').setNewPath(url);
  }
  catch(error){
    alert(error);
    //alert("Either run this script online, or add the local folder to tursted location at: http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04a.html");
  }

	// supress opening the link
	return false;
}

function getFlashMovie(movieName) {
  var isIE = navigator.appName.indexOf("Microsoft") != -1;
  return (isIE) ? window[movieName] : document[movieName];
}


