// DISPLAY ENGINE V 2.0  Design copyright M J Sibley mike@SibleyFineArt.com

// DC ARTWORK  Global DISPLAY for IE4+ , NS6+, OPERA.6+, MOZILLA, FIREFOX

var opfix = ie4 ? document.all.opfix : document.getElementById('opfix')

var back = ''
var titl = ''
var vorh = ''
var ordno= ''

var ship1 = 6.50   //shipping £ per Print
var ship2 = 0.25   //shipping £ per Single Card/Keyfob
var ship3 = 0.40   //shipping £ per Card Pack
var ship4 = 2.50   //shipping £ per Mug
var ship42= 1.00   //shipping2 £ per Mug
var handl = 0.50   //handling £ per order

var iboxhi =  30	//set view icons box display area height
var pboxhi =  130	//set print box display area height
var dboxhi =  360	//set details box display area height

 function detailsOn(elemID) {
	var elem = ie4 ? document.all(elemID) : document.getElementById(elemID)
		elem.className = "display";
}
 function detailsOff(elemID) {
 	var elem = ie4 ? document.all(elemID) : document.getElementById(elemID)
		elem.className = "";
}

var ordno      = ''
var print_type = ''
var print_type2= ''
var print_cost = ''
var print_cost2= ''
var print_ed   = ''
var print_info = ''
var sze1       = ''
var sze2       = ''
var sze3       = ''
var orig_cost  = ''
var orig_info  = ''
var prod1a_type= ''
var prod1a_info= ''
var prod1a_cost= ''
var prod1b_info= ''
var prod1b_cost= ''
var prod2a_type= ''
var prod2a_info= ''
var prod2a_cost= ''
var prod2b_info= ''
var prod3_type = ''
var prod3_info = ''
var prod3_cost = ''
var prod4_type = ''
var prod4_info = ''
var prod4_cost = ''

 function viewThis(vh,dir,image,title,info,w,h,isin,zoom,infpg,print,ed,pw,ph,pcost,pinfo,oe2,pw2,ph2,pcost2,ono,ocost,oinfo,prod1a,prod1ainfo,prod1acost,prod1binfo,prod1bcost,prod2a,prod2ainfo,prod2acost,prod2binfo,prod2bcost,prod3,prod3info,prod3cost,prod4,prod4info,prod4cost){
	    vorh = vh
           ordno= ono
           titl = title
           iTxt = image + "";
	     zm = zoom
	    ifo = infpg
  	    ole = print
	   fImg = 'gal_' + dir + '/' + image + '.jpg';
           dImg = 'gal_' + dir + '/' + image + '_d1.jpg';
           dImg2= 'gal_' + dir + '/' + image + '_d2.jpg';
           dImg3= 'gal_' + dir + '/' + image + '_d3.jpg';
     var txt1   = '<b>' + title + '</b>'
         sze1   = w + '" &times; ' + h + '"'
         sze2   = pw + '" &times; ' + ph + '"'
         sze3   = pw2 + '" &times; ' + ph2 + '"'
     var writei = ''
     var write  = ''
     var ship   = 'plus shipping at cost'
     var cst1   = parseFloat(pcost)
     var cst12  = parseFloat(pcost2)
     var cst2   = parseFloat(ocost)
     var cst3   = parseFloat(prod1acost)
     var cst4   = parseFloat(prod1bcost)
     var cst5   = parseFloat(prod2acost)
     var cst6   = parseFloat(prod2bcost)
     var cst7   = parseFloat(prod3cost)
     var cst8   = parseFloat(prod4cost)

      print_type = print
      print_type2= oe2
      print_cost = cst1.toFixed(2) + ""
      print_cost2= cst12.toFixed(2) + ""
      print_ed   = ed
      print_info = pinfo
      orig_cost  = cst2.toFixed(2) + ""
      orig_info  = oinfo
      prod1a_type= prod1a
      prod1a_info= prod1ainfo
      prod1a_cost= cst3.toFixed(2) + ""
      prod1b_info= prod1binfo
      prod1b_cost= cst4.toFixed(2) + ""
      prod2a_type= prod2a
      prod2a_info= prod2ainfo
      prod2a_cost= cst5.toFixed(2) + ""
      prod2b_info= prod2binfo
      prod2b_cost= cst6.toFixed(2) + ""
      prod3_type = prod3
      prod3_info = prod3info
      prod3_cost = cst7.toFixed(2) + ""
      prod4_type = prod4
      prod4_info = prod4info
      prod4_cost = cst8.toFixed(2) + ""

	window.scrollTo(0,410)
  if (moz){window.scrollTo(0,428)}
  if (opr){window.scrollTo(0,426)}
var screen   = ie4 ? document.all.screen : document.getElementById('screen');
var ibox     = ie4 ? document.all.ibox : document.getElementById('ibox');
var optbox   = ie4 ? document.all.optbox : document.getElementById('optbox');
var pbox     = ie4 ? document.all.pbox : document.getElementById('pbox');
var dbox     = ie4 ? document.all.dbox : document.getElementById('dbox');
var dboxh    = ie4 ? document.all.dboxh : document.getElementById('dboxh');
var pboxh    = ie4 ? document.all.pboxh : document.getElementById('pboxh');
var products = ie4 ? document.all.products : document.getElementById('products');
var details  = ie4 ? document.all.details : document.getElementById('details');
var viewcart = ie4 ? document.all.viewcart : document.getElementById('viewcart');
var picimg   = ie4 ? document.all.picimg : document.getElementById('picimg');
var text     = ie4 ? document.all.text : document.getElementById('text');

// empty cells of all data
		screen.style.width  = ''
		screen.style.height = ''
       screen.style.backgroundColor = ''
                screen.style.border = ''
		ibox.innerHTML      = ''
		pbox.innerHTML      = ''
		dbox.innerHTML      = ''
		pbox.style.height   = ''
		dbox.style.height   = ''
		pbox.width          = ''
              pbox.style.paddingTop = ''
		optbox.innerHTML    = ''
		dboxh.innerHTML     = ''
		pboxh.innerHTML     = ''
 if (navigator.userAgent.indexOf('Opera/') != -1 | navigator.userAgent.indexOf('Opera ') != -1)
	  	{opfix.style.height = ''}   // Opera identifying as Opera or Other
	           picimg.innerHTML = ''

var view_icons	= '<div id="iconsv" style="width:180px;margin-left:6px;text-align:left;" align="center">HELLO</div>'
var prod_icons	= '<div id="prodicons" style="width:180px;margin-left:6px;"><div id="idata" class="datatxt" style="height:86px;">&nbsp;</div></div>'
var printsv	= '<div id="products" style="width:180px;margin-left:6px;" align="center"><div id="pdata" class="datatxt">&nbsp;</div></div>'
var data		= '<div id="details" style="width:180px;margin-left:6px;text-align:left;padding-top:5px;margin-bottom:15px;"><div id="data" class="datatxt">&nbsp;</div></div>' +printsv
var printsh	= '<div id="products" style="width:180px;margin-left:0px;text-align:center;"><div id="pdata" class="datatxt">&nbsp;</div></div>'
var datah		= '<div id="details" style="width:180px;margin-left:0px;text-align:left;"><div id="data" class="datatxt">&nbsp;</div></div>'
    if ( vh == "v"  ){
 if (navigator.userAgent.indexOf('Opera/') != -1 | navigator.userAgent.indexOf('Opera ') != -1)
	  	{opfix.style.height = '546px'} // Opera identifying as Opera or Other
		screen.style.width  = '401px'
		screen.style.height = '546px'
       screen.style.backgroundColor = '#fcf9f1'
                screen.style.border = '1px solid #c58513'
		pbox.width          = 192
 	        picimg.style.height = '500px'
	picimg.innerHTML = '<img name="pic" src="px.gif" border="0" onContextMenu="return false"><img src="px.gif" width="1" height="450" border="0">'
	document.pic.src = 'gal_' + dir + '/' + image + '.jpg'
	  	ibox.style.height   = iboxhi
		ibox.innerHTML      = view_icons
		pbox.innerHTML      = prod_icons
		pbox.style.height   = pboxhi
		dbox.innerHTML      = data
		dbox.style.height   = dboxhi
	 text.innerHTML = '<div id="txtline" class="tantxt"></div>'
   }
    if ( vh == "h"  ){
 if (navigator.userAgent.indexOf('Opera/') != -1 | navigator.userAgent.indexOf('Opera ') != -1)
	  	{opfix.style.height = '440px'} // Opera identifying as Opera or Other
		screen.style.width  = '591px'
		screen.style.height = '440px'
       screen.style.backgroundColor = '#fcf9f1'
                screen.style.border = '1px solid #c58513'
 	        picimg.style.height = '400px'
	picimg.innerHTML = '<img name="pic" src="px.gif" border="0" onContextMenu="return false"><img src="px.gif" width="1" height="370" border="0">'
	document.pic.src = 'gal_' + dir + '/' + image + '.jpg'
		optbox.innerHTML    = prod_icons
		dboxh.innerHTML     = datah
		dboxh.style.width   = '210px' //IE6 fix
		pboxh.innerHTML     = printsh
var prodicons = ie4 ? document.all.prodicons : document.getElementById('prodicons');
         prodicons.style.marginLeft = '0px'
	 text.innerHTML = '<table width="100%" height=20 border=0><tr><td width=110><div id="iconh"></div></td><td><div id="txtline" class="tantxt"></div></td><td width=110>&nbsp;</td></tr></table>'
   }

// INFO and ZOOM BUTTONS
	var options = ''
  if (infpg == 'i')
	{options  = '<img name="info1" onClick="swapImg(\'i\');" onMouseOver="this.style.cursor=\'pointer\'" onMouseOut="this.style.cursor=\'\'" src="images/icon_info.gif" width=20 height=20 border=0 hspace=1>'}
  if (zoom== 'z1'| zoom== 'z2' | zoom== 'z3'| infpg == 'i')
	{options += '<img name="zoomx" onClick="swapImg(\'f\');document.zoomx.src=\'images/icon_zoom_off2.gif\';" onMouseOver="this.style.cursor=\'pointer\'" onMouseOut="this.style.cursor=\'\'" src="images/icon_zoom_off2.gif" width=20 height=20 border=0 hspace=1>'}
  if (zoom== 'z1'| zoom== 'z2' | zoom== 'z3')
	{options += '<img name="zoom1" onClick="swapImg(\'d1\');" onMouseOver="this.style.cursor=\'pointer\'" onMouseOut="this.style.cursor=\'\'" src="images/icon_zoom.gif" width=20 height=20 border=0 hspace=1>'}
  if (zoom== 'z2'| zoom== 'z3')
	{options += '<img name="zoom2" onClick="swapImg(\'d2\');" onMouseOver="this.style.cursor=\'pointer\'" onMouseOut="this.style.cursor=\'\'" src="images/icon_zoom.gif" width=20 height=20 border=0 hspace=1>'}
  if (zoom== 'z3')
	{options += '<img name="zoom3" onClick="swapImg(\'d3\');" onMouseOver="this.style.cursor=\'pointer\'" onMouseOut="this.style.cursor=\'\'" src="images/icon_zoom.gif" width=20 height=20 border=0 hspace=1>'}

var txtline = ie4 ? document.all.txtline : document.getElementById('txtline')
var iconsv  = ie4 ? document.all.iconsv : document.getElementById('iconsv');
var iconh   = ie4 ? document.all.iconh : document.getElementById('iconh');
	txtline.innerHTML = txt1
     if (vh=='h'){iconh.innerHTML  = options}
     if (vh=='v'){iconsv.innerHTML = options}

// TYPE ICONS
  if (ordno != ''){
 	writei  = '<div class="datahead">Image available as</div>'
	writei += '<div class="browntxti" style="font-size:11px;text-align:center;padding-bottom:6px;">Point to icons for details</div>'
	detailsOn('prodicons')
  if (ole == 'le' || ole == 'oe'){
	writei += '<img src="images/type_icon_print.gif" width=24 height=38 border=0 hspace="2" align="left" onMouseOver="load_details(\'print\')">'
	}
  if (orig_info != ''){
	writei += '<img src="images/type_icon_orig.gif" width=28 height=38 border=0 hspace="0" align="left" onMouseOver="load_details(\'orig\')">'
	}
  if (prod1a_type != ''){
	writei += '<img src="images/type_icon_cards.gif" width=28 height=38 border=0 hspace="2" align="left" onMouseOver="load_details(\'product1\')">'
	}
  if (prod2a_type != ''){
	writei += '<img src="images/type_icon_cards_small.gif" width=28 height=38 border=0 hspace="1" align="left" onMouseOver="load_details(\'product2\')">'
	}
  if (prod3_type != ''){
	writei += '<img src="images/type_icon_keyfob.gif" width=28 height=38 border=0 hspace="1" align="left" onMouseOver="load_details(\'product3\')">'
	}
  if (prod4_type != ''){
	writei += '<img src="images/type_icon_mug.gif" width=28 height=38 border=0 hspace="1" align="left" onMouseOver="load_details(\'product4\')">'
	}
var idata  = ie4 ? document.all.idata : document.getElementById('idata')
	idata.innerHTML = writei
}

    if (  w != ""  ){
		detailsOn('details');
		write += '<img src="px.gif" width="28" height="1" border="0">size&nbsp;:&nbsp;' +sze1 + '<br>'}
    if (isin != ""  ){
		detailsOn('details');
		write +='<img src="px.gif" width="4" height="1" border="0">medium&nbsp;:&nbsp;' +isin + '<br><br>'}
    if ( info != ""){
		detailsOn('details');
  		write += '<div style="text-align:center">' +info + '<br><br></div>';}
    if ( print != "" || prod1a != "" || prod2a != "" || prod3 != "" || prod4 != ""){
		write += '<div style="text-align:center;margin-top:10px">order # :&nbsp;' + ordno + '</div>'
		}
var  data = ie4 ? document.all.data : document.getElementById('data');
		 data.innerHTML = write

  if (prod4_type != ''){load_details('product4')}
  if (prod3_type != ''){load_details('product3')}
  if (prod2a_type!= ''){load_details('product2')}
  if (prod1a_type!= ''){load_details('product1')}
  if (orig_info  != ''){load_details('orig')}
  if (ole == 'le' || ole == 'oe'){load_details('print')}
}

