
<!-- 
var f1 = new Array(6);
f1[0] = new Array(0,45,81,198,405);
f1[1] = new Array(0,58,105,255,522);
f1[2] = new Array(0,76,137,335,684);
f1[3] = new Array(0,95,171,418,855);
f1[4] = new Array(0,152,274,669,1368);
f1[5] = new Array(0,171,308,753,1539);

var ppamount = fTotal
var ppquantity= 0
var ppbanners=0
var ppweight='Standard Weight'
var ppquantity=0
var ppsize=0


//full colour litho
var p1 = new Array(3);
p1[0] = new Array(0,200,220,240,380,590);
p1[1] = new Array(0,365,385,405,545,695);
p1[2] = new Array(0,593,623,653,819,1529);
p1[3] = new Array(0,960,1020,1080,1470,3020);


//one colour litho
var p2 = new Array(3);
p2[0] = new Array(0,132,142,152,222,378);
p2[1] = new Array(0,145,155,165,235,485);
p2[2] = new Array(0,337,362,387,536,1176);
p2[3] = new Array(0,570,630,690,1080,2680);



//two colour litho
var p3 = new Array(3);
p3[0] = new Array(0,190,205,220,325,490);
p3[1] = new Array(0,260,275,290,395,595);
p3[2] = new Array(0,396,421,446,604,1294);
p3[3] = new Array(0,740,800,860,1225,2800);


//leaflets
var p4 = new Array(1);
p4[0] = new Array(0,447,532,636,828);
p4[1] = new Array(0,'na','na',699,1235);


var fold1 = new Array(4);
fold1[0] = new Array(0,0,0,0);
fold1[1] = new Array(0,261,374,586);
fold1[2] = new Array(0,374,447,672);
fold1[3] = new Array(0,549,683,894);
fold1[4] = new Array(0,939,1191,1242);

var fold2 = new Array(4);
fold2[0] = new Array(0,0,0,0);
fold2[1] = new Array(0,86,86,0);
fold2[2] = new Array(0,91,126,0);
fold2[3] = new Array(0,183,253,0);
fold2[4] = new Array(0,406,631,0);

var fold3 = new Array(4);
fold3[0] = new Array(0,0,0,0);
fold3[1] = new Array(0,45,65,0);
fold3[2] = new Array(0,90,130,0);
fold3[3] = new Array(0,180,260,0);
fold3[4] = new Array(0,450,650,0);

var d1 = new Array(6);
d1[0] = new Array(0,15,20,28);
d1[1] = new Array(0,17,25,32);
d1[2] = new Array(0,20,30,45);
d1[3] = new Array(0,25,37,'pallet');
d1[4] = new Array(0,30,'pallet','pallet');
d1[5] = new Array(0,37,'pallet','pallet');

var d2 = new Array(3);
d2[0] = new Array(0,15,15,15,15,25);
d2[1] = new Array(0,20,20,20,20,30);
d2[2] = new Array(0,'pallet','pallet','pallet','pallet','pallet');
d2[3] = new Array(0,'pallet','pallet','pallet','pallet','pallet');

var d3 = new Array(3);
d3[0] = new Array(0,0,0,0,0);
d3[1] = new Array(0,25,35,'pallet','pallet');
d3[2] = new Array(0,25,35,'pallet','pallet');
d3[3] = new Array(0,25,35,'pallet','pallet');

var d4 = new Array(4);
d4[0] = new Array(0,20,25,37,'pallet');
d4[1] = new Array(0,20,25,37,'pallet');
d4[2] = new Array(0,20,25,37,'pallet');
d4[3] = new Array(0,20,25,37,'pallet');
d4[4] = new Array(0,20,25,37,'pallet');


//leaflet delivery
var d0 = new Array(1);
d0[0] = new Array(0,15,25,37,'pallet');
d0[1] = new Array(0,'pallet','pallet','pallet','pallet');


//booklet variables

//print
var p5 = new Array(1);
p5[0] = new Array(0,499,698,948);
p5[1] = new Array(0,770,1094,1504);

