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_swapImage() { //v3.0

  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)

   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}

}

function MM_swapImgRestore() { //v3.0

  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;

}



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 changeTitle(){

	//document.title = "Merchant Technologies - " + $page_title;

}



function hideShowInvisibleSections(){

	//close links at bottom of page used by google bot

	var target = document.getElementById('pageLinks');

	if(typeof target != "undefined"){

		if(target){

			target.style.display = 'none';

		}

	}

	

	//close subitems in retail solution pages now that it's been indexed by SE

	if(typeof $jscript_totalItems != "undefined"){

		if ($jscript_totalItems != 0){

			if ($jscript_totalItems == "whyMT"){

				closeAllGroupsWhyMT();

			}else{

				closeAllGroups($jscript_totalItems);

			}

		}

	}

	

	//show all remaining links

	//for (i=0; i < this.document.links.length; i++){

	//	this.document.links[i].style.visibility = 'visible';

	//}

	

	target = document.getElementById('linkContactUS');

	if(typeof target != "undefined"){

		if(target){

			target.innerHTML = "<a title='Contact Merchant Technologies' href='http://www.merchanttechnologies.com/mtpos/contact-us.php'>Contact Us</a>";

		}

	}

	

	target = document.getElementById('linkSiteSearch');

	if(typeof target != "undefined"){

		if(target){

			//target.innerHTML = "<a title='Search Merchant Technologies' href='http://www.merchanttechnologies.com/mtpos/search.bis.php'>Site Search</a>";

		}

	}

	

	target = document.getElementById('linkLinkPartners');

	if(typeof target != "undefined"){

		if(target){

			target.innerHTML = "<a title='Link Partners' href='http://www.merchanttechnologies.com/mtpos/categories/link-partners/link-partners.php'>Link Partners</a>";

		}

	}

	

	target = document.getElementById('linkBreadCrumb');

	if(typeof target != "undefined"){

		if(target){

			target.innerHTML = $breadCrumb;

		}

	}

	

	target = document.getElementById('linkECommSites');

	if(typeof target != "undefined"){

		if(target){

			target.innerHTML = '<ul><li><a href="http://www.allcanes.com/" target="_new">All Sports</a></li><li><a href="http://www.growingtreetoys.com/" target="_new">Growing Tree Toys</a></li><li><a href="http://www.leomeyers.com/" target="_new">Leo Meyers Uniforms</a></li><li><a href="http://www.lbjstore.com/" target="_new">Lady Bird Johnson Wildflower</a></li><li><a href="http://www.ibiley.com/" target="_new">Ibiley School Uniforms</a></li><li><a href="http://www.perrets.com/" target="_new">Perret\'s Army Surplus</a></li></ul>';

		}

	}

	

	target = document.getElementById('linkRequestMoreInfo');

	if(typeof target != "undefined"){

		if(target){

			target.innerHTML = "<a href='http://www.merchanttechnologies.com/mtpos/categories/support/email-sales.php'>Request More Information</a>";

		}

	}

	

	target = document.getElementById('linkContactUsContent');

	if(typeof target != "undefined"){

		if(target){

			target.innerHTML = "General Information & Sales: <a href='http://www.merchanttechnologies.com/mtpos/categories/support/email-sales.php'>E-mail Sales</a><br>Customer Support:  <a href='http://www.merchanttechnologies.com/mtpos/categories/support/email-support.php'>E-mail Support</a>";

		}

	}

}