<!--HIDE FROM INCOMPATIBLE BROWSERS

var curBanner="barba1";

var begin; 

function changeBanner() {

	if (curBanner == "barba4") {

		document.banner.filters[0].apply();
		document.banner.src = "b_imagesfiles/bpharma_image3b.jpg";
		document.banner.filters[0].play(1);
		curBanner = "barba3";
	}

	else 
		if (curBanner == "barba3") {

		document.banner.src = "b_imagesfiles/bpharma_image2b.jpg";

		curBanner = "barba2";
	}

	else 	if (curBanner =="barba2") {

		document.banner.filters[0].apply();
		document.banner.src = "b_imagesfiles/bpharma_image1b.jpg";
		document.banner.filters[0].play(1);
		curBanner = "barba1";
	}

	else	{
		
		document.banner.src = "b_imagesfiles/bpharma_banner.png";

		curBanner = "barba4";
	}

}


function popWin(url) {
	
	WinShow=window.open(url,'show','width=350,height=350,menubar=No,resizable=No,scrollbars=yes,status=No,titlebar=no,toolbar=No,replace=No');
	test=(WinShow == null || typeof(WinShow) == "undefined") ? true: false;
	return test;
	}


var curMsg="pub1";

var start;

function changeCom() {

	if (curMsg == "pub4") {

		document.AdvertMsg.filters[0].apply();
		document.AdvertMsg.innerHTML="B-PHARMA THE NATURAL PRODUCTS";
		document.AdvertMsg.filters[0].play(1);
		curMsg = "pub3";
	}

	else 
		if (curMsg == "pub3") {

		document.AdvertMsg.innerHTML="Test2";

		curMsg = "pub2";
	}

	else 	if (curMsg =="pub2") {

		document.AdvertMsg.filters[0].apply();
		document.AdvertMsg.innerHTML="Test3";
		document.AdvertMsg.filters[0].play(1);
		curMsg = "pub1";
	}

	else	{
		
		document.AdvertMsg.innerHTML="Test4";

		curMsg = "pub4";
	}

}



/*This Javascript uses the following elements
 function named changeQuote without parameter
 one array named quotes-length : 17
 three Math methods: Math.round, Math.abs, and Math.random.
 on array with seventeen elements
*/ 

function changeQuote() {
		var quotes=new Array(17);
		quotes[0]="b_imagesfiles/bpharma_image1.jpg";
		quotes[1]="b_imagesfiles/bpharma_image2.jpg";
		quotes[2]="b_imagesfiles/bpharma_image3.jpg";
		quotes[3]="b_imagesfiles/bpharma_image4.jpg";
		quotes[4]="b_imagesfiles/bpharma_image5.jpg";
		quotes[5]="b_imagesfiles/bpharma_image6.jpg";
		quotes[6]="b_imagesfiles/bpharma_image7.jpg";
		quotes[7]="b_imagesfiles/bpharma_image8.jpg";
		quotes[8]="b_imagesfiles/bpharma_image9.jpg";
		quotes[9]="b_imagesfiles/bpharma_image10.jpg";
		quotes[10]="b_imagesfiles/bpharma_image11.jpg";
		quotes[11]="b_imagesfiles/bpharma_image12.jpg";
		quotes[12]="b_imagesfiles/bpharma_image13.jpg";
		quotes[13]="b_imagesfiles/bpharma_image14.jpg";
		quotes[14]="b_imagesfiles/bpharma_image15.jpg";
		quotes[15]="b_imagesfiles/bpharma_image16.jpg";
		quotes[16]="b_imagesfiles/bpharma_image17.jpg";
		quotes[16]="b_imagesfiles/bpharma_image17.jpg";

//store the random number generated

	var newQuote=quotes[Math.round(Math.abs(Math.random()*quotes.length-1))];

//writes out the quote
	
	document.getElementById("bpharmaImages").filters[0].apply();
	document.getElementById('bpharmaImages').src=newQuote;
	document.getElementById("bpharmaImages").filters[0].play(1);

	}

//quotes display frequency

	var tick = setInterval("changeQuote()",5000);


//Email show function

function showEM (userName,emdom,emserver)
	{
	   var emLink=userName+"@"+emdom+emserver;
	   document.write("<a href='mailto:"+emLink+"'>");
	   document.write("<span>"+emLink+"</span>");
	   document.write("</a>");
	}

//Message show

var txtsize=5;
var maxsize=20;

function writemsg()
{
if (txtsize<maxsize)
	{
	document.getElementById('AdvertMsg').style.fontSize=txtsize;
	txtsize++;
	timer=setTimeout("writemsg()",100);
	}
}

//function stoptimer()
{
clearTimeout(timer);
}

//Message show 2

message="BASSAR-PHARMA: CARE AND HEALING FROM NATURE FOR HAPPY AND HEALTHY COMMUNITIES";
pos=0;
maxlength=message.length+1;

function writemsg2()
{
if (pos<maxlength)
	{
	txt=message.substring(pos,0);
	document.forms[0].msgbox.value=txt;
	pos++;
	timer=setTimeout("writemsg2()",50);
	}
}
function stoptimer()
{
clearTimeout(timer);
}

//STOP HIDING FROM INCOMPATIBLE BROWSERS-->

