var close_box_display = 'n'+'on'+'e'
var next_gall = 'dis' + 'play:' + close_box_display
var currently_displayed_element = 'gallery1'
var page_loaded = false;
var browser_stops_loading_page_on_click = true;
if ((navigator.appName == "Opera") || (navigator.appName =="Netscape")) 
	{browser_stops_loading_page_on_click = false} 
/* when you click a link, IE immediately stops loading the page, which means that, if the user goes to another gallery */
/* the thumbnails for that gallery will never load.  */
/* So, when I handle the click, I check the browser and put up a message if its not Opera or Mozilla (also disabling the move to display that gallery) */
/* in this context, Netscape means all Mozilla browsers */

<!-- Begin function for opening a window - arg 1 is url, arg 2 is (arbitrary) name, args 3&4 are width & height, arg 5 is scrollbars required (yes or no)
var win=null;
function NewWindow(mypage,myname,w,h,scroll)
{
myleft=(screen.width)?(screen.width-w)/2:100;
mytop=(screen.height)?(screen.height-h)/2:100;
settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=" + scroll + ",location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes";
win=window.open(mypage,myname,settings);
win.focus();
}
// End -->

<!-- begin function for changing enlargement to the currently selected image -->
<!-- note that, because a link has been clicked ,the images will have stopped loading, so we have to reload them  -->
function enlarge(type,imgno,gallno,need_to_load_caption,caption)
{
enlargement_id = 'enlargement' + gallno;
var img_element=new getObj(enlargement_id);
if (type=='w')
	{img_element.obj.src='wedding-photographs-weymouth-dorchester-dorset/' + imgno + '_std.jpg'}
if (type=='p')
	{img_element.obj.src='portrait-photographs-weymouth-dorchester-dorset/' + imgno + '_std.jpg'}
if (type=='c')
	{img_element.obj.src='commercial-photography-dorchester-weymouth-bridport-dorset/' + imgno + '_std.jpg'}
if (type=='l')
	{
	img_element.obj.src='landscape-photographs-portland-weymouth-west-dorset/' + imgno + '_std.jpg';
	if (need_to_load_caption)
		{
		enlargement_captionid = 'enlargement_caption' + gallno;
		var caption_element = new getObj(enlargement_captionid);
		caption_element.obj.innerHTML=caption;
		img_element.obj.title = '\'' + caption + '\' - an enlargement of this landscape photograph' 
		img_element.obj.alt = '\'' + caption + '\' - an enlargement of this landscape photograph' 
		}
	}
load_gallery_thumbnails (type,gallno,false)
}
<!-- End -->

<!-- begin function for displaying thumbnail in a gallery, after IE has stopped loading them -->
function thumbnail(type,imgno)
{
photo_id = 'thumbnail' + imgno
var img_element=new getObj(photo_id);
if (type=='w')
	{img_element.obj.src='wedding-photographs-weymouth-dorchester-dorset/' + imgno + '_thm.jpg'}
if (type=='p')
	{img_element.obj.src='portrait-photographs-weymouth-dorchester-dorset/' + imgno + '_thm.jpg'}
if (type=='c')
	{img_element.obj.src='commercial-photography-dorchester-weymouth-bridport-dorset/' + imgno + '_thm.jpg'}
if (type=='l')
	{img_element.obj.src='landscape-photographs-portland-weymouth-west-dorset/' + imgno + '_thm.jpg'}
}
<!-- End -->

<!-- begin function for swapping galleries - type=w, p or l -->
function display_gall(type,gallno)
{
var element_id = new getObj('intro');
element_id.style.display='block';
var gall_to_display = 'gallery' + gallno;
var element_id = new getObj(currently_displayed_element);
element_id.style.display=close_box_display;
element_id=new getObj(gall_to_display);
element_id.style.display='inline';
currently_displayed_element = gall_to_display;
load_gallery_thumbnails (type,gallno,true)
}
<!-- End -->

