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

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 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_findObj(n, d) { //v4.0
  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 && document.getElementById) x=document.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];}
}

G_total_ra = 0;					// total random elements
G_day = new Date();				// date for seed
G_seed = G_day.getTime();			// G_seed for random number
	
ae_('<img src="http://www.pressdispensary.co.uk/i/homepic1.jpg" width="333" height="49" alt="*" border="0">');
ae_('<img src="http://www.pressdispensary.co.uk/i/homepic2.jpg" width="333" height="49" alt="*" border="0">');
ae_('<img src="http://www.pressdispensary.co.uk/i/homepic3.jpg" width="333" height="49" alt="*" border="0">');

function ae_ (description) {
	G_total_ra++;
	ra [G_total_ra] = description;
}

function rand() {
	RN = parseInt(((G_seed - (parseInt(G_seed/1000,10) * 1000))/10)/100*G_total_ra + 1,10);
	return RN;
}

function ra () {}

G_total_rt = 0;					// total random elements
G_day = new Date();				// date for seed
G_seed = G_day.getTime();			// G_seed for random number

at_('This service is a godsend and saves my company spending a huge monthly retainer.');
at_('The concept of Press Dispensary could only work if it were executed by dedicated professionals and streamlined technology – and it is – in spades.');
at_('I’ll be issuing more releases shortly and if the response is a fraction of what we’ve got so far, we’ll be delighted.');
at_('A big thank you for delivering exactly what you said you would in an incredibly efficient and professional manner. We will be back');
at_('The success rate of getting material published has been the most pleasing aspect. Great value for money.');
at_('I’ve had requests from newspapers for photos and, although we only launched three days ago, I’ve already done four radio interviews and have another two lined up.');


function at_ (testimonial) {
	G_total_rt++;
	rt [G_total_rt] = testimonial;
}

function randt() {
	RN = parseInt(((G_seed - (parseInt(G_seed/1000,10) * 1000))/10)/100*G_total_rt + 1,10);
	return RN;
}

function rt () {}


function setGoAhead(){
	goAhead="false";
}

function clearValue(textBoxObject){
	var content=textBoxObject.value;
	if((content=="Enter keywords...")||(content=="0")||(content==0.0)){
		setGoAhead();
		textBoxObject.value="";
	}
}

function makevisible(cur,which){
if (which==0)
cur.filters.alpha.opacity=100
else
cur.filters.alpha.opacity=60
}

function makevisible1(cur,which){
if (which==0)
cur.filters.alpha.opacity=100
else
cur.filters.alpha.opacity=70
}

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);

	// -------------------------------------------------------------------------------------------

nereidFadeObjects = new Object();
nereidFadeTimers = new Object();

/* object - image to be faded (actual object, not name);
 * destop - destination transparency level (ie 80, for mostly solid)
 * rate   - time in milliseconds between trasparency changes (best under 100)
 * delta  - amount of change each time (ie 5, for 5% change in transparency)
 */

function nereidFade(object, destOp, rate, delta){
if (!document.all)
return
    if (object != "[object]"){  //do this so I can take a string too
        setTimeout("nereidFade("+object+","+destOp+","+rate+","+delta+")",0);
        return;
    }
        
    clearTimeout(nereidFadeTimers[object.sourceIndex]);
    
    diff = destOp-object.filters.alpha.opacity;
    direction = 1;
    if (object.filters.alpha.opacity > destOp){
        direction = -1;
    }
    delta=Math.min(direction*diff,delta);
    object.filters.alpha.opacity+=direction*delta;

    if (object.filters.alpha.opacity != destOp){
        nereidFadeObjects[object.sourceIndex]=object;
        nereidFadeTimers[object.sourceIndex]=setTimeout("nereidFade(nereidFadeObjects["+object.sourceIndex+"],"+destOp+","+rate+","+delta+")",rate);
    }
}


function imgchange()
{
	var si =  document.frm.selbox.selectedIndex;
	var fname = document.frm.selbox.options[si].value
	document.img.src = fname + ".gif"
}


function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

function priceWin () {
  var rules = "location=no,toolbar=no,directories=no,menubar=no,scrollbars=no,width=350,height=280,top=40,left=50;"
  newWin = open('http://pressdispensary.co.uk/services/vat-prices.html','pricewin',rules);
  priceCount = 1;
}
	// -------------------------------------------------------------------------------------------
               
function selectForm(type) {
if (type=="Distribution") 
   location="distribution_form.html";
if (type=="Virtual Press Office")
   location="vpo_form.html";
if (type=="Writing")
   location="writing_form.html";
if (type=="Writing_Distribution")
   location="writing_distr_form.html";
}


// ----------------------------------------------------------------------------------------------------- //
var ns6=document.getElementById&&!document.all?1:0

var head="display:'all'"
var folder=''

function dropit(curobj){
folder=ns6?curobj.nextSibling.nextSibling.style:document.all[curobj.sourceIndex+1].style
if (folder.display=="none")
folder.display=""
else
folder.display="none"
}

function dropit2(curobj){
folder=ns6?curobj.nextSibling.nextSibling.nextSibling.style:document.all[curobj.sourceIndex+2].style
if (folder.display=="none")
folder.display=""
else
folder.display="none"
}

/******************************************
* Contractible Headers Script- © Dynamic Drive (www.dynamicdrive.com)
* Visit http://www.dynamicdrive.com/ for full source code
* This notice must stay intact for use
******************************************/

function priceWin () {
  var rules = "location=no,toolbar=no,directories=no,menubar=no,scrollbars=no,width=350,height=280,top=40,left=50;"
  newWin = open('http://pressdispensary.co.uk/services/vat-prices.html','pricewin',rules);
  priceCount = 1;
}
function  doVATmath() {
var one = eval(document.payForm.net_sterling.value)
var two = eval(document.payForm.vat.value)  
var prod = one  *   two
document.payForm.total_sterling.value=custRound(prod,2);
}

function custRound(x,places) {
return (Math.round(x*Math.pow(10,places)))/Math.pow(10,places)
}

/*****************
* Mouseover Tips *
******************/ 

	var tipVisible=false;
	
	function showTip(theTip)
		{
		divTip.innerHTML=theTip
		tipVisible=true
		return false
		}
	
	function moveTip(e)
		{
		if (tipVisible)
			{
			if (document.all?true:false)
				{
				divTip.style.left = event.clientX + document.body.scrollLeft +10+"px";
				divTip.style.top = event.clientY + document.body.scrollTop +10+"px";
				}
			else
				{
				divTip.style.left = e.pageX +10+"px";
				divTip.style.top = e.pageY +10+"px";
				}
			divTip.style.visibility="visible";
			}
			
		}
	
	function hideTip()
		{
		tipVisible=false
		divTip.style.visibility="hidden"
		divTip.style.left="-999px"
		divTip.style.width=''
		}
	
		function Redirect(url)
			{
			window.open('redirect.html?URL=' + escape(url) ,null,'toolbar=no,location=no,menubar=no');
			}
		
	document.onmousemove=moveTip


	-->