//delivery
var d5 = new Array(1);
d5[0] = new Array(0,15,25,'pallet');
d5[1] = new Array(0,15,32,'pallet');


//datacard variables

//print
var p6 = new Array(0);
p6[0] = new Array(0,110,130,160,265,425,775);

//sig strip
var p7 = new Array(0);
p7[0] = new Array(0,15,16,20,35,60,105);

//numbering
var p8 = new Array(0);
p8[0] = new Array(0,45,45,46,55,75,85);

//delivery
var d6 = new Array(0);
d6[0] = new Array(0,15,15,15,15,15,15);


//beermat variables

//print
var p9 = new Array(3);
p9[0] = new Array(0,625,705,785,865,945,1025);
p9[1] = new Array(0,715,795,875,955,1035,1115);
p9[2] = new Array(0,835,915,995,1075,1155,1235);
p9[3] = new Array(0,950,1030,1110,1190,1270,1350);

//delivery
var d7 = new Array(3);
d7[0] = new Array(0,15,15,25,'pallet','pallet','pallet');
d7[1] = new Array(0,15,15,25,'pallet','pallet','pallet');
d7[2] = new Array(0,15,15,25,'pallet','pallet','pallet');
d7[3] = new Array(0,15,15,25,'pallet','pallet','pallet');


//ticket variables

//print
var p10 = new Array(1);
p10[0] = new Array(0,105,120,145,170,350);
p10[1] = new Array(0,125,140,165,190,370);

//business cards variables

//print
var p11 = new Array(1);
p11[0] = new Array(0,85,95,120);
p11[1] = new Array(0,110,130,145);

//stationery set variables

//print
var p12 = new Array(1);
p12[0] = new Array(0,195,324);
p12[1] = new Array(0,244,379);


function fTotal() {
document.priceForm.amount.value=0;



if (document.priceForm.flyersArtwork.selectedIndex==0) {
alert("Please select whether you require us to do your artwork or not first") 
document.priceForm.flyersArtwork.focus();
return;
}
if (document.priceForm.flyersAmount.selectedIndex==0) {
return;
}

if (d1[document.priceForm.flyers.selectedIndex][document.priceForm.flyersAmount.selectedIndex]=='pallet' && document.priceForm.flyersDel.selectedIndex==1) {
alert ('You will need a pallet for this amount please call for prices');
document.priceForm.flyersDel.selectedIndex=2;
} 



var fTotal=f1[document.priceForm.flyers.selectedIndex][document.priceForm.flyersAmount.selectedIndex];
var fArtworkTotal=0;
var fDel=0;
var fAdd=0;
var fDie=0;


if (document.priceForm.flyersArtwork.selectedIndex==1) {
if (document.priceForm.flyers.selectedIndex<=2) {
fArtworkTotal=0;
}
else if (document.priceForm.flyers.selectedIndex>=3) {
fArtworkTotal=0;
}

}

fTotal+=fArtworkTotal;

if (document.priceForm.flyersDel.selectedIndex==1) {
fDel=d1[document.priceForm.flyers.selectedIndex][document.priceForm.flyersAmount.selectedIndex];
fTotal+=fDel;
}

if (document.priceForm.flyersAdd.selectedIndex>=1) {
fAdd=(fTotal*.12);
}


fTotal+=fAdd;

if (document.priceForm.flyersDie.selectedIndex==1) {
fDie=80*document.priceForm.flyersAmount.selectedIndex;
}
else if (document.priceForm.flyersDie.selectedIndex==2) {
fDie=90+(80*document.priceForm.flyersAmount.selectedIndex);
}

fTotal+=fDie;

//ebay variables for banners
document.priceForm.amount.value=fTotal;
ppamount=fTotal;
ppquantity=(document.priceForm.flyers.value);
ppbanners=(document.priceForm.flyersAmount.value);
if (document.priceForm.flyersAdd.selectedIndex==1) {
ppweight='Heavy Duty'
}
else if (document.priceForm.flyersAdd.selectedIndex==0) {
ppweight='Standard Weight'
}

if (document.priceForm.flyers.selectedIndex==0) {
ppsize='1830mm(6ft) x 610mm(2ft)'
}
else if (document.priceForm.flyers.selectedIndex==1) {
ppsize='3040mm(10ft) x 610mm(2ft)'
}
else if (document.priceForm.flyers.selectedIndex==2) {
ppsize='3040mm(10ft) x 1220mm(4ft)'
}
else if (document.priceForm.flyers.selectedIndex==3) {
ppsize='6090mm(20ft) x 610mm(2ft 6in)'
}
else if (document.priceForm.flyers.selectedIndex==4) {
ppsize='6090mm(20ft) x 1220mm(4ft)'
}
else if (document.priceForm.flyers.selectedIndex==5) {
ppsize='9140mm(30ft) x 915mm(3ft)'
}

return;

}