//ZOOM function
	var iTxt = '';
	var zm   = '';
	var ifo   = '';
	var fImg = '';
	var dImg = '';
	var dImg2= '';
	var dImg3= '';
	    back = '';

 function resetImg(){
  if (ifo == 'i')
	{document.info1.src = 'images/icon_info.gif';}
  if (zm == 'z1')
	{document.zoom1.src = 'images/icon_zoom.gif';}
  if (zm == 'z2')
	{document.zoom1.src = 'images/icon_zoom.gif';
	 document.zoom2.src = 'images/icon_zoom.gif';}
  if (zm == 'z3')
	{document.zoom1.src = 'images/icon_zoom.gif';
	 document.zoom2.src = 'images/icon_zoom.gif';
	 document.zoom3.src = 'images/icon_zoom.gif';}
}

 function swapImg(to){
var picimg   = ie4 ? document.all.picimg : document.getElementById('picimg');
	if (back != ''){
	  if (vorh=='h'){picimg.innerHTML = '<img name="pic" src="px.gif" border="0"><img src="px.gif" width="1" height="370" border="0">'}
	  if (vorh=='v'){picimg.innerHTML = '<img name="pic" src="px.gif" border="0"><img src="px.gif" width="1" height="450" border="0">'}
}
	if (to == 'f'){
	document.pic.src = fImg;
 	resetImg();
}
	if (to == 'd1'){
 	resetImg();
	document.zoom1.src = 'images/icon_zoom2.gif'
	document.zoomx.src = 'images/icon_zoom_off.gif'
	document.pic.src   = dImg;
}
	if (to == 'd2'){
 	resetImg();
	document.zoom2.src = 'images/icon_zoom2.gif';
	document.zoomx.src = 'images/icon_zoom_off.gif';
	document.pic.src = dImg2;
}
	if (to == 'd3'){
 	resetImg();
	document.zoom3.src = 'images/icon_zoom2.gif';
	document.zoomx.src = 'images/icon_zoom_off.gif';
	document.pic.src = dImg3;
}
	if (to == 'i'){
 	resetImg();
	document.info1.src = 'images/icon_info2.gif';
	document.zoomx.src = 'images/icon_zoom_off.gif';
	back               = picimg.innerHTML
		picimg.innerHTML = '<div id="infobox" class="tan11">' + eval(iTxt) + '</div>'
	if (vorh == 'v'){
		picimg.innerHTML = '<div id="infoboxv" class="tan11">' + eval(iTxt) + '</div>'}
}
}

