function showByPosition(object,x,y,e) {
    if (document.layers && document.layers[object]) {
        if ((e.x + x + 50 + document.layers[object].clip.width) > (window.pageXOffset + window.innerWidth))
            x = x - document.layers[object].clip.width;

        if ((e.y + y + 50 + document.layers[object].clip.height) > (window.pageYOffset + window.innerHeight))
            y *= -4;

        document.layers[object].left = e.x + x;
        document.layers[object].top = e.y + y;
        document.layers[object].visibility = 'visible';
		
		changeText(object,'','<p class="SupertopText">Pricematch This Product!</p><p><strong>What is Pricematching?</strong></p><p>At Easypricematch.com, you are GUARANTEED the lowest possible price on all your health supplement needs. If you find a lower price anywhere, simply enter that price and the compeitors web address and Easypricematch.com will instantly BEAT that price by 5%!</p><p>&nbsp;</p><p style="font-weight:bolder; font-size:small;" align="center"><a href="#" onClick="hide(\'help\')">Close This Window</a></p><br>')
		
    }
    else if (document.all) {
        e = window.event;

        if ((e.x + x + document.all[object].clientWidth) > (document.body.clientWidth + document.body.scrollLeft))
            x = (document.body.clientWidth + document.body.scrollLeft) - document.all[object].clientWidth;
        else
            x = e.x + x;

        if ((e.y + y + document.all[object].clientHeight) > (document.body.clientHeight + document.body.scrollTop))
            y = e.y - (y * 4);
        else
            y = e.y + y;

        document.all[object].style.posLeft = x;
        document.all[object].style.posTop = y;
        document.all[object].style.visibility = 'visible';
		
		changeText(object,'','<p class="SupertopText">Pricematch This Product!</p><p><strong>What is Pricematching?</strong></p><p>At Easypricematch.com, you are GUARANTEED the lowest possible price on all your health supplement needs. If you find a lower price anywhere, simply enter that price and the compeitors web address and Easypricematch.com will instantly BEAT that price by 5%!</p><p>&nbsp;</p><p style="font-weight:bolder; font-size:small;" align="center"><a href="#" onClick="hide(\'help\')">Close This Window</a></p><br>')		
    }
}

function hide(object) {
    if (document.layers && document.layers[object])
        document.layers[object].visibility = 'hidden';
    else if (document.all)
        document.all[object].style.visibility = 'hidden';
}

function doClear(theText) {
     if (theText.value == theText.defaultValue) {
         theText.value = ""
     }
 }
 
function changeText(objName,x,newText) { 
  if ((obj=MM_findObj(objName))!=null) with (obj)
    if (document.layers) {document.write(unescape(newText)); document.close();}
    else innerHTML = unescape(newText);
}

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_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);


function replaceBadText(textToReplace)
{

	return true;

	//if(textToReplace != '')
	//{

	//list of words to replace
	//bwordslist = "steroids,steroid,pro-steroid,prosteroids,pro-steroids,prosteroid,prohormone,pro-hormone,prohormones,pro-hormones,andro,Pro-Steroid,Steroids,Steroid,Prosteroids,Pro-Steroids,Prosteroid,Prohormone,Pro-Hormone,Prohormones,Pro-hormones,Andro";

	//var detailsText = document.getElementById(textToReplace).innerHTML;

	//Clean-up
	//var bwords = bwordslist.split(',');
	//for(i=0; i!=bwords.length; i++)
	//{
		
	//	detailsText = detailsText.replace(bwords[i],'supplement');
		
	//}

	//	detailsText = detailsText.replace('anabolic','muscle building');
	//	detailsText = detailsText.replace('Anabolic','Muscle building');


	//document.getElementById(textToReplace).innerHTML = textToReplace;

	//}
	

}









