<!--
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]+"'");
}

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_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

// extracts document name and truncates extension off.  Used in QOC for QOCdoctitle (div)
function DocNameExtract() {
   wholeurl = window.location.href;
   x = wholeurl.length;
   while((wholeurl.substring(x,x-1)) != "."){ x--; } clipend = x;
   while((wholeurl.substring(x,x-1)) != "/"){ x--; } clipstart = x;
   page_name = wholeurl.substring(clipend-1,clipstart);
   return page_name.replace(/_/g," ");
}

function QFback() {
    history.back(-1);
}

function MM_setTextOfLayer(objName,x,newText) { //v4.01
  if ((obj=MM_findObj(objName))!=null) with (obj)
    if (document.layers) {document.write(unescape(newText)); document.close();}
    else innerHTML = unescape(newText);
}

//reads cookie for Fitting Room
function QF_GetFittingRoom(a) { // v1.7 PVII original fcn name P7_getCSS
  var i=0,j=0,e=0,theSheet="";
  a=a+"=",t="<",u="LINK";
  var alen=a.length,clen=document.cookie.length;
  while (i < clen) {
   j=i+alen;
   if(document.cookie.substring(i,j)==a) {
     e = document.cookie.indexOf(";",j);
     if (e==-1) {e=clen}
     theSheet = unescape(document.cookie.substring(j,e));
     document.write(t+u+' rel="stylesheet" type="text/css" href="' + theSheet + '">');
     break;}
   else {i=document.cookie.indexOf(" ",i)+1;
     if (i==0) break; } }
}
QF_GetFittingRoom('QF_FittingRoom');

//reads cookie for NS6fix, history.back bug
function QF_GetNS6fix(a) { // v1.7 PVII original fcn name P7_getCSS
  var i=0,j=0,e=0,theSheet="";
  a=a+"=",t="<",u="LINK";
  var alen=a.length,clen=document.cookie.length;
  while (i < clen) {
   j=i+alen;
   if(document.cookie.substring(i,j)==a) {
     e = document.cookie.indexOf(";",j);
     if (e==-1) {e=clen}
     theSheet = unescape(document.cookie.substring(j,e));
     document.write(t+u+' rel="stylesheet" type="text/css" href="' + theSheet + '">');
     break;}
   else {i=document.cookie.indexOf(" ",i)+1;
     if (i==0) break; } }
}
QF_GetNS6fix('QF_NS6fix');

//reads cookie for lg/sm text preference, this one must be last
function QF_GetTextSize(a) { // v1.7 PVII original fcn name P7_getCSS
  var i=0,j=0,e=0,theSheet="";
  a=a+"=",t="<",u="LINK";
  var alen=a.length,clen=document.cookie.length;
  while (i < clen) {
   j=i+alen;
   if(document.cookie.substring(i,j)==a) {
     e = document.cookie.indexOf(";",j);
     if (e==-1) {e=clen}
     theSheet = unescape(document.cookie.substring(j,e));
     document.write(t+u+' rel="stylesheet" type="text/css" href="' + theSheet + '">');
     break;}
   else {i=document.cookie.indexOf(" ",i)+1;
     if (i==0) break; } }
}
QF_GetTextSize('QF_TextSize');

function tmt_winControl(id,c){ 
	var d=eval(id)==null||eval(id+".closed");
	if(!d){eval(id+"."+c);}
}

function popcenter(center, top, left, height, width, name, winName) {

var LeftPos;
var TopPos;

if(center)
	{
	if ((screen.height - height) > 0)
		{
		TopPos = (screen.height - height)/2;

		}
		else
		{
		TopPos = 0;
		}
	if ((screen.width - width) > 0)
		{
		LeftPos = (screen.width - width)/2;
		}
		else
		{
		LeftPos = 0;
		}
	}
else
	{
	if ((screen.height - height) > 0)
		{
		TopPos = top;
		}
		else
		{
		TopPos = 0;
		}
	if ((screen.width - width) > 0)
		{
		LeftPos = left;
		}
		else
		{
		LeftPos = 0;
		}
	}

  popupWin = window.open(name, winName,'menubar=0,status=0,toolbar=0,location=0,resizable=0,scrollbars=0,width=' + width +',height=' + height  +',top= ' + TopPos + ',left= ' + LeftPos)
  popupWin.focus()
}



function popcenterscroll(center, top, left, height, width, name, winName) {

var LeftPos;
var TopPos;

if(center)
	{
	if ((screen.height - height) > 0)
		{
		TopPos = (screen.height - height)/2;

		}
		else
		{
		TopPos = 0;
		}
	if ((screen.width - width) > 0)
		{
		LeftPos = (screen.width - width)/2;
		}
		else
		{
		LeftPos = 0;
		}
	}
else
	{
	if ((screen.height - height) > 0)
		{
		TopPos = top;
		}
		else
		{
		TopPos = 0;
		}
	if ((screen.width - width) > 0)
		{
		LeftPos = left;
		}
		else
		{
		LeftPos = 0;
		}
	}

  popupWin = window.open(name, winName,'menubar=0,status=0,toolbar=0,location=0,resizable=1,scrollbars=1,width=' + width +',height=' + height  +',top= ' + TopPos + ',left= ' + LeftPos)
  popupWin.focus()
}


    // mungs href e.m*ail add*resses of clients from sp*ambts
	// decy = de*coy
	function qfolio_mung( pttwo, decya, ptone, decyb ) {
        var sign = "&#64;";
        var eadr = ptone + sign + pttwo;
        document.write( 
          "<" + "a" + " " + "href=\"" + "mai" + "lto:" + eadr +"\"" +  "onFocus=\"if\(this.blur\)this.blur\(\)\"" + ">" +
          eadr +
          "<\/a>");
      }
	  
    // mungs href e.m*ail add*resses (for envelope button) of clients from sp*ambts
	// decy = de*coy
	function qfolio_mung_btn( pttwo, decya, ptone, decyb ) {
        var sign = "&#64;";
        var eadr = ptone + sign + pttwo;
        document.write( 
          "<" + "a" + " " + "href=\"" + "mai" + "lto:" + eadr +"\"" +  "onMouseOver=\"MM_showHideLayers\(\'TXTemail\',\'\',\'show\'\)\" onMouseOut=\"MM_showHideLayers\(\'TXTemail\',\'\',\'hide\'\)\" onFocus=\"if\(this.blur\)this.blur\(\)\"" + ">");
      }
//->





