
function changingPhotos(_imgHolder,_array,ranNum){
var imgHolder = document.getElementById(_imgHolder);
	
	imgHolder.style.filter = "revealTrans(duration=1, transition=12)";
	imgHolder.src = _array[ranNum];
	imgHolder.filters.revealTrans.stop();
	imgHolder.filters.revealTrans.apply();
	imgHolder.filters.revealTrans.play();
}

function NoBorderWindow(linkinfo,width,height,xpos,ypos){
var win, d;
	win = window.open(linkinfo,'', 'left=0,top=0,width=100,height=100,scrollbars=false,status=no,toolbar=no,menubar=no,location=no');
	win.resizeTo(width,height);
	win.moveTo(xpos,ypos);
}

function ComposeMessageWindow(){
var win;
	win = window.open('compose_message.asp','Compose New Message', 'left=50,top=50,width=650,height=250,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no');
	win.resizeTo(width,height);
	win.moveTo(xpos,ypos);
}

function BioWindow(linkinfo){
var win;
	win = window.open(linkinfo,'', 'left=25,top=25,width=800,height=250,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no');
	win.moveTo(50,50);
}

function NewWindow(linkinfo,width,height,xpos,ypos){
var win, d;
	win = window.open(linkinfo,'', 'left=0,top=0,width=100,height=100,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no,resizable=yes');
	win.resizeTo(width,height);
	win.moveTo(xpos,ypos);
}

function picWindow(img, x)
{
	var title = "Photos"
	if(!document.getElementById) return;
	var win, d, c;
	win = window.open('about:blank', 'image' + (new Date()).getSeconds(), 'left=0,top=0,width=150,height=100,scrollbars=false,status=no,toolbar=no,menubar=no,location=no');
	d = win.document;
	c = [screen.width, screen.height];
	title = title || 'Image';
	d.open();
	d.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">\n\n<html>\n<head>\n\t<title>loading</title></head>\n<body onload="window.resizeTo(document.images[0].width, document.images[0].height+30); window.moveTo(parseInt((' + c[0] + '-document.images[0].width)/2), parseInt((' + c[1] + '-document.images[0].height)/2)); document.title=\'' + title + '\'">\n<a href="javascript:window.close()" title="click to close"><img src="' + img + '" border="0" alt="click to close" style="position:absolute; left:0px; top:0px"></a>\n</body>\n</html>');
	d.close();
	return false;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
   
function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