function foldTotal() {
document.priceForm.foldPrice.value=0;
var foldDel=0;
var foldFin=0;


var foldTot=fold1[document.priceForm.foldQuant.selectedIndex][document.priceForm.foldSize.selectedIndex];
var foldFin=fold2[document.priceForm.foldQuant.selectedIndex][document.priceForm.foldFinish.selectedIndex];
var foldExtra=fold3[document.priceForm.foldQuant.selectedIndex][document.priceForm.foldAssembly.selectedIndex];

if (document.priceForm.foldDel.selectedIndex==1) {
foldDel=d4[document.priceForm.foldSize.selectedIndex][document.priceForm.foldQuant.selectedIndex];
}
if (d4[document.priceForm.foldSize.selectedIndex][document.priceForm.foldQuant.selectedIndex]=='pallet' && document.priceForm.foldDel.selectedIndex==1) {
alert ('You will need a pallet for this amount please call for prices');
document.priceForm.foldDel.selectedIndex=2;
var foldDel =0;
}
document.priceForm.foldPrice.value=foldTot+foldDel+foldFin+foldExtra;
return;
}

function pTotal() {
document.priceForm.postersPrice.value=0;
var pDel=0;

if (document.priceForm.postersDel.selectedIndex==1) {
pDel=d2[document.priceForm.postersSZ.selectedIndex][document.priceForm.postersAmount.selectedIndex];
}
var pTot=p1[document.priceForm.postersSZ.selectedIndex][document.priceForm.postersAmount.selectedIndex];

if (d2[document.priceForm.postersSZ.selectedIndex][document.priceForm.postersAmount.selectedIndex]=='pallet' && document.priceForm.postersDel.selectedIndex==1) {
pDel = 0;
alert ('You will need a pallet for this amount please call for prices');
document.priceForm.postersDel.selectedIndex=2;
} 

document.priceForm.postersPrice.value=pTot+pDel;



return;
}



//one colour litho
function pTotal2() {
document.priceForm.posters2Price.value=0;
var pDel=0;

if (document.priceForm.posters2Del.selectedIndex==1) {
pDel=d2[document.priceForm.posters2.selectedIndex][document.priceForm.posters2Amount.selectedIndex];
}
var pTot=p2[document.priceForm.posters2.selectedIndex][document.priceForm.posters2Amount.selectedIndex];

if (d2[document.priceForm.posters2.selectedIndex][document.priceForm.posters2Amount.selectedIndex]=='pallet' && document.priceForm.posters2Del.selectedIndex==1) {
pDel = 0;
alert ('You will need a pallet for this amount please call for prices');
document.priceForm.posters2Del.selectedIndex=2;
} 

document.priceForm.posters2Price.value=pTot+pDel;
return;
}


//two colour litho
function pTotal2litho() {
document.priceForm.posters2lithoPrice.value=0;
var pDel=0;

if (document.priceForm.posters2lithoDel.selectedIndex==1) {
pDel=d2[document.priceForm.posters2litho.selectedIndex][document.priceForm.posters2lithoAmount.selectedIndex];
}
var pTot=p3[document.priceForm.posters2litho.selectedIndex][document.priceForm.posters2lithoAmount.selectedIndex];

if (d2[document.priceForm.posters2litho.selectedIndex][document.priceForm.posters2lithoAmount.selectedIndex]=='pallet' && document.priceForm.posters2lithoDel.selectedIndex==1) {
pDel = 0;
alert ('You will need a pallet for this amount please call for prices');
document.priceForm.posters2lithoDel.selectedIndex=2;
} 

document.priceForm.posters2lithoPrice.value=pTot+pDel;
return;
}



