
<!-- Begin function for resizing enlargement screens - arg 1 is required width, arg 2 is required height

// **************************************************************
// AUTHOR: Andrew Green (copyright 2004)
// URL: http://www.andrewgreen.biz
// Feel free to use this script - just leave this message intact.
// **************************************************************

function ResizeScreen(Width,Height)
{
if (navigator.appName != "Microsoft Internet Explorer") return; 
window.moveTo(0,0);
var PageWidth = Width;	
if (Height == null) 
	{PageHeight = screen.availHeight}
else
	{PageHeight = Height} 	
if (screen.availHeight > 768)
	{PageHeight = 768}
else	
	{if (screen.availHeight < Height) 
		{PageHeight = screen.availHeight}} 	 	
if (screen.availWidth > 1024)
	{PageWidth = 1024}
else
	{if (screen.availWidth < Width) 
		{PageWidth = screen.availWidth}};
window.resizeTo(PageWidth,PageHeight);
}

// End -->

<!-- Begin function for generating text email link 

// **************************************************************
// AUTHOR: Andrew Green (copyright 2004)
// URL: http://www.andrewgreen.biz
// Feel free to use this script - just leave this message intact.
// **************************************************************

function GenerateEmailLink(domain,emailrecipient,linktype,linktext,styleclass,atagtitle,emailsubject,emailbody,atagid)
{
var atsign = '@';
if ((atagid == '') || (arguments.length < 9)) 
	{idattribute=''} 
else 
	{idattribute = 'id="' + atagid + '" '}
if ((emailbody == '') || (arguments.length < 8))  
	{emailbodysubattribute=''} 
else
	{emailbodysubattribute = '&body=' + emailbody};
atagcode = '<a class="' 
	+ styleclass + '" ' 
	+ idattribute
	+ 'href="mailto:'
	+ emailrecipient
	+ atsign
	+ domain
	+ '?subject='
	+ emailsubject 
	+ emailbodysubattribute
	+ '" title="'
	+ atagtitle
	+ '">';
(linktype == 'text')? 
	linkcode = linktext + '</a>' : 
	linkcode = emailrecipient + '@' + domain + '</a>';
document.write (atagcode);
document.write (linkcode);
}

// End -->

<!-- Begin function for generating email anchor tag 

// **************************************************************
// AUTHOR: Andrew Green (copyright 2004)
// URL: http://www.andrewgreen.biz
// Feel free to use this script - just leave this message intact.
// **************************************************************

function GenerateEmailAnchor(domain,emailrecipient,atagtitle,emailsubject,emailbody)
{
var atsign = '@';
if ((emailbody == '') || (arguments.length < 5))  
	{emailbodysubattribute=''} 
else 
	{emailbodysubattribute = '&body="' + emailbody};
atagcode = '<a class="' 
	+ '" href="mailto:'
	+ emailrecipient
	+ atsign
	+ domain
	+ '?subject='
	+ emailsubject 
	+ emailbodysubattribute
	+ '" title="'
	+ atagtitle
	+ '">';
document.write (atagcode);
}

// End -->

<!-- Begin function for setting the style for an image (ImageId is the 'id' of the image, TransNo is the transition number) to be shown with a transition

function SetImageStyle(ImageId,TransNo)
{
var StyleFilter ="revealTrans(Duration=2.0, Transition=";
if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4))    
	{ 
	ImageId.style.filter = StyleFilter += TransNo += ")";	
	ImageId.style.visibility = "hidden";
   	}
else
    	{ 
	ImageId.style.visibility = "visible";
    	}
}
// End -->

<!-- Begin function for generating email anchor tag (for buttons) 

// **************************************************************
// AUTHOR: Andrew Green (copyright 2004)
// URL: http://www.andrewgreen.biz
// Feel free to use this script - just leave this message intact.
// **************************************************************

function GenerateEmailButtonAnchor(domain,emailrecipient,atagtitle,imgtagname,emailsubject,emailbody)
{
var atsign = '@';
if ((emailbody == '') || (arguments.length < 6))   
	{emailbodysubattribute=''} 
else 
	{emailbodysubattribute = '&body=' + emailbody};
atagcode = '<a class="' 
	+ '" href="mailto:'
	+ emailrecipient
	+ atsign
	+ domain
	+ '?subject='
	+ emailsubject 
	+ emailbodysubattribute
	+ '" title="'
	+ atagtitle
	+ '" '
	+ 'onmouseover="'
	+ imgtagname
	+ '.src=commover.src" onmouseout="'
	+ imgtagname
	+ '.src=commbutt.src">';
document.write (atagcode);
}

// End -->

<!-- Begin function for applying a transition to a particular image id (oImg)

function applyTransition (oImg)
{
if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4))    
    {	oImg.filters[0].Apply();
    	oImg.style.visibility = "visible";
    	oImg.filters[0].Play();
    }
else
    { 
	oImg.style.visibility = "visible";
    }
}

// End -->

<!-- Begin function for add favorites/bookmark reminder link

function FavPrompt (PageUrl,PageTitle)
{

if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) 
	{
	var msg = '<A class="limebluebold12" HREF="javascript:window.external.AddFavorite(';
	msg += "'";
  	msg += PageUrl;
	msg += "'";
	msg += ',';
	msg += "'";
	msg += PageTitle;
	msg += "'";
	msg += ')">';
	document.write(msg);
  	document.write('Click here</a>');
  	document.write(' to add this page to your Favorites!');
	}

else 
	{
  	var msg = "Don't forget to bookmark this page!";
  	if(navigator.appName == "Netscape") 
  		{  
    		msg += "  (CTRL+SHIFT+D)";
    		document.write(msg);
  		}
  	else
  		{
    		var msg = "Don't forget to add this page to your favorites!";
    		document.write(msg);
		}
	}
}
// End -->

function confirmuk(itemcode)
{
var agree = false;
url='http://amail.co.uk/cgi-bin/e-buy.pl?domain=1-art-1.com&action=add&p=' + itemcode;
var message='You can only buy a framed print for delivery to the UK.\n' + 'Click OK if your delivery address is in the UK and you want to buy the framed print'
agree = confirm (message);

if (agree)
	{window.open(url,'basket','width=800,height=600');}
}
