 NAV = 0;
 version = navigator.appVersion;
 
 if (navigator.appName == "Netscape" || navigator.appName == "Opera") {
  if (version.substring(0,3) >= "4.0"){NAV = 1;} else
  if (version.substring(0,3) >= "3.0"){NAV = 1;}
 }
 else if  (navigator.appName == "Microsoft Internet Explorer") {
  if (version.substring(0,3) >= "4.0"){NAV = 1;}
 }
 else {NAV=0;}
 
 function moveToFront() {
	if (NAV==1) {
		focus();
		return;
	}
 }
 function closeMe () {
 	if (NAV==1) {
		self.close();
		return;
	}
 }



function jkpopwinclose(){
  if (typeof(jkpopwin)!="undefined"){
  //} else {
  jkpopwin.close();
  }
}




// for free JavaScript tutorials and scripts
// This notice must stay intact for use

var popbackground="#DBDBDB"; //specify backcolor or background image for pop window
var windowtitle="Delta Marine Construction" ; //pop window title

function detectexist(obj){
return (typeof obj !="undefined");
}


function jkpopimage(imgpath, popwidth, popheight, textdescription){
scrolltype="no";
	//if (popheight >= 650) scrolltype="yes";//

	function getpos(){
		leftpos=(detectexist(window.screenLeft))? screenLeft+document.body.clientWidth/2-popwidth/2 : detectexist(window.screenX)? screenX+innerWidth/2-popwidth/2 : 0
		toppos=(detectexist(window.screenTop))? screenTop+document.body.clientHeight/2-popheight/2 : detectexist(window.screenY)? screenY+innerHeight/2-popheight/2 : 0
		if (window.opera){
			leftpos-=screenLeft;
			toppos-=screenTop;
		}
	//Bypass all top setting and just place it 8px from the top for the first call
	toppos=8;
	}
	
getpos();		
	
		 if (navigator.appName == "Opera" ) {
		 	
		 	popwidth=popwidth+15;
		 	popheight= popheight+20;
		 	}
	
	popwidth=popwidth-10;
	var  winattributes = 'width='+popwidth+', height='+popheight+', resizable=yes, scrollbars='+scrolltype+', statusbar=no, status=no, left='+leftpos+', top='+toppos;
	var bodyattribute = 'bottommargin=0 rightmargin=0 topmargin=4 leftmargin=0 bgcolor='+popbackground;

		 if (navigator.appName == "Opera" ) {
		 	jkpopwinclose();}

		foxheight=0;
		 if (navigator.appName == "Netscape" ) {
			popheight=popheight-24;}

	if (typeof jkpopwin=="undefined" || jkpopwin.closed){
		jkpopwin = window.open("","",winattributes);
	} else {
		//getpos() //uncomment these 2 lines if you wish subsequent popups to be centered too
		//jkpopwin.moveTo(leftpos, toppos)
		
		if  (navigator.appName == "Microsoft Internet Explorer") {
		 	if (typeof document.body.style.maxHeight != "undefined") {
		 	//alert("test 2");
		 	popwidth=popwidth+3;
		 	popheight= popheight+26;
		  }
		 }


		foxheight=0;
		 if (navigator.appName == "Netscape" ) {
			foxheight = 48;}
			
			
		jkpopwin.resizeTo(10+popwidth, foxheight+popheight+60);
	}
	jkpopwin.document.open();
	
	js_loc="../bbl.js"
	
	
	jkpopwin.document.write('<html><title>'+windowtitle+'</title><script src="'+js_loc+'" type="text/javascript"></script><link rel="stylesheet" type="text/css" href="../layout/Smooth_Blue/popstyle.css"><body '+bodyattribute+' ><center><A title="Click Image To Close Window" HREF="javascript:closeMe();"><img border="0" class="gray_border" src="'+imgpath+'" style="margin-bottom: 0; margin-top:3px;"></a><br><center><table border="0" width="100%" id="table1" cellpadding="0" cellspacing="0"><tr><td width=50% style="padding-left:10px; padding-right:10px;"><hr></td><td nowrap> '+textdescription+' </td><td width=50% style="padding-left:10px; padding-right:10px;"><hr></td></tr></table></body></html>');
	jkpopwin.document.close();
	jkpopwin.focus();
}

//if (top.frames.length == 0) {top.location = "index.php"};
browserVer = parseInt(navigator.appVersion);
if( document.images && browserVer >=3 ) browser = "true"; 


function newwindow(page,width,height) {
var newwin = window.open( page ,'','resizable=yes,width=' + width + ',height=' + height + ', status=no,location=no,toolbar=no,menubar=no,scrollbars=no');
}


