function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function VideoWin(loc) {    
         win = window.open(loc,'Video','width=400,height=350');    

}



var newwindow
var thisimage
var thiswidth
var thisheight

thisimage = "";

function smartopen(tempimage,tempwidth,tempheight){
	 thisimage = tempimage
	 thiswidth = tempwidth
         tempheight = tempheight+80
	 thisheight = tempheight
	
	if (!(newwindow)){
		newwindow = window.open('../tech/newwindow.htm','largerimage','WIDTH='+tempwidth+',HEIGHT='+tempheight+',scrollbars=no,toolbar=no,status=no,menubar=no,resizable=no');
	}
	loadimage()
}

function loadimage(){

	if 	(newwindow.document.images.length > 0) {
		newwindow.document.img1.src = thisimage
		newwindow.resizeTo(thiswidth,thisheight)
		newwindow.focus();
	}else{
		setTimeout('loadimage()',100)
	}
}

function unloadnewwindow(){
	newwindow = null;
}

