//
// slide-down code and functions © Andrew Green 2004
//

DAWlogo=new Image(90,90);
DAWlogo.src="http://www.1-art-1.com/thirdpimages/DAW_logo_2004.jpg";
var ie=document.all;
var dom=document.getElementById;
var ns4=document.layers;
var ns6=document.getElementById&&!document.all;
var calunits=document.layers? "" : "px";
var direction="up";
var lpos;
var htmlsource;
var SiteColour;
var DontDeleteThis;
var DontChangeThis1;
var DontChangeThis2;
var DontChangeThis3;
var SlideDownOK = 'no';

// Begin function for getting correct object prefix, according to how browser treats document elements

function GetObject(name)
{
  if (document.getElementById)
  {
  	this.obj = document.getElementById(name);	
	this.style = document.getElementById(name).style;
  }
  else if (document.all)
  {
	this.obj = document.all[name];
	this.style = document.all[name].style;
  }
  else if (document.layers)
  {
   	this.obj = document.layers[name];
   	this.style = document.layers[name];
  }
}

// End -->

// Begin function for changing anchor tag style on mouseover 

function ChangeStyle(ElementId,overandout)
{
  var ElementObjectName = new GetObject(ElementId);
  if (overandout == 'over')
  {
	ElementObjectName.style.textDecoration = 'underline';
	ElementObjectName.style.color = 'gray';
  }
  else
  {
	ElementObjectName.style.textDecoration = 'underline';
	ElementObjectName.style.color = '#0055CC';
  }  
}

// End -->

function InitialiseBox()
{if (!dom&&!ie&&!ns4) return;
crossobject = new GetObject('SlidedownDiv');
crossobj = crossobject.style;
scroll_top=(ie)? truebody().scrollTop : window.pageYOffset;
crossobj.top=scroll_top-250+calunits;
crossobj.visibility=(dom||ie)? "visible" : "show";
dropstart=setInterval("slidein()",10)}

function slidein()
{if (parseInt(crossobj.top)<(scroll_top+lpos)) crossobj.top=parseInt(crossobj.top)+10+calunits;else clearInterval(dropstart)}

function HideBox(){crossobj.visibility=(dom||ie)? "hidden" : "hide"}

function truebody(){return (document.compatMode!="BackCompat")? document.documentElement : document.body}

function SlideDown(main_bgcolor,main_texttype,main_textsize,main_textcolor,textbar,height,width,top,left,bordercolor,borderstyle,borderwidth,sec)
{
	if (SlideDownOK == 'no') return;
	lpos = top
	ans="no"
	var DivisionName = new GetObject("SlidedownDiv");
	DivisionName.style.border = bordercolor+' '+borderwidth+'px '+borderstyle
	DivisionName.style.height=height +'px'
	DivisionName.style.width =width +'px'
	DivisionName.style.left =left +'px'
	DivisionName.style.top =top +'px'
	DivisionName.style.backgroundColor=main_bgcolor
	DivisionName.style.color = main_textcolor
	DivisionName.style.fontFamily = main_texttype
	DivisionName.style.fontSize = main_textsize+'pt'
	/*DivisionName.obj.innerHTML='hhhhhhhhhhhhh<br />tttttttttt'*/
	setTimeout("InitialiseBox()",(sec*1000));	
}


//window.onload=InitialiseBox