//posterjet calculations

function pTotal4() {
document.priceForm.posters4Price.value=0;
var postersTotal = 0;
var postersEnc=0;
var postersDel = 0;
var posterSizeCost=0;



//A3 posterjet
if (document.priceForm.posters4.selectedIndex==0) {

if (document.priceForm.posters4Amount.selectedIndex>0 && document.priceForm.posters4Amount.selectedIndex<4) {
posterSizeCost=5;

if (document.priceForm.posters4Enc.selectedIndex==1) {
postersEnc=3*document.priceForm.posters4Amount.selectedIndex;
}
else {
postersEnc=0;
}


}
if (document.priceForm.posters4Amount.selectedIndex>3 && document.priceForm.posters4Amount.selectedIndex<=4) {
posterSizeCost=4;
if (document.priceForm.posters4Enc.selectedIndex==1) {
if (document.priceForm.posters4Amount.selectedIndex<5) {
postersEnc=3*document.priceForm.posters4Amount.selectedIndex;
}
else if (document.priceForm.posters4Amount.selectedIndex==5) {
postersEnc=2.5*document.priceForm.posters4Amount.selectedIndex;
}
}
else {
postersEnc=0;
}

}
if (document.priceForm.posters4Amount.selectedIndex>4) {
posterSizeCost=3.50;
if (document.priceForm.posters4Enc.selectedIndex==1) {
postersEnc=2.50*document.priceForm.posters4Amount.selectedIndex;
}
else {
postersEnc=0;
}


}
}


//A2 posterjet
if (document.priceForm.posters4.selectedIndex==1) {
if (document.priceForm.posters4Amount.selectedIndex>0 && document.priceForm.posters4Amount.selectedIndex<4) {
posterSizeCost=11;

if (document.priceForm.posters4Enc.selectedIndex==1) {
postersEnc=4*document.priceForm.posters4Amount.selectedIndex;
}
else {
postersEnc=0;
}


}
if (document.priceForm.posters4Amount.selectedIndex>3 && document.priceForm.posters4Amount.selectedIndex<=5) {
posterSizeCost=10;


if (document.priceForm.posters4Enc.selectedIndex==1) {
if (document.priceForm.posters4Amount.selectedIndex<5) {
postersEnc=4*document.priceForm.posters4Amount.selectedIndex;
}
else if (document.priceForm.posters4Amount.selectedIndex==5) {
postersEnc=3.5*document.priceForm.posters4Amount.selectedIndex;
}
}
else {
postersEnc=0;
}
}
if (document.priceForm.posters4Amount.selectedIndex>5) {
posterSizeCost=9;

if (document.priceForm.posters4Enc.selectedIndex==1) {
postersEnc=3.5*document.priceForm.posters4Amount.selectedIndex;
}
else {
postersEnc=0;
}

}
}


//A1 posterjet
if (document.priceForm.posters4.selectedIndex==2) {
if (document.priceForm.posters4Amount.selectedIndex>0 && document.priceForm.posters4Amount.selectedIndex<4) {
posterSizeCost=18;


if (document.priceForm.posters4Enc.selectedIndex==1) {
postersEnc=7*document.priceForm.posters4Amount.selectedIndex;
}
else {
postersEnc=0;
}


}
if (document.priceForm.posters4Amount.selectedIndex>3 && document.priceForm.posters4Amount.selectedIndex<=5) {
posterSizeCost=17;

if (document.priceForm.posters4Enc.selectedIndex==1) {
if (document.priceForm.posters4Amount.selectedIndex<5) {
postersEnc=7*document.priceForm.posters4Amount.selectedIndex;
}
else if (document.priceForm.posters4Amount.selectedIndex==5) {
postersEnc=6*document.priceForm.posters4Amount.selectedIndex;
}
}
else {
postersEnc=0;
}

}
if (document.priceForm.posters4Amount.selectedIndex>5) {
posterSizeCost=16;
if (document.priceForm.posters4Enc.selectedIndex==1) {
postersEnc=6*document.priceForm.posters4Amount.selectedIndex;
}
else {
postersEnc=0;
}
}
}


//A0 posterjet
if (document.priceForm.posters4.selectedIndex==3) {
if (document.priceForm.posters4Amount.selectedIndex>0 && document.priceForm.posters4Amount.selectedIndex<4) {
posterSizeCost=34;


if (document.priceForm.posters4Enc.selectedIndex==1) {
postersEnc=15*document.priceForm.posters4Amount.selectedIndex;
}
else {
postersEnc=0;
}


}
if (document.priceForm.posters4Amount.selectedIndex>3 && document.priceForm.posters4Amount.selectedIndex<=5) {
posterSizeCost=32;

if (document.priceForm.posters4Enc.selectedIndex==1) {
if (document.priceForm.posters4Amount.selectedIndex<5) {
postersEnc=15*document.priceForm.posters4Amount.selectedIndex;
}
else if (document.priceForm.posters4Amount.selectedIndex==5) {
postersEnc=14*document.priceForm.posters4Amount.selectedIndex;
}
}
else {
postersEnc=0;
}

}
if (document.priceForm.posters4Amount.selectedIndex>5) {
posterSizeCost=30;
if (document.priceForm.posters4Enc.selectedIndex==1) {
postersEnc=14*document.priceForm.posters4Amount.selectedIndex;
}
else {
postersEnc=0;
}
}
}

postersTotal = round(document.priceForm.posters4Amount.selectedIndex*posterSizeCost);

if (document.priceForm.posters4Del.selectedIndex==1 && postersTotal>0) {
postersDel=15;
}

document.priceForm.posters4Price.value=postersTotal+postersEnc+postersDel;


return;
}