<!-- begin function for reloading gallery thumbnails: link has been clicked, therefore - in IE - page will have stopped loading -->
<!-- the load_enlargement variable is needed because if this function is called from enlarge(), it will be trying to load the enlargement -->
<!-- which was requested, at the same time as loading the original enlargement - which appears to cause a 'stack overflow' error (aaaargh!) -->
function load_gallery_thumbnails (type,gallno,load_enlargement)
{
if ((browser_stops_loading_page_on_click) && (!page_loaded))
	{
	if (type=='w')
		{
		if (gallno==1)
			{
			if (load_enlargement) {enlarge('w','0006',1);}
			thumbnail('w','0006');thumbnail('w','0003');thumbnail('w','0206');thumbnail('w','0207');thumbnail('w','0014');thumbnail('w','0011');thumbnail('w','0019');thumbnail('w','0598');thumbnail('w','0205');
			}
		if (gallno==2)
			{
			if (load_enlargement) {enlarge('w','0221',2);}
			thumbnail('w','0221');thumbnail('w','0007');thumbnail('w','0001');thumbnail('w','0005');thumbnail('w','0008');thumbnail('w','0203');thumbnail('w','0209');thumbnail('w','0009');thumbnail('w','0210');thumbnail('w','0211');thumbnail('w','0010');thumbnail('w','0213');
			}
		if (gallno==3)
			{
			if (load_enlargement) {enlarge('w','0212',3);}
			thumbnail('w','0212');thumbnail('w','0004');thumbnail('w','0214');thumbnail('w','0208');thumbnail('w','0229');thumbnail('w','0013');thumbnail('w','0217');thumbnail('w','0204');
			}
		if (gallno==4)
			{
			if (load_enlargement) {enlarge('w','0223',4);}
			thumbnail('w','0223');thumbnail('w','0017');thumbnail('w','0222');thumbnail('w','0216');thumbnail('w','0016');thumbnail('w','0577');thumbnail('w','0018');thumbnail('w','0581');
			}
		if (gallno==5)
			{
			if (load_enlargement) {enlarge('w','0600',5);}
			thumbnail('w','0600');thumbnail('w','0020');thumbnail('w','0224a');thumbnail('w','0568');thumbnail('w','0227');thumbnail('w','0215');thumbnail('w','0540');thumbnail('w','0599c');thumbnail('w','0015');thumbnail('w','0537');thumbnail('w','0566');thumbnail('w','0592');
			}
		if (gallno==6)
			{
			if (load_enlargement) {enlarge('w','0562',6);}
			thumbnail('w','0562');thumbnail('w','0594');thumbnail('w','0219');thumbnail('w','0593');thumbnail('w','0538');thumbnail('w','0700');thumbnail('w','0599b');thumbnail('w','0546');
			}
		if (gallno==7)
			{
			if (load_enlargement) {enlarge('w','0587',7);}
			thumbnail('w','0587');thumbnail('w','0224');thumbnail('w','0536');thumbnail('w','0599a');thumbnail('w','0225');thumbnail('w','0539');thumbnail('w','0580');thumbnail('w','0548b');
			}
		if (gallno==8)
			{
			if (load_enlargement) {enlarge('w','0548a',8);}
			thumbnail('w','0548a');thumbnail('w','0561b');thumbnail('w','0021');thumbnail('w','0228');thumbnail('w','0564');thumbnail('w','0561a');thumbnail('w','0022');thumbnail('w','0579');
			}		
		if (gallno==9)
			{
			if (load_enlargement) {enlarge('w','0590',9);}
			thumbnail('w','0590');thumbnail('w','0599');thumbnail('w','0548');thumbnail('w','0548');thumbnail('w','0561');thumbnail('w','0585');thumbnail('w','0597');thumbnail('w','0598');thumbnail('w','0595');
			}
		if (gallno==10)
			{
			if (load_enlargement) {enlarge('w','0596',10);}
			thumbnail('w','0596');thumbnail('w','0226');
			}
		}
	if (type=='p')
		{
		if (gallno==1)
			{
			if (load_enlargement) {enlarge('p','70005',1);}
			thumbnail('p','70005');thumbnail('p','40002');thumbnail('p','023');thumbnail('p','DSC_2372%20copy');thumbnail('p','EBJ_4852b%26w');thumbnail('p','40003');thumbnail('p','EBJ_8576a');thumbnail('p','port1');thumbnail('p','DSCF0195');
			}
		if (gallno==2)
			{
			if (load_enlargement) {enlarge('p','DSCF5712sepia',2);}
			thumbnail('p','DSCF5712sepia');thumbnail('p','q8');thumbnail('p','3');thumbnail('p','40001');thumbnail('p','DSC_2432');thumbnail('p','EBJ_4904b%26w');thumbnail('p','EBJ_8576a');thumbnail('p','DSCF5473');thumbnail('p','EBJ_8466a');
			}
		if (gallno==3)
			{
			if (load_enlargement) {enlarge('p','70001',3);}
			thumbnail('p','70001');thumbnail('p','DSCF2369');thumbnail('p','6');thumbnail('p','DSCF0082');thumbnail('p','EBJ_4909sepia');thumbnail('p','70007');thumbnail('p','70006');thumbnail('p','DSCF2898');thumbnail('p','DSCF2393');
			}
		if (gallno==4)
			{
			if (load_enlargement) {enlarge('p','DSCF2466',4);}
			thumbnail('p','EBJ_8529a');thumbnail('p','q');thumbnail('p','DSCF1314');thumbnail('p','DSCF2466');thumbnail('p','70008');thumbnail('p','ACV');
			}
		if (gallno==5)
			{
			if (load_enlargement) {enlarge('p','DSC_6637',5);}
			thumbnail('p','DSC_6637');thumbnail('p','EBJ_1429');
			}
		}
	if (type=='l')
		{
		if (gallno==1)
			{
			if (load_enlargement) {enlarge('l','Chesil%20Beach%202',1);}
			thumbnail('l','Chesil%20Beach%202');thumbnail('l','Lulworth%20Cove%20Dorset');thumbnail('l','Chesil%20Beach%20old%20boat');thumbnail('l','chesil%20storm');thumbnail('l','Church%20Ope%20Cove%20Porland');thumbnail('l','Lowtide%20Port%20Isaac');thumbnail('l','Osmington%20Dorset');thumbnail('l','105');thumbnail('l','Portland%20Lighthouse');thumbnail('l','Portland%20stone');
			}
		if (gallno==2)
			{
			if (load_enlargement) {enlarge('l','016',2);}
			thumbnail('l','016');thumbnail('l','028');thumbnail('l','082');thumbnail('l','puplit%20rock%20portland');thumbnail('l','Thrift%20at%20Eype');thumbnail('l','Weymouth%20Bay');thumbnail('l','024');
			}
		if (gallno==3)
			{
			if (load_enlargement) {enlarge('l','moonfleet%20',3);}
			thumbnail('l','moonfleet%20');thumbnail('l','Chesil%20Dorset');thumbnail('l','portland%20lighthouse%20blue');thumbnail('l','portland%20lighthouse2');thumbnail('l','Portland%204');thumbnail('l','Portland%20Bill');thumbnail('l','Portland%20Lighthouse%202');thumbnail('l','Portland%20Lighthouse%203');thumbnail('l','Thorncombe%20Woods%20B%26W');thumbnail('l','tree%20at%20seatown');
			}
		if (gallno==4)
			{
			if (load_enlargement) {enlarge('l','Kimmeridge',4);}
			thumbnail('l','Kimmeridge');thumbnail('l','Pulpit%20Rock%20wave');thumbnail('l','Chesil%20Beach%20thrift');thumbnail('l','Weymouth%202');thumbnail('l','abbotsbury%20view');thumbnail('l','portland%20blue');thumbnail('l','swans%20at%20moonfleet');thumbnail('l','thorncombe%20woods');
			}
		}
	if (type=='c')
		{
		if (gallno==1)
			{
			if (load_enlargement) {enlarge('c','101',1);}
			thumbnail('c','101');thumbnail('c','102');thumbnail('c','104');thumbnail('c','103');thumbnail('c','108');thumbnail('c','107');thumbnail('c','109');thumbnail('c','110');thumbnail('c','106');thumbnail('c','105');
			}
		if (gallno==2)
			{
			if (load_enlargement) {enlarge('c','007',2);}
			thumbnail('c','007');thumbnail('c','001');thumbnail('c','002');thumbnail('c','003');thumbnail('c','004');thumbnail('c','005');thumbnail('c','006');thumbnail('c','008');thumbnail('c','009');
			}
		}
	}
}
<!-- End -->