function DAWslide (SiteId,Colour)
	{
	/*var LinkDivision = new GetObject("DontDeleteThis");
	var LinkAtagAndrew = new GetObject("DontChangeThis1");
	var LinkAtag1A1 = new GetObject("DontChangeThis2");
	var LinkAtagAAG = new GetObject("DontChangeThis3");
	if (LinkAtagAndrew.obj.innerHTML.indexOf('Andrew Green (website design in Dorset)') == -1) {alert('you\'ve changed the link text for www.andrewgreen.biz, so the slide-down won\'t work!'); return}
	if (LinkAtagAndrew.obj.href != 'http://www.andrewgreen.biz/') {alert('you\'ve changed the link to www.andrewgreen.biz, so the slide-down won\'t work!'); return}	
	if (LinkAtag1A1.obj.innerHTML.indexOf('www.1-art-1.com (contemporary abstract fibre art and textile art by a UK felt artist)') == -1) {alert('you\'ve changed the link text for www.1-art-1.com, so the slide-down won\'t work!'); return}
	if (LinkAtag1A1.obj.href != 'http://www.1-art-1.com/') {alert('you\'ve changed the link to www.1-art-1.com, so the slide-down won\'t work!'); return}	
	if (LinkAtagAAG.obj.innerHTML.indexOf('www.abstractartgallery.net (contemporary abstract fiber art and textile art by a UK textile artist)') == -1) {alert('you\'ve changed the link text for www.abstractartgallery.net, so the slide-down won\'t work!'); return}
	if (LinkAtagAAG.obj.href != 'http://www.abstractartgallery.net/') {alert('you\'ve changed the link to www.abstractartgallery.net, so the slide-down won\'t work!'); return}
	LinkDivision.style.display = 'none';
	*/
	SlideDownOK = 'yes';	
	var SiteDetails = new Array(2);
	var atsign = '@';
	SiteDetails[0] = new Array(20);
	SiteDetails[1] = new Array(20);
	SiteDetails[0][0] = 'www.artonline.tk'; 
	SiteDetails[1][0] = 'emaillist.artonline' + atsign +'1-art-1.com'; 
	SiteDetails[0][1] = 'www.1-art-1.com'; 
	SiteDetails[1][1] = 'emaillist' + atsign + '1-art-1.com'; 
	SiteDetails[0][2] = 'www.abstractartgallery.net'; 
	SiteDetails[1][2] = 'emaillist' + atsign + 'abstractartgallery.net';
	SiteDetails[0][3] = 'www.artfortokelau.tk'; 
	SiteDetails[1][3] = 'emaillist.tokelau' + atsign + '1-art-1.com'; 
	SiteDetails[0][4] = 'www.vickiclarkart.com'; 
	SiteDetails[1][4] = 'emaillist' + atsign + 'vickiclarkart.com'; 
	SiteDetails[0][5] = 'www.its-raining-men.com'; 
	SiteDetails[1][5] = 'emaillist.irm' + atsign + '1-art-1.com'; 

	if (SiteDetails[0][SiteId] == undefined) return;
	if (SiteDetails[0][SiteId] == 'deleted') return;
	SiteUrl = SiteDetails[0][SiteId];
	SiteEmail = SiteDetails[1][SiteId];
	MCEmail = 'mary-clare.buckle' + atsign + '1-art-1.com'; 
	BrochureAddress = (SiteId<5)? '13 Market Street, Abbotsbury, Dorset, DT3 4JR' : 'DAWA, PO Box 4040, Dorchester, DT2 8YA'
	SiteColour = Colour	
	htmlsource = '<center><style>p{margin:12px 0;}</style>'
	+ '<span style="font-size:13pt;font-weight:normal;">' 
	+  SiteUrl
	+ '</span>'
	+ '<p>'
	+ '<span style="color:blue; font-size:11pt;font-weight:bold;">Did you like my work?</span><br>'
	+ '<a id="SiteEmailLink1" style="color:#0055CC;" href="mailto:' + SiteEmail + '?subject=Please add my email address to your Mailing List&body=My name is: " title="click here to be put on my mailing list"  onmouseover="ChangeStyle(\'SiteEmailLink1\',\'over\');" onmouseout="ChangeStyle(\'SiteEmailLink1\',\'out\');">'
	+ '<b>Click here</a></b> '
	+ 'to be put on my email list and receive all my latest news</b>'
	+ '</p><p>'
	+ '<span style="color:red; font-size:13pt;font-weight:bold;">'
	+ 'Visit my studio-gallery '
	+ 'in beautiful West Dorset'
	+ '</span>'	
	+ '</p><p>'
	+ '<img src="http://www.1-art-1.com/images/outside-the-gallery-abbotsbury.jpg" width="200" height="150" border=0 alt="the gallery, Abbotsbury" title="the gallery, Abbotsbury">'
	+ '</p><p>'
	+ '<span style="color:black;font-weight:normal;">'
	+ 'I also sell my art and limited-edition prints from my studio-gallery in the picturesque'	
	+ ' artists\' enclave of Abbotsbury, in Dorset, southern England'
	+ '<br>'
	+ 'So if you are visiting this area, why not drop in to '
	+ '<acronym style="color: #0055CC;text-decoration: underline;border-bottom:none;cursor: help;" ' 
	+ 'title="13 Market Street, Abbotsbury, Dorset, DT3 4JR, UK">'
	+ '<i>the gallery</i>?</acronym>' 
	+ ' </p><p>'
	+ '... or you could even plan a special trip to see the work of all the artists &amp; craftspeople in Abbotsbury '
/*	+ ' and for the 3rd successful year running, you can come and meet all the Abbotsbury artists in their studios, ' */
/*	+ 'during' */
/*	+ '<br><br>' */
/*	+ '<span style="color:red; font-size:12pt;font-weight:bold;">' */
/*	+ 'Abbotsbury Art Weeks - 26th May to 3rd June 2007' */
/*	+ '</span>' */
/*	+ '<br><br>' */
	+ ' - <a id="BrochureLink1" style="color:#0055CC;" href="http://www.abbotsburyartweeks.org" target="_blank" title="click here to visit the Abbotsbury Art Weeks website (opens in new window)"  onmouseover="ChangeStyle(\'BrochureLink1\',\'over\');" onmouseout="ChangeStyle(\'BrochureLink1\',\'out\');">' 
	+ 'click here</a>' 
	+ '  to visit the Abbotsbury Art Weeks website, for details of ' 
	+ '<a id="BrochureLink2" style="color:#0055CC;" href="http://www.abbotsburyartweeks.org" target="_blank" title="click here to visit the Abbotsbury Art Weeks website (opens in new window)"  onmouseover="ChangeStyle(\'BrochureLink2\',\'over\');" onmouseout="ChangeStyle(\'BrochureLink2\',\'out\');">'
	+ 'artists and craftspeople in Abbotsbury</a>'
	+ '</p><p>'
	+ '<a id="SiteEmailLink2" style="color:#0055CC;" href="mailto:' + SiteEmail + '?subject=Please add my email address to your Mailing List&body=My name is: " title="click here to be put on my mailing list"  onmouseover="ChangeStyle(\'SiteEmailLink2\',\'over\');" onmouseout="ChangeStyle(\'SiteEmailLink2\',\'out\');">'
	+ '<b>Click here</a></b> '
	+ 'to be put on my email list and receive all my latest news and'
	+ ' details of my special events and Private Views. '
/*	+ 'or '*/
/*	+ '<a id="BrochureLink3" style="color:#0055CC;" href="mailto:' + SiteEmail + '?subject=Please send me the Abbotsbury artists brochure&body=My name and address are: " title="click here if you want me to send you the Abbotsbury artists brochure"  onmouseover="ChangeStyle(\'BrochureLink3\',\'over\');" onmouseout="ChangeStyle(\'BrochureLink3\',\'out\');">'*/
/*	+ 'click here</a>'*/
/*	+ ' to get me to send you the '*/
/*	+ '<a id="BrochureLink4" style="color:#0055CC;" href="mailto:' + SiteEmail + '?subject=Please send me the Abbotsbury artists brochure&body=My name and address are: " title="click here if you want me to send you the Abbotsbury artists brochure"  onmouseover="ChangeStyle(\'BrochureLink4\',\'over\');" onmouseout="ChangeStyle(\'BrochureLink4\',\'out\');">'*/
/*	+ 'Abbotsbury artists brochure</a>'*/
/*	+ '<br><br>'*/
/*	+ '<span style="color:red; font-size:13pt;font-weight:bold;">'*/
/*	+ 'STOP PRESS - MEET THE ARTIST<br>'*/
/*	+ 'Studio and Gallery Open Day for Schools with Mary-Clare<br>Demonstrations for teachers and pupils'*/
/*	+ '<br>27th May (half-term week)'*/
/*	+ '</span>'*/
/*	+ '<br>'*/
/*	+ '<a id="BrochureLink7" style="color:#0055CC;" href="mailto:' + MCEmail + '?subject=Please can I have more information about your Open day" title="click here if you want further details about my Open Day"  onmouseover="ChangeStyle(\'BrochureLink7\',\'over\');" onmouseout="ChangeStyle(\'BrochureLink7\',\'out\');">'*/
/*	+ 'click here</a>'*/
/*	+ ' to email me for further details'*/
/*	+ '<br><br>'*/
	+ 'For details of my very popular feltmaking workshops for adults and children, please '
	+ '<a id="BrochureLink5" style="color:#0055CC;" href="http://www.feltmaking-workshops.info" target="_blank" title="click here to visit my Feltmaking Workshops website (opens in new window)"  onmouseover="ChangeStyle(\'BrochureLink5\',\'over\');" onmouseout="ChangeStyle(\'BrochureLink5\',\'out\');">'
	+ 'click here</a>'
	+ ' to visit my '
	+ '<a id="BrochureLink6" style="color:#0055CC;" href="http://www.feltmaking-workshops.info" target="_blank" title="click here to visit my Feltmaking Workshops website (opens in new window)"  onmouseover="ChangeStyle(\'BrochureLink6\',\'over\');" onmouseout="ChangeStyle(\'BrochureLink6\',\'out\');">'
	+ 'Feltmaking workshops website</a>'
	+ '</p><p>'
	+ '<span style="color:red;font-size:7pt;">'
	+ '* Please note that your name &amp; email details will <u>never</u> be passed to anyone else *'
	+ '<br>'
	+ 'We respect your privacy and security'
	+ '</span>'
	+ '</p><p>'
	+ '<span style="font-size:7pt;font-weight:normal;">'
	+ 'this slide down window is &copy; '
	+ '<a id="AndrewLink" style="color:#0055CC;" href="http://www.andrewgreen.biz" target="_blank" title="visit AndrewGreen.biz for website design &amp; advice" onmouseover="ChangeStyle(\'AndrewLink\',\'over\');" onmouseout="ChangeStyle(\'AndrewLink\',\'out\');">'
	+ 'Andrew Green</a> '
	+ 'in association with '
	+ '<a id="1art1Link" style="color:#0055CC;" href="http://www.1-art-1.com" target="_blank" title="visit 1-art-1.com for contemporary abstract fibre art" onmouseover="ChangeStyle(\'1art1Link\',\'over\');" onmouseout="ChangeStyle(\'1art1Link\',\'out\');">'
	+ 'www.1-art-1.com</a>'
	+ '</span>'
	+ '</p><p>'
	+ '<a id="CloseLink" title="click here to close this box" href="#" onclick="{HideBox();return false;}" style="color:#0055CC;font-family:\'Verdana\',\'Arial\',\'Helvetica\',sans-serif;" onmouseover="ChangeStyle(\'CloseLink\',\'over\');" onmouseout="ChangeStyle(\'CloseLink\',\'out\');">'
	+ '<u>|close this box|</u></a>'
	+ '</span>'

	document.write ('<div id="SlidedownDiv" style="position: absolute; height: 435px; width: 390px; left: 215px; top: 25px; visibility: hidden; border: 2px solid #0055CC; padding:10px; background-color: white; color: black; font-family: \'Arial\',\'Helvetica\',sans-serif; font-size: 10pt;font-weight:normal;z-index:20 ">'); 
	document.write (htmlsource);
	document.write ('</div>');

	} 

