// JavaScript Document
<!-- Lenmar Javascript addition  begin -->
var childWnd;
   
   function openBC(varSettings)
   {
   childWnd = open('http://207.178.212.162/configurator.asp?settings=' + varSettings,'childWindow','toolbar=no,scrollbars=yes,resizable=no,width=570,height=600,top=120,left=150')
   if (childWnd.opener == null) childWnd.opener = self;
   }

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->

<!--Bookmark addition begin -->
<!--
function bookmarksite(title, url){
if (document.all)
window.external.AddFavorite(url, title);
else if (window.sidebar)
window.sidebar.addPanel(title, url, "")
}
//-->

<!--Pop-up addition begin -->
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->

<!--Swap images addition begin -->
<!--
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_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function flvFSTI4(){//v1.01
this.style.filter="";}

function flvFSTI3(v1,v2){//v1.01
var v3;if (v1.filters[0]&&v1.filters[0].status==2){v1.filters[0].Stop();}if (v2==0){v3="blendTrans(Duration="+v1.STI8+")";}else {v3="revealTrans(Duration="+v1.STI8+",Transition="+(v2-1)+")";}v1.style.filter=v3;}

function flvFSTI1(){//v1.01
// Copyright 2005, Joseph Miller (www.josephmiller.cc/)
var v1=arguments,v2=document,v3;v2.STI4=new Array();v2.STI7=(navigator.userAgent.toLowerCase().indexOf("mac")!=-1);for (var v4=0;v4<v1.length-2;v4+=5){v3=MM_findObj(v1[v4]);if (v3){v3.STI5=v3.src;v3.STI6=v1[v4+1];v3.STI2=v1[v4+2];v3.STI3=v1[v4+3];v3.STI8=v1[v4+4];v2.STI4[v2.STI4.length]=v3;if (v3.filters&&!v2.STI7){flvFSTI3(v3,v3.STI2);v3.onfilterchange=flvFSTI4;v3.filters[0].Apply();}v3.src=v3.STI6;if (v3.filters&&!v2.STI7){v3.filters[0].Play();}}}}

function flvFSTI2(){//v1.01
var v1,v2=document,v3=v2.STI4,v4;for (v4=0;v3&&v4<v3.length&&(v1=v3[v4])&&v1.STI5;v4++){if (v1.filters&&!v2.STI7){flvFSTI3(v1,v1.STI3);v1.filters[0].Apply();}v1.src=v1.STI5;if (v1.filters&&!v2.STI7){v1.filters[0].Play();}}}





	// LEFT Side navigation script
	// set up default values 
var mbcatt2 = "";  // test value
var navvid = "";
var navvid1 = "";
var host2 = location.host;
var sw_path = location.pathname;
var sw_srch = document.location.search
var hreff = location.href;

// test that there is an mbcat somewhere in the url or the search string... then get the value.
if (sw_path.indexOf("mbcat") != -1  || sw_srch.indexOf("mbcat") != -1 )
{
	if (sw_srch) { // if a search string read mbcat tht way
		var sw_srch2 = sw_srch.split("mbcat="); sw_srch = sw_srch2[1].split("&");
		var mbcatt2 = sw_srch[0];
	}
	else { // if no search string read mbcat that way
		var sw_path2 = sw_path.split("/mbcat."); sw_path = sw_path2[1].split("/");
		var mbcatt2 = sw_path[0];	
	} //end if-else for determining the value for mbcat
	
		// set navvid2 to mbcat then strip off ending number(s) for navvid and add a 1 for navvid1.
	var navvid2 = mbcatt2;
		// test the string and add each non number to navvid to end up with the sub-navigation area
	for (var i = 0; i < navvid2.length; i++)
	{
		if (isNaN(navvid2.charAt(i)) == 1) navvid += navvid2.charAt(i);
	}
	// set the value of navvid1 based on the navvid
	var navvid1 = navvid + "1"; 
} // end if chekcout or view cart page tests



// end of MVLDesign.com JavaScript

//-->