<!-- NOTE - this function is now redundant -->

<!-- begin function for displaying alert message if page (images) have not been fully loaded -->
<!-- if not loaded, the alert is displayed and the click to view an enlargment won't work -->
<!-- if it is loaded, the click will work -->
<!-- this is a problem in IE, but not in FF and Opera, so I use the variable browser_stops_loading_page_on_click to check this (set at start of this file) -->
function handle_gallery_click (type_of_click)
{
if (type_of_click == 'enlargement')
	{
	alert_msg = 'Because of a problem with some web browsers (particularly Internet Exporer), you\'ll have to wait a few moments for all the \'thumbnail\' images to load in the background, ' + 
	'before viewing enlargements.' +
	'\n \nYou can normally see the number of images remaining in the \'status bar\' at the bottom of the browser window.' +
	'\n \nJust wait a few moments and then try to view the enlargement you\'ve chosen again.  ' +
	'As soon as all the images have loaded, you\'ll automatically be shown the enlargement.  ' +
	'Sorry for the inconvenience!'
	}
if (type_of_click == 'gallery')
	{
	alert_msg = 'Because of a problem with some web browsers (particularly Internet Exporer), you\'ll have to wait a few moments for all the \'thumbnail\' images to load in the background, ' + 
	'before viewing the other galleries.' +
	'\n \nYou can normally see the number of images remaining in the \'status bar\' at the bottom of the browser window.' +
	'\n \nJust wait a few moments and then try to view the gallery you\'ve chosen again.  ' +
	'As soon as all the images have loaded, you\'ll automatically be taken to that gallery.  ' +
	'Sorry for the inconvenience!'
	}
if (type_of_click == 'faqs')
	{
	alert_msg = 'Because of a problem with some web browsers (particularly Internet Exporer), you\'ll have to wait a few moments for all the \'thumbnail\' images to load in the background, ' + 
	'before reading my FAQs.' +
	'\n \nYou can normally see the number of images remaining in the \'status bar\' at the bottom of the browser window.' +
	'\n \nJust wait a few moments and then try clicking to read the FAQs again.  ' +
	'As soon as all the images have loaded, you\'ll automatically be taken to them.  ' +
	'Sorry for the inconvenience!'
	}
if (type_of_click == 'prices')
	{
	alert_msg = 'Because of a problem with some web browsers (particularly Internet Exporer), you\'ll have to wait a few moments for all the \'thumbnail\' images to load in the background, ' + 
	'before looking at my price list.' +
	'\n \nYou can normally see the number of images remaining in the \'status bar\' at the bottom of the browser window.' +
	'\n \nJust wait a few moments and then try clicking to look at the price list again.  ' +
	'As soon as all the images have loaded, you\'ll automatically be taken there.  ' +
	'Sorry for the inconvenience!'
	}
if (browser_stops_loading_page_on_click)
	{
	if (!page_loaded) {alert (alert_msg);}
	}
else
	{page_loaded = true;}
}