//end of posterjet calculations



function round(number,X) {
X = (!X ? 2 : X);
return Math.round(number*Math.pow(10,X))/Math.pow(10,X);
}


function total(arrayName,num1,num2,totalBox) {
document.priceForm[totalBox].value=arrayName[num1][num2];
}

function findObj(n, d) { 
	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;
}

var visibleMenus = new Array()
var ns6=document.getElementById&&!document.all
var ie4=document.all&&navigator.userAgent.indexOf("Opera")==-1

var autoClose = 0
var menuSections=new Array(7)
var thispage = "";

function showGroup(menuItem){
	var displayStatus;
	var itemOpen;

		closeObj = findObj (menuItem)
		for (ii=0;ii<visibleMenus.length ;ii++ ) {	
			if (visibleMenus[ii] == menuItem) {
				displayStatus = "none";
				for (i=ii;i<visibleMenus.length ;i++ ) {
					visibleMenus[i] = visibleMenus[i+1]
						//alert ("Pass "+i)
						//alert (visibleMenus[ii]+" becomes "+visibleMenus[ii+1])
					
				}
				visibleMenus.length = visibleMenus.length-1
				itemOpen = 1
			}
		}
			// Selected item must be closed, so open it

	if (itemOpen != 1) {// if there is no visibleMenus array or no match in the array
		visibleMenus[visibleMenus.length] = menuItem
		displayStatus = ""
	}
	else if (thispage == menuItem) {
		displayStatus = ""
	}
	else {
		displayStatus = "none"
	}
	closeObj.style.display=displayStatus
	//if (visibleMenus){
	//	setCookie(visibleMenus)
	//}
}

function changeImage(menuItemImg,menuItem){
	//alert (menuItemImg)
	if (document [menuItemImg].src.indexOf("images/prices-show-me.gif") >= 0) {
	    document [menuItemImg].src = "images/prices-hide.gif";
	}
	else {
		document [menuItemImg].src = "images/prices-show-me.gif";
	}

}


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 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_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 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];}
}
//-->