// LOAD DATA DETAIL BOXES from icons

  function load_details(item){
     var writep = ''
		detailsOn('products')
    if (item == 'print'){
         if (print_type == 'le'){
		pcst = print_cost
 	  	writep = '<div class="datahead">PRINT Limited edition</div><div align="center">edition of&nbsp;' + print_ed + '<br>' + print_info + '<br>' +sze2 + '<br><b>&pound;' + print_cost + '</b><br>&#149;Certificate of Authenticity&#149;' + '<br><a href="javascript:document.paypal.submit()" OnMouseOver="titl2=\'LE Print - \'+ titl;document.paypal.item_name.value=titl2;document.paypal.item_number.value=ordno;document.paypal.amount.value=pcst;document.paypal.shipping.value=ship1;"><input type=image height=16 width=100 alt="Make secure payments with PayPal!" src="images/submit_pp.gif" border=0 name="submit" vspace=4></a><img src="px.gif" width="7" height="1" border="0"><a class="conv" href="#" onFocus="this.blur()" onClick="return false;" onMouseOver="cost=pcst;menuOn(event,\'link[1]\')" onMouseout="dlayhide()"><img src="images/currency_pp.gif" width=60 height=16 border=0 vspace=4></a></div>'}
         if (print_type == 'oe'){
		pcst = print_cost
 	 	writep = '<div class="datahead">PRINT Open edition</div><div align=center>' + print_info + '<br>' + sze2 + '<br><b>&pound;' +print_cost + '</b><br><a href="javascript:document.paypal.submit()" OnMouseOver="titl2=\'OE Print A3 - \'+ titl;document.paypal.item_name.value=titl2;document.paypal.item_number.value=ordno;document.paypal.amount.value=pcst;document.paypal.shipping.value=ship1;"><input type=image height=16 width=100 alt="Make secure payments with PayPal!" src="images/submit_pp.gif" border=0 name=submit vspace=4></a><img src="px.gif" width="7" height="1" border="0"><a class="conv" href="#" onFocus="this.blur()" onClick="return false;" onMouseOver="cost=pcst;menuOn(event,\'link[1]\')" onMouseout="dlayhide()"><img src="images/currency_pp.gif" width=60 height=16 border=0 vspace=4></a></div>';}
            if (print_type2 == 'oe'){
		pcst2 = print_cost2
 	 	writep+= '<div align=center>' + sze3 + '<br><b>&pound;' +print_cost2 + '</b><br><a href="javascript:document.paypal.submit()" OnMouseOver="titl2=\'OE Print A4 - \'+ titl;document.paypal.item_name.value=titl2;document.paypal.item_number.value=ordno;document.paypal.amount.value=pcst2;document.paypal.shipping.value=ship1;"><input type=image height=16 width=100 alt="Make secure payments with PayPal!" src="images/submit_pp.gif" border=0 name=submit vspace=4></a><img src="px.gif" width="7" height="1" border="0"><a class="conv" href="#" onFocus="this.blur()" onClick="return false;" onMouseOver="cost=pcst2;menuOn(event,\'link[1]\')" onMouseout="dlayhide()"><img src="images/currency_pp.gif" width=60 height=16 border=0 vspace=4></a></div>';}
		}
    if (item == 'orig'){
		ocst = orig_cost
  	 	writep = '<div class="datahead">ORIGINAL for sale</div><div align=center>' + orig_info + '<br><b>&pound;' + orig_cost + '</b><br><a href="javascript:document.paypal.submit()" OnMouseOver="titl2=\'Original - \'+ titl;document.paypal.item_name.value=titl2;document.paypal.item_number.value=ordno;document.paypal.amount.value=ocst;document.paypal.shipping.value=ship1;"><input type=image height=16 width=100 alt="Make secure payments with PayPal!" src="images/submit_pp.gif" border=0 name=submit vspace=4></a><img src="px.gif" width="7" height="1" border="0"><a class="conv" href="#" onFocus="this.blur()" onClick="return false;" onMouseOver="cost=ocst;menuOn(event,\'link[1]\')" onMouseout="dlayhide()"><img src="images/currency_pp.gif" width=60 height=16 border=0 vspace=4></a></div>'}

    if (item == 'product1'){		// = Product 1a
		p1acost = prod1a_cost
  	 	writep = '<div class="datahead">' + prod1a_type + '</div><div align=center>' + prod1a_info + '<br><b>&pound;' + p1acost + '</b><br><a href="javascript:document.paypal.submit()" OnMouseOver="titl2= prod1a_type + \':&nbsp;\'+ titl;document.paypal.item_name.value=titl2;document.paypal.item_number.value=ordno;document.paypal.amount.value=p1acost;document.paypal.shipping.value=ship2;"><input type=image height=16 width=100 alt="Make secure payments with PayPal!" src="images/submit_pp.gif" border=0 name=submit vspace=4></a><img src="px.gif" width="7" height="1" border="0"><a class="conv" href="#" onFocus="this.blur()" onClick="return false;" onMouseOver="cost=p1acost;menuOn(event,\'link[1]\')" onMouseout="dlayhide()"><img src="images/currency_pp.gif" width=60 height=16 border=0 vspace=4></a></div>'
         if (prod1b_cost != ''){	// = Product 1b
		p1bcost = prod1b_cost
  	 	writep += '<div align=center>' + prod1b_info + '<br><b>&pound;' + p1bcost + '</b><br><a href="javascript:document.paypal.submit()" OnMouseOver="titl2= prod1a_type + \':&nbsp;\'+ titl;document.paypal.item_name.value=titl2;document.paypal.item_number.value=ordno;document.paypal.amount.value=p1bcost;document.paypal.shipping.value=ship3;"><input type=image height=16 width=100 alt="Make secure payments with PayPal!" src="images/submit_pp.gif" border=0 name=submit vspace=4></a><img src="px.gif" width="7" height="1" border="0"><a class="conv" href="#" onFocus="this.blur()" onClick="return false;" onMouseOver="cost=p1bcost;menuOn(event,\'link[1]\')" onMouseout="dlayhide()"><img src="images/currency_pp.gif" width=60 height=16 border=0 vspace=4></a></div>'}
		}
    if (item == 'product2'){		// = Product 2a
		p2acost = prod2a_cost
  	 	writep = '<div class="datahead">' + prod2a_type + '</div><div align=center>' + prod2a_info + '<br><b>&pound;' + p2acost + '</b><br><a href="javascript:document.paypal.submit()" OnMouseOver="titl2= prod2a_type + \':&nbsp;\'+ titl;document.paypal.item_name.value=titl2;document.paypal.item_number.value=ordno;document.paypal.amount.value=p2acost;document.paypal.shipping.value=ship2;"><input type=image height=16 width=100 alt="Make secure payments with PayPal!" src="images/submit_pp.gif" border=0 name=submit vspace=4></a><img src="px.gif" width="7" height="1" border="0"><a class="conv" href="#" onFocus="this.blur()" onClick="return false;" onMouseOver="cost=p2acost;menuOn(event,\'link[1]\')" onMouseout="dlayhide()"><img src="images/currency_pp.gif" width=60 height=16 border=0 vspace=4></a></div>'
         if (prod2b_cost != ''){	// = Product 2b
		p2bcost = prod2b_cost
  	 	writep += '<div align=center>' + prod2b_info + '<br><b>&pound;' + p2bcost + '</b><br><a href="javascript:document.paypal.submit()" OnMouseOver="titl2= prod2a_type + \':&nbsp;\'+ titl;document.paypal.item_name.value=titl2;document.paypal.item_number.value=ordno;document.paypal.amount.value=p2bcost;document.paypal.shipping.value=ship3;"><input type=image height=16 width=100 alt="Make secure payments with PayPal!" src="images/submit_pp.gif" border=0 name=submit vspace=4></a><img src="px.gif" width="7" height="1" border="0"><a class="conv" href="#" onFocus="this.blur()" onClick="return false;" onMouseOver="cost=p2bcost;menuOn(event,\'link[1]\')" onMouseout="dlayhide()"><img src="images/currency_pp.gif" width=60 height=16 border=0 vspace=4></a></div>'}
		}
    if (item == 'product3'){		// = Product 3
		p3cost = prod3_cost
  	 	writep = '<div class="datahead">' + prod3_type + '</div><div align=center>' + prod3_info + '<br><b>&pound;' + p3cost + '</b><br><a href="javascript:document.paypal.submit()" OnMouseOver="titl2= prod3_type + \':&nbsp;\'+ titl;document.paypal.item_name.value=titl2;document.paypal.item_number.value=ordno;document.paypal.amount.value=p3cost;document.paypal.shipping.value=ship2;"><input type=image height=16 width=100 alt="Make secure payments with PayPal!" src="images/submit_pp.gif" border=0 name=submit vspace=4></a><img src="px.gif" width="7" height="1" border="0"><a class="conv" href="#" onFocus="this.blur()" onClick="return false;" onMouseOver="cost=p3cost;menuOn(event,\'link[1]\')" onMouseout="dlayhide()"><img src="images/currency_pp.gif" width=60 height=16 border=0 vspace=4></a></div>'
		}
    if (item == 'product4'){		// = Product 4
		p4cost = prod4_cost
  	 	writep = '<div class="datahead">' + prod4_type + '</div><div align=center>' + prod4_info + '<br><b>&pound;' + p4cost + '</b><br><a href="javascript:document.paypal.submit()" OnMouseOver="titl2= prod4_type + \':&nbsp;\'+ titl;document.paypal.item_name.value=titl2;document.paypal.item_number.value=ordno;document.paypal.amount.value=p4cost;document.paypal.shipping.value=ship4;"><input type=image height=16 width=100 alt="Make secure payments with PayPal!" src="images/submit_pp.gif" border=0 name=submit vspace=4></a><img src="px.gif" width="7" height="1" border="0"><a class="conv" href="#" onFocus="this.blur()" onClick="return false;" onMouseOver="cost=p4cost;menuOn(event,\'link[1]\')" onMouseout="dlayhide()"><img src="images/currency_pp.gif" width=60 height=16 border=0 vspace=4></a></div>'
		}

  paypal.shipping2.value = document.paypal.shipping.value
      if (item == 'product4'){paypal.shipping2.value = ship42}
  paypal.handling_cart.value = handl

	 	writep += '<div style="text-align:center;margin-bottom:4px;"><a class="sample" href="samples.htm" target="_blank">view samples</a></div>'

var pdata = ie4 ? document.all.pdata : document.getElementById('pdata')
	        pdata.innerHTML = writep
}