<!-- begin function for displaying text on gallery pages -->
function display_text(text_divid)
{
var element_id = new getObj('intro');
element_id.style.display=close_box_display;
var element_id = new getObj(currently_displayed_element);
element_id.style.display=close_box_display;
element_id=new getObj(text_divid);
element_id.style.display='inline';
currently_displayed_element = text_divid;
}
<!-- End -->

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

function ResizeScreen(Width,Height)
{window.moveTo(0,0);
var PageWidth = Width;	
if (Height == null) 
	{PageHeight = screen.availHeight} 	
else 
	{PageHeight = Height} 	 	
if (screen.availHeight < Height) 
	{PageHeight = screen.availHeight};
if (screen.availWidth < Width) 
	{PageWidth = screen.availWidth};
window.resizeTo(PageWidth,PageHeight);
}

// End -->

<!-- Begin function for getting correct object prefix, according to how browser treats document elements

function getObj(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 showing a help box (div) on screen -->

function show_help_box(divname,boxheight)
{
var divtoshow = new getObj(divname);
divtoshow.style.display = 'block';
}

<!-- End -->

<!-- Begin function for showing a help box (div) on screen, with display:inline -->

function show_help_box_inline(divname,boxheight)
{
var divtoshow = new getObj(divname);
divtoshow.style.display = 'inline';
}

<!-- End -->

// End -->
<!-- Begin function for hiding a help box (div) on screen

function close_help_box(divname)
{
var divtoclose = new getObj(divname);
divtoclose.style.display = close_box_display;  
}

<!-- 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 (domain.substr(0,4) == 'www.')
	{domain = domain.substring(4,(domain.length+1));}
if (domain.substr(0,11) == 'http://www.')
	{domain = domain.substring(11,(domain.length+1));}
if (emailrecipient.indexOf('@') > -1)
	{emailaddress = emailrecipient} 
else
	{emailaddress = emailrecipient + atsign + domain} 
if (emailaddress.search(/[ \/;:,]/) > -1)
	{alert ('email addresses can\'t have a space or , or ; or : or / in them.\nYou used \'' + emailrecipient + '\', which is invalid'); return} 
if ((linktype != 'text') && (linktype != 'address')) 
	{alert ('the linktype argument must be \'text\' or \'address\'.\nYou used \'' + linktype + '\''); return;}
if ((atagid == '') || (atagid == undefined)) 
	{idattribute=''} 
else 
	{idattribute = 'id="' + atagid + '" '}
if ((emailsubject == '') || (emailsubject == undefined))  
	{emailsubjectsubattribute=''} 
else
	{emailsubjectsubattribute = '?subject=' + emailsubject};
if ((emailbody == '') || (emailbody == undefined))  
	{emailbodysubattribute=''} 
else
	{emailbodysubattribute = '&body=' + emailbody};
atagcode = '<a class="' 
	+ styleclass + '" ' 
	+ idattribute
	+ 'href="mailto:'
	+ emailaddress
	+ emailsubjectsubattribute 
	+ emailbodysubattribute
	+ '" title="'
	+ atagtitle
	+ '">';
(linktype == 'text')? 
	linkcode = linktext + '</a>' : 
	linkcode = emailrecipient + atsign + domain + '</a>';
document.write (atagcode);
document.write (linkcode);
}

