
function getimageinfo(show,currentimage)
{
	var label = currentimage.substring(0,currentimage.lastIndexOf(".")); 
	if (label.indexOf("/") > 0) {
		label = label.substring(label.lastIndexOf("/")+1);
	}
	if (show == "1")	{
		page = "res/"+label+".html";
		openwin = window.open(page,"","width=450,height=500,scrollbars=1,resizable=0,toolbar=0,location=0,status=0,menubar=0");
	}
}
function jstrigger(currentimage)
{
	getimageinfo(1,currentimage);
}

function fullscreen() {
	
	var isWin=(navigator.appVersion.indexOf("Win")!=-1)? true : false;
	var isIE=(navigator.appVersion.indexOf("MSIE")!=-1)? true : false;
	var notIE7 = (navigator.appVersion.indexOf("MSIE 7.0")!=-1)? false : true;

	if(isWin&&isIE&&notIE7){
		var fullwindow = window.open("fullscreen.html",'FotoPlayer',"fullscreen=1, scrollbars=0");
		fullwindow.focus();
	}else{
// 	for non-ie browsers, specify width and height instead of using fullscreen 
		var fullwindow = window.open("fullscreen.html","FotoPlayer","width="+screen.availWidth+",height="+screen.availHeight);
		fullwindow.moveTo(0,0);
		fullwindow.focus();
	}	
}


function SDTF(state)
{
     var   flashMovie=getFlashMovieObject("xmlphotogallery");
     flashMovie.SetVariable("mousestate", state);
}

function getFlashMovieObject(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);
  }
}




	