function tell_friend()
{
//  window.open("tellafriend.htm","FRIENDS01","STATUS=NO,TOOLBAR=NO,LOCATION=NO,DIRECTORIES=NO,COPYHISTORY=NO,MENU=NO,RESISABLE=NO,SCROLLBARS=YES,TOP=40,LEFT=20,WIDTH=300,HEIGHT=420"); 
  window.open("/hmailer/tellafriend.php","_blank","STATUS=NO,TOOLBAR=NO,LOCATION=NO,DIRECTORIES=NO,COPYHISTORY=NO,MENU=NO,RESISABLE=NO,SCROLLBARS=NO,TOP=40,LEFT=20,WIDTH=411,HEIGHT=570"); 
	return false;
}

function contact_us()
{
//  window.open("tellafriend.htm","FRIENDS01","STATUS=NO,TOOLBAR=NO,LOCATION=NO,DIRECTORIES=NO,COPYHISTORY=NO,MENU=NO,RESISABLE=NO,SCROLLBARS=YES,TOP=40,LEFT=20,WIDTH=300,HEIGHT=420"); 
  window.open("/hmailer/contactus.php","_blank","STATUS=NO,TOOLBAR=NO,LOCATION=NO,DIRECTORIES=NO,COPYHISTORY=NO,MENU=NO,RESISABLE=NO,SCROLLBARS=NO,TOP=40,LEFT=20,WIDTH=391,HEIGHT=400"); 
	return true;
}
function mailing_list()
{
//  window.open("tellafriend.htm","FRIENDS01","STATUS=NO,TOOLBAR=NO,LOCATION=NO,DIRECTORIES=NO,COPYHISTORY=NO,MENU=NO,RESISABLE=NO,SCROLLBARS=YES,TOP=40,LEFT=20,WIDTH=300,HEIGHT=420"); 
  window.open("/hmailer/mailinglist.php","_blank","STATUS=NO,TOOLBAR=NO,LOCATION=NO,DIRECTORIES=NO,COPYHISTORY=NO,MENU=NO,RESISABLE=NO,SCROLLBARS=NO,TOP=40,LEFT=20,WIDTH=391,HEIGHT=400"); 
	return true;
}

function register()
{
//  window.open("tellafriend.htm","FRIENDS01","STATUS=NO,TOOLBAR=NO,LOCATION=NO,DIRECTORIES=NO,COPYHISTORY=NO,MENU=NO,RESISABLE=NO,SCROLLBARS=YES,TOP=40,LEFT=20,WIDTH=300,HEIGHT=420"); 
  window.open("/hmailer/register.php","_blank","STATUS=NO,TOOLBAR=NO,LOCATION=NO,DIRECTORIES=NO,COPYHISTORY=NO,MENU=NO,RESISABLE=NO,SCROLLBARS=NO,TOP=40,LEFT=20,WIDTH=391,HEIGHT=470"); 
	return true;
}

function login(returnto)
{
//  window.open("tellafriend.htm","FRIENDS01","STATUS=NO,TOOLBAR=NO,LOCATION=NO,DIRECTORIES=NO,COPYHISTORY=NO,MENU=NO,RESISABLE=NO,SCROLLBARS=YES,TOP=40,LEFT=20,WIDTH=300,HEIGHT=420"); 
  window.open("/hmailer/login.php?returnto="+returnto,"_blank","STATUS=NO,TOOLBAR=NO,LOCATION=NO,DIRECTORIES=NO,COPYHISTORY=NO,MENU=NO,RESISABLE=NO,SCROLLBARS=NO,TOP=40,LEFT=20,WIDTH=391,HEIGHT=400"); 
	return true;
}


function FP_swapImg() {//v1.0
 var doc=document,args=arguments,elm,n; doc.$imgSwaps=new Array(); for(n=2; n<args.length;
 n+=2) { elm=FP_getObjectByID(args[n]); if(elm) { doc.$imgSwaps[doc.$imgSwaps.length]=elm;
 elm.$src=elm.src; elm.src=args[n+1]; } }
}
function FP_getObjectByID(id,o) {//v1.0
 var c,el,els,f,m,n; if(!o)o=document; if(o.getElementById) el=o.getElementById(id);
 else if(o.layers) c=o.layers; else if(o.all) el=o.all[id]; if(el) return el;
 if(o.id==id || o.name==id) return o; if(o.childNodes) c=o.childNodes; if(c)
 for(n=0; n<c.length; n++) { el=FP_getObjectByID(id,c[n]); if(el) return el; }
 f=o.forms; if(f) for(n=0; n<f.length; n++) { els=f[n].elements;
 for(m=0; m<els.length; m++){ el=FP_getObjectByID(id,els[n]); if(el) return el; } }
 return null;
}

var adscounter=1;
var smalladscounter=1;

function changeads()
{
//	alert('t');
	var newlocation
	if (adscounter==1)
	{
		newlocation="googleads.html";
		adscounter=2;
	}
	else if (adscounter==2)
	{
		newlocation="googleads2.html";
		adscounter=1;
	}
// remix
//	parent.ads.location=newlocation;


// alert(newlocation);
//	parent.frames['ads'].window.location=newlocation;


	
	if (smalladscounter==1)
	{
		showhide('smalldiv1');
		showhide('smalldiv2');
		smalladscounter=2;
	}
	else if (smalladscounter==2)
	{
		showhide('smalldiv2');
		showhide('smalldiv3');
		smalladscounter=3;
	}
	else if (smalladscounter==3)
	{
		showhide('smalldiv3');
		showhide('smalldiv1');
		smalladscounter=1;
	}



}


function showhide(layer_ref)
{
//	alert(layer_ref);
	tmp1=document.getElementById(layer_ref);
//tmp1=window.frames['contents'].document.getElementById(layer_ref);
//alert(tmp1);
	state=tmp1.style.display ;
//alert(state);
	if (state == 'block') 
	{
	state = 'none';
	}
	else 
	{
	state = 'block';
	}

	maxwell_smart = document.getElementById(layer_ref);
	maxwell_smart.style.display = state;
}


function FP_preloadImgs() 
{//v1.0
 var d=document,a=arguments; if(!d.FP_imgs) d.FP_imgs=new Array();
 for(var i=0; i<a.length; i++) { d.FP_imgs[i]=new Image; d.FP_imgs[i].src=a[i]; }
}