// End -->

<!-- Begin function for generating email anchor tag for an image 

// **************************************************************
// 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 (domain.substr(0,4) == 'www.')
	{domain = domain.substring(4,(domain.length+1));}
if (domain.substr(0,11) == 'http://www.')
	{domain = domain.substring(11,(domain.length+1));}
if (emailrecipient.indexOf('@') > -1)
	{emailaddress = emailrecipient} 
else
	{emailaddress = emailrecipient + atsign + domain} 
if (emailaddress.search(/[ \/;:,]/) > -1)
	{alert ('email addresses can\'t have a space or , or ; or : or / in them.\nYou used \'' + emailrecipient + '\', which is invalid'); return} 
if ((emailsubject == '') || (emailsubject == undefined))  
	{emailsubjectsubattribute=''} 
else
	{emailsubjectsubattribute = '?subject=' + emailsubject};
if ((emailbody == '') || (emailbody == undefined))   
	{emailbodysubattribute=''} 
else 
	{emailbodysubattribute = '&body=' + emailbody};
atagcode = '<a class="' 
	+ '" href="mailto:'
	+ emailaddress
	+ emailsubjectsubattribute 
	+ emailbodysubattribute
	+ '" title="'
	+ atagtitle
	+ '">';
document.write (atagcode);
}

// 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 == '') || (emailbody == undefined))   
	{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 getting correct document body, to be used with checking the scroll position

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

// 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 -->

<!-- begin function for making Christmas elements visible at the right time, using display:block -->
function change_lightbox(lightbox_no,gall_type)
{
var rel_attribute = 'lightbox[photos'+lightbox_no+']'
var image_total = 112;
if (gall_type=='l')
	{
	image_total = 35;
	}
for (var i=1; i<(image_total+1); i++)
	{
	var ElementName = new getObj('slideshow' + i);
	ElementName.obj.rel = rel_attribute;
	}
}
<!-- Begin function for image favorites reminder link, with alert if Netscape

function ImageFavPrompt (PageUrl,PageTitle)

{
if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) 
	{
	window.external.AddFavorite(PageUrl,PageTitle);
  	}
else 
	{
  	var msg = "On Netscape, you should press CTRL+SHIFT+D to bookmark this page";
  	if(navigator.appName == "Netscape") 
  		{  
    		alert(msg);
    		}
  	else
  		{
		alert("Unfortunately, your browser can't do this automatically ... but don't forget to add this page to your favorites now");   		
		}
	}
}
// End -->

<!-- Begin function for generating links --> 

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

function GenerateLink(linktype,linkurl,linktext,atagtitle,htmlimgtag)
{
var displayedlinkurl = linkurl;
if (linkurl.indexOf('www') == -1) {displayedlinkurl = 'http://' + linkurl};
var htmlatagend = 'href="http://' + linkurl + '" target="_blank" title="' + atagtitle + '">';
document.write('<div style="float:left;display:inline;margin:0px 40px 10px 0px;width:420px;">');
document.write('<a class="hover" ' + htmlatagend); 
if (linktype == 'image')
	{
	document.write(htmlimgtag + ' ');
	}
document.write(linktext + '</a>');
document.write('</div><div style="float:left;display:inline;width:150px;">');
styleclassdefn = 'class="hover" ' 
document.write('<a ' + htmlatagend); 
document.write(displayedlinkurl + '</a></div>');
}

<!-- End -->

