<!--



function PopUpImageWindow(sURL,iWidth,iHeight)
 {
 	windowprops = "left="+(screen.width - (iWidth)) / 2+",top="+(screen.height - (iHeight)) / 2+",width=" + (iWidth) + ",height=" + (iHeight);
	text = "<html><head><title>Image Viewer</title></head><body bgcolor='white' topmargin='0' leftmargin='0' marginwidth='0' marginheight='0'";
	text += "><center><img src='" + sURL + "'>";
	text += "</center></body></html>";
	preview = window.open("", "preview", windowprops);
	preview.document.open();
	preview.document.write(text);
	preview.focus()
	preview.document.close();
	//window.open(sURL, 'SmarttechImage', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width='+iWidth+',height='+iHeight+',left = 262,top = 134,');
 }

function PopUpFlash(sFlashURL,iWidth,iHeight)
 {

 	windowprops = "left="+(screen.width - (iWidth)) / 2+",top="+(screen.height - (iHeight)) / 2+",width=" + (iWidth) + ",height=" + (iHeight);
	text = "<html><head><title>Image Viewer</title></head><body bgcolor='white' topmargin='0' leftmargin='0' marginwidth='0' marginheight='0'";
	text += "><center>";
    text += "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0' width=" + iWidth + " height=" + iHeight + " VIEWASTEXT> ";
    text += "<param name=movie value='" + sFlashURL + "'> ";
    text += "<param name=quality value=best> ";
    text += "<param name=bgcolor value=#ffffff> ";
    text += "<param name=loop value=false> ";
    text += "<param name=scale value=exactfit> ";
    text += "<param name=menu value=false> ";
    text += "<param name=salign value=LT> ";
    text += "<param name=wmode value=opaque> ";
    text += "<embed src='" + sFlashURL + "' loop=false scale=exactfit menu=false quality=best salign=LT wmode=opaque bgcolor=#ffffff width='" + iWidth + "' height='" & iHeight & "' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'></embed> ";
    text += "</object>";
	text += "</center></body></html>";
	
	preview = window.open("", "preview", windowprops);
	preview.document.open();
	preview.document.write(text);
	preview.focus()
	preview.document.close();
	//window.open(sURL, 'SmarttechImage', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width='+iWidth+',height='+iHeight+',left = 262,top = 134,');

 } 

function PopUpURL(sURL,iWidth,iHeight)
 {

 	windowprops = "left="+(screen.width - (iWidth)) / 2+",top="+(screen.height - (iHeight)) / 2+",width=" + (iWidth) + ",height=" + (iHeight);
	
	//preview = window.open(sURL, "preview", windowprops);
	window.open(sURL, "Window", windowprops);
	//preview.document.open();
	//preview.focus()
	//preview.document.close();
	//window.open(sURL, "preview", 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,'+windowprops);

 } 

function setCookie(name, value, expires, path, domain, secure)
// name - name of the cookie
// value - value of the cookie
// [expires] - expiration date of the cookie (defaults to end of current session)
// [path] - path for which the cookie is valid (defaults to path of calling document)
// [domain] - domain for which the cookie is valid (defaults to domain of calling document)
// [secure] - Boolean value indicating if the cookie transmission requires a secure transmission
 {
  var curCookie = name + "=" + escape(value) +
      ((expires) ? "; expires=" + expires.toGMTString() : "") +
      ((path) ? "; path=" + path : "") +
      ((domain) ? "; domain=" + domain : "") +
      ((secure) ? "; secure" : "");
  document.cookie = curCookie;
 }

function getCookie(name)
// name - name of the desired cookie
// * return string containing value of specified cookie or null if cookie does not exist
 {
  var dc = document.cookie;
  var prefix = name + "=";
  var begin = dc.indexOf("; " + prefix);
  
	if (begin == -1)
	 {
    begin = dc.indexOf(prefix);
    if (begin != 0) return null;
   } 
	else
    begin += 2;
  
	var end = document.cookie.indexOf(";", begin);
  if (end == -1)
		end = dc.length;
  
	return unescape(dc.substring(begin + prefix.length, end));
 }

function deleteCookie(name, path, domain)
// name - name of the cookie
// [path] - path of the cookie (must be same as path used to create cookie)
// [domain] - domain of the cookie (must be same as domain used to create cookie)
// * path and domain default if assigned null or omitted if no explicit argument proceeds
 {
  if (getCookie(name))
	 {
    document.cookie = name + "=" + 
    ((path) ? "; path=" + path : "") +
    ((domain) ? "; domain=" + domain : "") +
    "; expires=Thu, 01-Jan-70 00:00:01 GMT";
	 }
 }
 
 function Help(language,type)
{
	var w1;
	w1 = window.open("/st/" + language + "/Help/" + type + "Help", type + "Help", "height=500,width=465,resizable=1, scrollbars=yes");
	w1.focus();
	return false;
}
function NoResizePopUp(sURL,iWidth,iHeight) {
	winOpts = "height=" + iHeight + ",width=" + iWidth + ",resizable=0 toolbar=0 valign=top";
	var w1
	w1 = window.open(sURL, "window1", winOpts);
	w1.focus()
	return false;
}

function popSite(site){
	var mainWin = window.open(site,'mainWin','width=650,height=400,scrollbars=0,menubar=0,status=0,toolbar=0,location=0,resizable=0,screenX=0,screenY=0,left=50,top=50');
	mainWin.focus();
}

function popTour(site){
	var mainWin = window.open(site,'mainWin','width=955,height=610,scrollbars=0,menubar=0,status=0,toolbar=0,location=0,resizable=0,screenX=0,screenY=0,left=50,top=50');
	mainWin.focus();
}

function popTourSmall(site){
	var mainWin = window.open(site,'mainWin','width=740,height=445,scrollbars=0,menubar=0,status=0,toolbar=0,location=0,resizable=0,screenX=0,screenY=0,left=0,top=0');
	mainWin.focus();
}
function popSync(site){
	var mainWin = window.open(site,'mainWin','width=382,height=291,scrollbars=0,menubar=0,status=0,toolbar=0,location=0,resizable=0,screenX=0,screenY=0,left=0,top=0');
	mainWin.focus();
}
function popSyncPres(site){
	var mainWin = window.open(site,'mainWin','width=660,height=520,scrollbars=0,menubar=0,status=0,toolbar=0,location=0,resizable=0,screenX=0,screenY=0,left=0,top=0');
	mainWin.focus();
}
function popTourSLM(site){
	var mainWin = window.open(site,'mainWin','width=850,height=384,scrollbars=0,menubar=0,status=0,toolbar=0,location=0,resizable=0,screenX=0,screenY=0,left=50,top=50');
	mainWin.focus();
}
// -->
