﻿// JScript File

function nav(url)
{
    window.location.href = url;
}


function VideoFlash()
{
	var nW = window.open('','FlashProductDemo','resizable=yes,width=1003,height=710,statusbar=no,scrollbar=no,top=(screen.width-1000.width)/2,left=(screen.height-670.height)/2')
	if (nW)
	{
		nW.focus();
		nW.location.href = '/in/Flash/Video/videoflash.html';		
		nW = null;
	}
}

function largeview(w, h, u)
{
	window.open(u,'largeview','resizable=yes,width='+w.toString()+',height='+h.toString()+',statusbar=no,scrollbar=no,left='+(screen.width-w)/2+','+'top='+(screen.height-h)/2)
}
 
function gGetPopupParamString(bResizeable,bScrollbars,bStatusbar,bToolbar,bMenubar,nWidth,nHeight)
{
	var nLeft = (screen.width - nWidth)/2;
	var nTop = (screen.height - nHeight)/2;
	return "resizable="+bResizeable+",scrollbars="+bScrollbars+",status="+bStatusbar+",toolbar="+bToolbar+",menubar="+bMenubar+",width="+nWidth+",height="+nHeight+",left="+nLeft+",top="+nTop;
}

function popwin(url,name,bResizeable,bScrollbars,bStatusbar,bToolbar,bMenubar,nWidth,nHeight,focus)
{
var paramString = gGetPopupParamString(bResizeable,bScrollbars,bStatusbar,bToolbar,bMenubar,nWidth,nHeight);
var nW = window.open(url,name,paramString);
if(nW && focus){nW.focus();}
return nW;
}

function ViewMap()
{popwin("../events/routemap.htm","ViewMap","no","no","no","no","no",650,550,true);}
