/* Script used in advertise section. */

function showHomepagePic (whichpic) { 
	if (document.getElementById) { 
		document.getElementById('homepageplaceholder').src = whichpic.href; 
		if (whichpic.title) { 
			document.getElementById('homepagedesc').childNodes[0].nodeValue = whichpic.title; 
		} else { 
			document.getElementById('homepagedesc').childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue; 
		} 
		return false; 
	} else { 
		return true; 
	} 
}

function showBusinessPic (whichpic) { 
	if (document.getElementById) { 
		document.getElementById('businessplaceholder').src = whichpic.href; 
		if (whichpic.title) { 
			document.getElementById('businessdesc').childNodes[0].nodeValue = whichpic.title; 
		} else { 
			document.getElementById('businessdesc').childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue; 
		} 
		return false; 
	} else { 
		return true; 
	} 
}

function showShowPic (whichpic) { 
	if (document.getElementById) { 
		document.getElementById('showplaceholder').src = whichpic.href; 
		if (whichpic.title) { 
			document.getElementById('showdesc').childNodes[0].nodeValue = whichpic.title; 
		} else { 
			document.getElementById('showdesc').childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue; 
		} 
		return false; 
	} else { 
		return true; 
	} 
}

function showAttractionPic (whichpic) { 
	if (document.getElementById) { 
		document.getElementById('attractionplaceholder').src = whichpic.href; 
		if (whichpic.title) { 
			document.getElementById('attractiondesc').childNodes[0].nodeValue = whichpic.title; 
		} else { 
			document.getElementById('attractiondesc').childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue; 
		} 
		return false; 
	} else { 
		return true; 
	} 
}

function showLodgingPic (whichpic) { 
	if (document.getElementById) { 
		document.getElementById('lodgingplaceholder').src = whichpic.href; 
		if (whichpic.title) { 
			document.getElementById('lodgingdesc').childNodes[0].nodeValue = whichpic.title; 
		} else { 
			document.getElementById('lodgingdesc').childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue; 
		} 
		return false; 
	} else { 
		return true; 
	} 
}

function showDiningPic (whichpic) { 
	if (document.getElementById) { 
		document.getElementById('diningplaceholder').src = whichpic.href; 
		if (whichpic.title) { 
			document.getElementById('diningdesc').childNodes[0].nodeValue = whichpic.title; 
		} else { 
			document.getElementById('diningdesc').childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue; 
		} 
		return false; 
	} else { 
		return true; 
	} 
}

function showClassifiedPic (whichpic) { 
	if (document.getElementById) { 
		document.getElementById('classifiedplaceholder').src = whichpic.href; 
		if (whichpic.title) { 
			document.getElementById('classifieddesc').childNodes[0].nodeValue = whichpic.title; 
		} else { 
			document.getElementById('classifieddesc').childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue; 
		} 
		return false; 
	} else { 
		return true; 
	} 
}

function showEventPic (whichpic) { 
	if (document.getElementById) { 
		document.getElementById('eventplaceholder').src = whichpic.href; 
		if (whichpic.title) { 
			document.getElementById('eventdesc').childNodes[0].nodeValue = whichpic.title; 
		} else { 
			document.getElementById('eventdesc').childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue; 
		} 
		return false; 
	} else { 
		return true; 
	} 
}

function showRealEstatePic (whichpic) { 
	if (document.getElementById) { 
		document.getElementById('realestateplaceholder').src = whichpic.href; 
		if (whichpic.title) { 
			document.getElementById('realestatedesc').childNodes[0].nodeValue = whichpic.title; 
		} else { 
			document.getElementById('realestatedesc').childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue; 
		} 
		return false; 
	} else { 
		return true; 
	} 
}

function showCategoryPic (whichpic) { 
	if (document.getElementById) { 
		document.getElementById('categoryplaceholder').src = whichpic.href; 
		if (whichpic.title) { 
			document.getElementById('categorydesc').childNodes[0].nodeValue = whichpic.title; 
		} else { 
			document.getElementById('categorydesc').childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue; 
		} 
		return false; 
	} else { 
		return true; 
	} 
}
