	function stretch_cols() {
		var lc=document.getElementById("leftcolomn");
		var flc=document.getElementById("colfooter-bottomleft");
		var rc=document.getElementById("rightcolomn");
		var frc=document.getElementById("colfooter-bottomright");
		var cc=document.getElementById("centercolomn");
		var cashbutton=document.getElementById("residentoffers_btn");
		
		// if left colomn less than content, adjust
		if (lc.offsetHeight < cc.offsetHeight) {
			lc.style.height=cc.offsetHeight+"px";
		}
		
		// if right colomn less than content, adjust
		if (rc.offsetHeight < cc.offsetHeight) {
			rc.style.height=cc.offsetHeight+"px";
		}
		
		// if colomn heights dont match, adjust
		if (lc.offsetHeight > rc.offsetHeight) {
			rc.style.height=lc.offsetHeight+"px";
		} else if (rc.offsetHeight > lc.offsetHeight) {
			lc.style.height=rc.offsetHeight+"px";
		}

		cashbutton.style.visibility='visible';
		
	}
	
	function searchbutton(e, state) {
		var btn=eval(e);
		if (state==0) {
			btn.style.color='#fefefe';
		} else if (state==1) {
			btn.style.color='#fff2c7';
		}
	}

	function needitnow(e) {
		var li=eval(e);
		
		// first run ..
		
			li.style.border_style="none none solid none";
		
	}
	
	function gocol(e,col) {
		eval(e).style.background=col;
	}
	
	function searchloc(frm, keywords, location)
	{
		var keywords = document.forms.searchform.elements['productservice'].value;
		var businessname = document.forms.searchform.elements['businessname'].value;
		var location = "Tenerife";
		var letter = "A";
		
		if (businessname) {
		document.location.href='/business/searchbyname/' + businessname + '/' + location + '/' + letter;
		} else if (keywords) {
		document.location.href='/business/search/' + keywords + '/' + location + '/' + letter;	
		} else { return false; }
		
		return false;
	}
	
	function searchlocbyname(frm, keywords, location)
	{
		var keywords = document.forms.searchform.elements['keywords'].value;
		var location = "Tenerife";
		var letter = "A";
		
		document.location.href='/business/searchbyname/' + keywords + '/' + location + '/' + letter;
		return false;
	}
	
	function AdwordsStatus()
	{
		var aw=document.getElementById("adwords");
		var eaw=document.getElementById("enableadwords");
		
		if (eaw.checked==true) {
			aw.style.background='#f9f9f9';
			aw.disabled=false;
			aw.focus();
			AdwordsCount();
			return true;
		} else if (eaw.checked==false) {
			aw.style.background='#ddd';
			aw.disabled=true;
			aw.value='';
			aw.blur();
			AdwordsCount();
			return true;
		}
		
	}
	
	function AdwordsCount()
	{
		var aw=document.getElementById("adwords");
		var awc=document.getElementById("adwordscounter");
		var count=120-aw.value.length;
		awc.innerHTML="<b>" + count + "</b> characters remaining";
		
		if (count<0) {
			aw.value=aw.value.substr(0,120);
			awc.innerHTML="<b>0</b> characters remaining";
		}
		
		
	}
	
	function ListFormVal()
	{
			//document.getElementById("description").value = dojo.widget.manager.getWidgetById("editdiv")._richText.getEditorContent() + "\n<br>";
			
			
			if (document.forms.listingform.elements['title'].value.length <3 || document.forms.listingform.elements['title'].value.length > 255)
				{
					alert("Your listing title must be between 3 and 255 characters.");
					document.forms.listingform.elements['title'].focus();
					return false;
				}
			if (document.forms.listingform.elements['enableadwords'].checked==true) {
				if (document.forms.listingform.elements['adwords'].value.length <10 || document.forms.listingform.elements['adwords'].value.length >120 ) {
					alert("Your Ad-Words must be between 10 and 120 characters.\r\nRemember to use words and phrases that relate to the services you provide.");
					document.forms.listingform.elements['adwords'].focus();
					return false;
				}
			}
			if (!emailvalid(document.forms.listingform.elements['email'].value)) {
				alert("Please enter a valid email address.\r\nThis is extremely important to your account.");
				document.forms.listingform.elements['email'].focus();
					return false;
			}
			if (document.forms.listingform.elements['email'].value.length < 6 || document.forms.listingform.elements['email'].value.length > 255)
				{
					alert("Your email address must be between 6 and 255 characters.");
					document.forms.listingform.elements['email'].focus();
					return false;
				}
			if (document.forms.listingform.elements['phone'].value.length < 6 || document.forms.listingform.elements['phone'].value.length > 50)
				{
					alert("Your phone number must be between 6 and 50 characters.");
					document.forms.listingform.elements['phone'].focus();
					return false;
				}
			if (document.forms.listingform.elements['fax'].value.length > 50)
				{
					alert("Your fax number must not be greater than 50 characters.");
					document.forms.listingform.elements['fax'].focus();
					return false;
				}
			if (document.forms.listingform.elements['hours'].value.length > 255)
				{
					alert("Your business hours must not be greater than 255 characters.");
					document.forms.listingform.elements['hours'].focus();
					return false;
				}
			if (document.forms.listingform.elements['city'].value.length > 255)
				{
					alert("Your town be not be greater than 255 characters");
					document.forms.listingform.elements['city'].focus();
					return false;
				}
			if (document.forms.listingform.elements['address'].value.length > 255)
				{
					alert("Your address be not be greater than 255 characters");
					document.forms.listingform.elements['address'].focus();
					return false;
				}
			if (document.forms.listingform.elements['postcode'].value.length > 25)
				{
					alert("Your postcode must not be greater than 25 characters.");
					document.forms.listingform.elements['postcode'].focus();
					return false;
				}
			if (document.forms.listingform.elements['val'].value.length != 4)
				{
					alert("The validation code must be 4 characters long, please enter the string shown in the image.");
					document.forms.listingform.elements['val'].focus();
					
					return false;
				}
			else { return true;	}
			
			
	}
	
	function ListFormValB()
	{
	var lt=document.forms.listingform.elements['listingtype'][1];
		
			if (!document.forms.listingform.elements['image'].value.match(/(.gif|.png|.jpg)$/) && document.forms.listingform.elements['image'].value.length>=5)
			{
				alert("Image must be either a GIF, JPG or PNG");
				document.forms.listingform.elements['image'].value="";
				document.forms.listingform.elements['image'].focus();
				return false;
			}
			if (document.forms.listingform.elements['title'].value.length <3 || document.forms.listingform.elements['title'].value.length > 255)
				{
					alert("Your listing title must be between 3 and 255 characters.");
					document.forms.listingform.elements['title'].focus();
					return false;
				}
			if (!emailvalid(document.forms.listingform.elements['email'].value)) {
				alert("Please enter a valid email address.\r\nThis is extremely important to your account.");
				document.forms.listingform.elements['email'].focus();
					return false;
			}
			if (document.forms.listingform.elements['email'].value.length < 6 || document.forms.listingform.elements['email'].value.length > 255)
				{
					alert("Your email address must be between 6 and 255 characters.");
					document.forms.listingform.elements['email'].focus();
					return false;
				}
			if (document.forms.listingform.elements['phone'].value.length < 6 || document.forms.listingform.elements['phone'].value.length > 50)
				{
					alert("Your phone number must be between 6 and 50 characters.");
					document.forms.listingform.elements['phone'].focus();
					return false;
				}
			if (document.forms.listingform.elements['fax'].value.length > 50)
				{
					alert("Your fax number must not be greater than 50 characters.");
					document.forms.listingform.elements['fax'].focus();
					return false;
				}
			if (document.forms.listingform.elements['hours'].value.length > 255)
				{
					alert("Your business hours must not be greater than 255 characters.");
					document.forms.listingform.elements['hours'].focus();
					return false;
				}
			if (document.forms.listingform.elements['city'].value.length > 255)
				{
					alert("Your town be not be greater than 255 characters");
					document.forms.listingform.elements['city'].focus();
					return false;
				}
			if (document.forms.listingform.elements['address'].value.length > 255)
				{
					alert("Your address be not be greater than 255 characters");
					document.forms.listingform.elements['address'].focus();
					return false;
				}
			if (document.forms.listingform.elements['postcode'].value.length > 25)
				{
					alert("Your postcode must not be greater than 25 characters.");
					document.forms.listingform.elements['postcode'].focus();
					return false;
				}
			if (document.forms.listingform.elements['val'].value.length != 4)
				{
					alert("The validation code must be 4 characters long, please enter the string shown in the image.");
					document.forms.listingform.elements['val'].focus();
					
					return false;
				}
			else { 
			
				//alert(document.forms.listingform.elements['listingtype'].value);
				//return false;
				if (document.forms.listingform.elements['listingtype'][1].checked==false) {
				// basic selected.
				return confirm("You have completed full business details .. but chosen a basic listing.\n\nOnly the business name and phone number will appear in the a-z listings.\n\nPremium listings appear above all basic search results.\n\nAre you sure you want to continue?","Continue?");
				
				} else {
					return true;
				}
			
			}
	}
	
	function ContactFormVal()
	{
			if (!emailvalid(document.forms.contactform.elements['email'].value)) {
				alert("Please enter a valid email address.");
				document.forms.contactform.elements['email'].focus();
					return false;
			}
			if (document.forms.contactform.elements['email'].value.length < 6 || document.forms.contactform.elements['email'].value.length > 255)
				{
					alert("Your email address must be between 6 and 255 characters.");
					document.forms.contactform.elements['email'].focus();
					return false;
				}
			if (document.forms.contactform.elements['message'].value.length < 5 || document.forms.contactform.elements['message'].value == "Please type your message here")
				{
					alert("Please enter a message to send.");
					document.forms.contactform.elements['message'].focus();
					
					return false;
				}
			if (document.forms.contactform.elements['val'].value.length != 4)
				{
					alert("The validation code must be 4 characters long, please enter the string shown in the image.");
					document.forms.contactform.elements['val'].focus();
					
					return false;
				}
			else { return true;	}
	}
	
	function RegisterVal()
	{
			
			
			if (document.forms.registerform.elements['name'].value.length < 5 || document.forms.registerform.elements['email'].value.length > 255)
				{
					alert("Your name must be between 5 and 255 characters.");
					document.forms.registerform.elements['name'].focus();
					return false;
				}
				
			if (document.forms.registerform.elements['business_name'].value.length < 5 || document.forms.registerform.elements['email'].value.length > 255)
				{
					alert("Your business name must be between 5 and 255 characters.");
					document.forms.registerform.elements['business_name'].focus();
					return false;
				}
				
			if (document.forms.registerform.elements['phone'].value.length < 5 || document.forms.registerform.elements['email'].value.length > 255)
				{
					alert("Your phone number must be between 5 and 255 characters.");
					document.forms.registerform.elements['phone'].focus();
					return false;
				}
				
			if (!emailvalid(document.forms.registerform.elements['email'].value)) {
				alert("You must provide a valid email address to register.");
				document.forms.registerform.elements['email'].focus();
					return false;
			}
			
			if (document.forms.registerform.elements['email'].value.length < 6 || document.forms.registerform.elements['email'].value.length > 255)
				{
					alert("Your email address must be between 6 and 255 characters.");
					document.forms.registerform.elements['email'].focus();
					return false;
				}
			if (document.forms.registerform.elements['pass'].value.length < 5)
				{
					alert("Please enter a password of 5 characters of more.");
					document.forms.registerform.elements['pass'].focus();
					
					return false;
				}
			if (document.forms.registerform.elements['pass'].value != document.forms.registerform.elements['pass2'].value)
				{
					alert("Your passwords do not match, please try again.");
	
					document.forms.registerform.elements['pass'].value="";
					document.forms.registerform.elements['pass2'].value="";
					document.forms.registerform.elements['pass'].focus();
					
					return false;
				}
			else { return true;	}
	}
	
	function OrderFormVal()
	{
			if (!emailvalid(document.forms.orderform.elements['email'].value)) {
				alert("Please enter a valid email address.");
				document.forms.orderform.elements['email'].focus();
					return false;
			}
			else if (document.forms.orderform.elements['email'].value.length < 6 || document.forms.orderform.elements['email'].value.length > 255)
				{
					alert("Your email address must be between 6 and 255 characters.");
					document.forms.orderform.elements['email'].focus();
					return false;
				}
			else if (document.forms.orderform.elements['location'].value=="blank")
				{
					alert("Please select your location.");
					document.forms.orderform.elements['location'].focus();
					
					return false;
				}
			else if (document.forms.orderform.elements['gender'].value=="blank")
				{
					alert("Please select your gender.");
					document.forms.orderform.elements['gender'].focus();
					
					return false;
				}
			else if (document.forms.orderform.elements['age'].value=="blank")
				{
					alert("Please select your age range.");
					document.forms.orderform.elements['age'].focus();
					
					return false;
				}
			else { return true;	}
	}

	
	function ContentVal()
	{
			var oEditor = FCKeditorAPI.GetInstance('description');
			var description=oEditor.GetHTML();
			
			if (document.forms.minisitecontent.elements['title'].value.length < 5 || document.forms.minisitecontent.elements['title'].value.length > 255)
				{
					alert("Your content title must be between 5 and 255 characters.");
					document.forms.minisitecontent.elements['title'].focus();
					return false;
				}
			if (description.length < 10)
				{
					alert("Please enter a description of at least 10 characters.");
					return false;
				}
			else { return true;	}
	}
	
	function PropertyVal()
	{
		var oEditor = FCKeditorAPI.GetInstance('property_description');
		var description=oEditor.GetHTML();
				
		if (document.forms.propertyform.elements['property_title'].value.length >255 || document.forms.propertyform.elements['property_title'].value.length <10)
		{
		    alert('Property Title must contain between 10 and 255 characters');
		    document.forms.propertyform.elements['property_title'].focus();
		    return false;
		}
		if (description.length <10)
		{
		    alert('Property Description must contain atleast 10 characters');
		    return false;
		}
		if (!isInt(document.forms.propertyform.elements['property_beds'].value))
		{
		    alert('The number of beds must be a valid number.');
		    document.forms.propertyform.elements['property_beds'].focus();
		    return false;
		}
		if (!isInt(document.forms.propertyform.elements['property_price'].value))
		{
		    alert('The price of the property must be entered as a number (90000)');
		    document.forms.propertyform.elements['property_price'].focus();
		    return false;
		} else { return true; }
		
	}
	
	function PropertySearchVal()
	{
			if (!emailvalid(document.forms.propertysearchform.elements['ue'].value)||document.forms.propertysearchform.elements['ue'].value=="test@test.com") 
{
				alert("You need to enter your email to continue,\n\nYou will also be entered into our free flights to Tenerife prize draw.\n\nWinners notified by email.");
				document.forms.propertysearchform.elements['ue'].focus();
					return false;
			}
			else { 
				document.forms.propertysearchform.elements['ue'].value=escape(document.forms.propertysearchform.elements['ue'].value);
				return true;
			}
	}
	
	function LostPasswordVal()
	{
			if (!emailvalid(document.forms.lostpassword.elements['email'].value)) {
				alert("Please enter a valid email address or contact support@bptenerife.com.");
				document.forms.lostpassword.elements['ue'].focus();
					return false;
			}
			else if (document.forms.lostpassword.elements['val'].value.length<4) {
				alert("The Validation code must be 4 characters long, please re-enter.");
				document.forms.lostpassword.elements['val'].focus();
					return false;
			}
			else { 
				return true;
			}	
	}
	
	function ChangePasswordVal()
	{
		if (document.forms.changepassword.elements['curpassword'].value.length<5) {
			alert("Please enter your current password.");
			document.forms.changepassword.elements['curpassword'].focus();
			return false;
		} else if (!document.forms.changepassword.elements['newpassword'].value.match(/^[a-z|0-9]+$/i) || document.forms.changepassword.elements['newpassword'].value.length<5) {
			alert("Your new password must be 5 or more characters in length and consist only of letters and digits. Please try again.");
			document.forms.changepassword.elements['newpassword'].focus();
			return false;
		} else if (document.forms.changepassword.elements['newpassword'].value!=document.forms.changepassword.elements['newpassword2'].value) {
			alert("Your new passwords do not match.");
			document.forms.changepassword.elements['newpassword'].value='';
			document.forms.changepassword.elements['newpassword2'].value='';
			document.forms.changepassword.elements['newpassword'].focus();
			return false;
		} else if (document.forms.changepassword.elements['newpassword'].value==document.forms.changepassword.elements['newpassword2'].value && document.forms.changepassword.elements['newpassword'].value==document.forms.changepassword.elements['curpassword'].value) {
			alert("Your new password is the same as your current password.");
			document.forms.changepassword.elements['newpassword'].value='';
			document.forms.changepassword.elements['newpassword2'].value='';
			document.forms.changepassword.elements['newpassword'].focus();
			return false;
		}
		else { 
				return true;
			}	
			
	}
	
	function isInt(i) {
		var j=parseInt(i);
		if (isNaN(j)) return false;
		return i==j && i.toString()==j.toString();
	}
	
	function deletecontent(e) {
	var yes = confirm("Delete content item?","Delete?");
	if (yes) {
		document.location.href=e;
	}
	}
	
	function movecontentdown(id,pid,pos)
	{
		document.location.href='/usersuite/?movecontent_down&id=' + id + '&pid=' + pid;
	}
	
	function movecontentup(id,pid,pos)
	{
		document.location.href='/usersuite/?movecontent_up&id=' + id + '&pid=' + pid;
	}
	
	function editproperty(pid) {
		document.location.href='/usersuite/?editproperty&pid=' + pid + '#editpropertyinfo';
		return false;
	}
	
	function deleteproperty(pid, pro) {
	var yes = confirm("Delete Property: " + pro + "?","Delete?");
	if (yes) {
		document.location.href='/usersuite/?deleteproperty&pid=' + pid + '#propdisp';
	}
	return false;
	}
	
	function property_status(status, pid) {
		document.location.href='/usersuite/?propertystatus&pid=' + pid + '&status=' + status + '#propdisp';
		return false;
	}
	
	function pmscroll() {
		//var destinationLink = document.getElementById('pman');
		 
		//window.scrollTo(0,destinationLink.offsetTop);
	}
	
	function emailvalid(str) {
	   return (str.lastIndexOf(".") > 2) && (str.indexOf("@") > 0); }
	
	Array.prototype.inArray=function(val) {
		var i;
		for(i=0;i<this.length;i++) {
			if (this[i] === val) {
				return true;
			}
		}
		return false;
	};
	   
	function PreviewListing() {
		var vtp = Array("title","phone","fax","address","announcements","directory","image","website","hours","aarea","city","island","category","curimage","adwords","directory");
		var url="http://www.bptenerife.com/preview.php";
		//var url="http://127.0.0.1/preview.php";
		var oEditor = FCKeditorAPI.GetInstance('description');
		
		pFrm=document.getElementById("listingform");
		pStr="?both=yes";
		
		for (i=0;i<pFrm.elements.length;i++) {
			ement=pFrm.elements[i];
			
			if (vtp.inArray(ement.name)) {
			pStr += "&" + ement.name + "=" + escape(ement.value); }
		}
		
		url += pStr + "&description=" + escape(oEditor.GetHTML());
		
		window.open(url,"PreviewListing","menubar=0,toolbar=0,location=0,directories=0,resizable=0,status=0,scrollbars=1,width=708,height=600");
	}
		
		function gotopageproperty(e){var page = document.getElementById(e); document.location.href = page.value; }
		function nwgoogle(url){nwin=window.open(url,"","width=570,height=460,scrollbars=yes,resizable=yes,menubar=yes,toolbar=yes,addressbar=yes");}
		function setopac(e,opac,fopac) {
			var ele=eval(e);
			ele.style.opacity=opac;
			ele.style.filter="alpha(opacity=" + fopac + ")";
		}
		
	function phf() {
		var prow=document.getElementById('byphoneval');
		
		if (document.forms.propertysearchform.elements['byphone'].checked) {
			prow.style.display='';
			document.forms.propertysearchform.elements['phonenumber'].focus();
			
		} else {
			prow.style.display='none';
			document.forms.propertysearchform.elements['phonenumber'].value='';
			document.forms.propertysearchform.elements['phonenumber'].blur();
			
		}
	
	}
	

	
	var tickertime=null;
	var currenttick=0;
	var tickeropacity=0;
	
	function infoticker(e) {

		var infoticker = document.getElementById('infoticker');
		

		switch(e) {
			case "in":
				infoticker.style.opacity=tickeropacity/100;
				infoticker.style.filter='alpha(opacity=' + tickeropacity + ');';
				tickeropacity+=4;
				if (tickeropacity>=100) {
					tickertime=setTimeout('infoticker(\'out\')',7000);
					tihckeropacity=100;
				} else {
					tickertime=setTimeout('infoticker(\'in\')',10);
				}
			break;
			
			case "out":
				infoticker.style.opacity=tickeropacity/100;
				infoticker.style.filter='alpha(opacity=' + tickeropacity + ');';
				tickeropacity-=4;
				if (tickeropacity<=0) {
					clearTimeout(tickertime);
					currenttick=Math.floor(Math.random()*ticker.length);
					infoticker.innerHTML=ticker[currenttick];
					tickertime=setTimeout('infoticker(\'in\')',10);
				} else {
					tickertime=setTimeout('infoticker(\'out\')',10);
				}
			break;
			
			default:
			break;
		}	
	
	}
	
	function property_card(pid) {

	window.open("/propertycard.php?property_id="+pid,"_blank","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=800, height=600");
	}
	
	function productorservice(e) {
		var ps=document.getElementById("productservice");
		var bn=document.getElementById("businessname");
		
		if (e=="productservice") {
			// 
			if (ps.value.length>=3) {
				bn.value="";
			}
		} else if (e=="businessname") {
			// 
			if (bn.value.length>=3) {
				ps.value="";
			}
		}
		
		
		
	}
	
	function top_ad_screen() {
		var ta=document.getElementById("top_ad");
		var sa=document.getElementById("screen_advert");
		sa.style.top=ta.offsetTop+"px";
		sa.style.left=ta.offsetLeft+"px";
		
		
		if (sa.style.visibility=="visible") {
			//sa.style.visibility="hidden";
			fade("off","screen_advert");
		} else { 
			//sa.style.visibility="visible";
			fade("on","screen_advert");
		}
		
	}
	
	function pdfdownload_val() {
		if (!emailvalid(document.forms.pdfd.elements['email'].value) || document.forms.pdfd.elements['email'].value.length<3) {
			alert("Please enter a valid email address to download the Terms and Conditions");
			return false;
		} else {
			return true;
		}
	}
	
	function sendtoafriend() {
		var sa=document.getElementById("dlgStaf");
		
		if (sa.style.visibility=="visible") {
			sa.style.visibility="hidden";
		} else { 
			sa.style.visibility="visible";
		}
		
	}
	
	function overlay(i) {
		var fr="site";
		var co="cov";
		var obj=document.getElementById(fr+i);
		var cov=document.getElementById(co+i);
		var curleft = curtop = 0;
		
		 curleft=obj.offetLeft;
		 curtop=obj.offsetTop;
		 
		 curleft=7;
		 
		cov.style.left=curleft+"px";
		cov.style.top=curtop+"px";
	}
	

	
	function show_advertiser_sites_and_logo() {
		document.write("		<iframe src=\"http://www.tate-properties.com\" scrolling=\"no\" id=\"site5\"></iframe>\n");
		//document.write("		<iframe src=\"http://www.look-tenerifeproperty.com/\" scrolling=\"no\" id=\"site1\"></iframe>\n");
		document.write("		<iframe src=\"http://www.sunway-tenerife.com\" scrolling=\"no\" id=\"site2\"></iframe>\n");
		//document.write("		<iframe src=\"http://www.tenerifepropertyagency.net\" scrolling=\"no\" id=\"site3\"></iframe>\n");
		//document.write("		<iframe src=\"http://www.callaoestates.com\" scrolling=\"no\" id=\"site4\"></iframe>\n");
		document.write("		<iframe src=\"http://www.homesandaway.com\" scrolling=\"no\" id=\"site4\"></iframe>\n");
		//document.write("		<a href=\"http://www.tenerifedivineproperties.com\"><img src=\"/images/pthumb/divinelogo.gif\" alt=\"Tenerife Divine Properties\" title=\"Tenerife Divine Properties\" style=\"margin:0 0 10px 7px;border:none\" /></a>\n");
		//document.write("		<iframe src=\"http://www.tenerifedivineproperties.com\" scrolling=\"no\" id=\"site7\"></iframe>\n");
		//document.write("		<div id=\"cov1\"><a href=\"http://www.bptenerife.com/goto.php?url=http://www.look-tenerifeproperty.com/?cp\" target=\"_blank\"><img src=\"/images/pthumb/tenerifelook.gif\" alt=\"Visit our website shown here\" title=\"Visit our website shown here\" /></a></div>		\n");
		document.write("		<div id=\"cov2\"><a href=\"http://www.bptenerife.com/goto.php?url=http://www.sunway-tenerife.com/?cp\" target=\"_blank\"><img src=\"/images/pthumb/sunway.gif\" alt=\"Visit our website shown here\" title=\"Visit our website shown here\" /></a></div>\n");
		//document.write("		<div id=\"cov3\"><a href=\"http://www.bptenerife.com/goto.php?url=http://www.tenerifepropertyagency.net/?cp\" target=\"_blank\"><img src=\"/images/pthumb/tpbs.gif\" alt=\"Visit our website shown here\" title=\"Visit our website shown here\" /></a></div>\n");
		//document.write("		<div id=\"cov4\"><a href=\"http://www.bptenerife.com/goto.php?url=http://www.callaoestates.com/?cp\" target=\"_blank\"><img src=\"/images/pthumb/callao.gif\" alt=\"Visit our website shown here\" title=\"Visit our website shown here\" /></a></div>\n");
		document.write("		<div id=\"cov4\"><a href=\"http://www.bptenerife.com/goto.php?url=http://www.homesandaway.com/?cp\" target=\"_blank\"><img src=\"/images/pthumb/homes.gif\" alt=\"Visit our website shown here\" title=\"Visit our website shown here\" /></a></div>\n");
		document.write("		<div id=\"cov5\"><a href=\"http://www.bptenerife.com/goto.php?url=http://www.tate-properties.com/?cp\" target=\"_blank\"><img src=\"/images/pthumb/tate.gif\" alt=\"Visit our website shown here\" title=\"Visit our website shown here\" /></a></div>\n");
		//document.write("		<div id=\"cov7\"><a href=\"http://www.bptenerife.com/goto.php?url=http://www.tenerifedivineproperties.com/?cp\" target=\"_blank\"><img src=\"/images/pthumb/divine.gif\" alt=\"Visit our website shown here\" title=\"Visit our website shown here\" /></a></div>\n");

		//for(i=2;i<6;i++){overlay(i);}
		overlay(2);
		overlay(4);
		overlay(5);

	}
	
	onload=stretch_cols;
	onresize=stretch_cols;
		