function MBWslide ()
	{
	SlideDownOK = 'yes';
	var atsign = '@';
	htmlsource = '<center>'
	+ '<span style="font-size:14pt;font-weight:normal;">'  
	+ 'Textile Artists in Dorset'
	+ '</span>'
	+ '<br><br>'
	+ '<span style="color:red; font-size:13pt;font-weight:normal;">'
	+ 'Visit us now!'
	+ '</span>'	
	+ '<br><br>'
	+ '<span style="color:black;font-weight:normal;">'
	+ 'There are a large number of textile/fibre artists in Dorset.'
	+ '<br><br>'
	+ 'If you would like to be put in touch with textile/fibre artists working in the county, '
	+ '<a id="MDAWEmailLink" style="color:blue;" href="mailto:' + 'textileartists' + atsign + '1-art-1.com?subject=An enquiry about textile art in Dorset" title="click here to email your enquiry about textile art in Dorset" onmouseover="ChangeStyle(\'MDAWEmailLink\',\'over\');" onmouseout="ChangeStyle(\'MDAWEmailLink\',\'out\');">'
	+ '<b>click here</a></b> '
	+ 'to email us with your enquiry.'
	+ '<br><br>'
	+ 'Or '
	+ '<a id="M1art1EmailLink" style="color:blue;" href="mailto:' + 'emaillist' + atsign + '1-art-1.com?subject=Please add my email address to your Mailing List&body=My name is: " title="click here to be put on my mailing list" onmouseover="ChangeStyle(\'M1art1EmailLink\',\'over\');" onmouseout="ChangeStyle(\'M1art1EmailLink\',\'out\');">'
	+ '<b>click here</a></b> '
	+ "to be put on my email list and receive all my latest news and"
	+ ' details of my special events, Private Views and felt-making workshops.'
	+ '<br><br>'
	+ '<span style="color:red;font-size:7pt;">'
	+ '* Please note that your name &amp; email details will <u>never</u> be passed to anyone else *'
	+ '<br>'
	+ 'We respect your privacy and security'
	+ '</span>'
	+ '<br><br>'
	+ '<span style="font-size:7pt;font-weight:normal;">'
	+ 'this slide down window is &copy; '
	+ '<a id="MAndrewLink" href="http://www.andrewgreen.biz" style="color:blue;" target="_blank" title="visit AndrewGreen.biz for website design &amp; advice" onmouseover="ChangeStyle(\'MAndrewLink\',\'over\');" onmouseout="ChangeStyle(\'mAndrewLink\',\'out\');">'
	+ 'Andrew Green</a>'
	+ '<br>'
	+ 'in association with '
	+ '<a id="M1art1Link" href="http://www.1-art-1.com" style="color:blue;" target="_blank" title="visit 1-art-1.com for contemporary abstract fibre art" onmouseover="ChangeStyle(\'M1art1Link\',\'over\');" onmouseout="ChangeStyle(\'M1art1Link\',\'out\');">'
	+ 'www.1-art-1.com</a>'
	+ '</span>'
	+ '<br><br>'
	+ '<a id="MCloseLink" href="#" onclick="HideBox();return false" style="font-family:\'Verdana\',\'Arial\',\'Helvetica\',sans-serif; color:blue;" onmouseover="ChangeStyle(\'MCloseLink\',\'over\');" onmouseout="ChangeStyle(\'MCloseLink\',\'out\');">'
	+ '<u>|close window|</u></a>'
	+ '</span>'

	document.write ('<div id="SlidedownDiv" style="position: absolute; height: 435px; width: 390px; left: 215px; top: 25px; visibility: hidden; border: 2px solid blue; padding:10px: background-color: white; color: black; font-family: sans-serif; font-size: 10pt;font-weight:normal;">'); 
	document.write (htmlsource);
	document.write ('</div>');

	} 


