d = document;
function showNav(languageID) {
	return '<table width="100" cellspacing="0" cellpadding="0" border="0">'+
	showDynNav()+
	'</table>'+
	"<br />"+
	"";

}

function cLink(name, URL, tgt) {
	if (tgt!=null) {
		target=' target="'+tgt+'"';
	}else{
		target='';
	}
	return '<tr><td style="width: 12px;"><img src="/images/ruit.gif" width="8" /></td><td><A class="navLink" title="'+name+'"href="'+URL+'"'+target+'>'+name+'</A></td></tr>';
}

function dLink(desc, tgt) {
	if (tgt!=null) {
		target=' target="'+tgt+'"';
	}else{
		target='';
	}
	if(desc.length ==0){
		return '<tr><td style="width: 12px;"><img src="/images/transparent.gif" width="8" height="16" /></td><td>'+desc+'</td></tr>';
	}else{
		return '<tr><td style="width: 12px;"><img src="/images/ruit.gif" width="8" /></td><td>'+desc+'</td></tr>';
	}
}

function sideBox(title, contents){
	d.write('<table border="0" cellspacing="0" cellpadding="0" class="sideBox"><tr><td class="sideBoxTitle">'+title+'</td></tr>');
	d.write('<tr><td class="sideBoxContents">'+contents+'</td></tr></table>');
}

function adBox(title, contents){
	d.write('<table border="0" cellspacing="0" cellpadding="0" class="adBox"><tr><td class="adBoxTitle">'+title+'</td></tr>');
	d.write('<tr><td class="adBoxContents">'+contents+'</td></tr></table>');
}

function houseBox(language, id, title, cityName, contents, img, priceVal, linkAddition){
	if(global_mod_rewrite==1){
		URL ='/NL//acc/'+id+'/'+title;
	}else{
		URL ='/showhouse.php?houseid='+id+'&languageid='+language+linkAddition;
	}

	linkText = '<a title="'+title+'" class="houseBoxLink" href="'+URL+'">';
	price = '';// '<div class="fpPrice"><div class="priceLarge">€ '+parseInt(priceVal)+ ',-</div>pw</div>';

	d.write('<table border="0" cellspacing="0" cellpadding="0" class="houseBox"><tr><td colspan="2" class="houseBoxTitle">');
	d.write('<div style="float: left; display:inline; ">'+title+'</div>');
	if(cityName.length>0){
		d.write('<div style="float: right; display:inline; padding-right: 2px; font-weight: normal; text-align: right;">'+cityName+'</div>');
	}
	
	d.write('</td></td></tr>');
	d.write('<tr><td class="houseBoxContents">'+linkText+contents+price+'</a></td><td width="75" class="houseBoxImage">');
	if(img!="")
		d.write(linkText+'<img src="dynimg/'+img+'" width="75" alt="'+title+'" title="'+title+'" border="0"/></a>')
	d.write('</td></tr>');
	d.write('</table>');
}

function houseBoxL(language, id, title, cityName, contents, img, priceVal, linkAddition){
	linkText = '<a title="'+title+'" class="houseBoxLink" href="showhouse.php?houseid='+id+'&languageid='+language+linkAddition+'">';
	price = '';//'<div class="fpPrice"><div class="priceLarge">€ '+parseInt(priceVal) + ',-</div>pw</div>';

	d.write('<table border="0" cellspacing="0" cellpadding="0" class="houseBoxL"><tr><td colspan="2" class="houseBoxTitle">');
	d.write('<div style="float: left; display:inline; ">'+title+'</div>');
	if(cityName.length>0){
		d.write('<div style="float: right; display:inline; padding-right: 2px; font-weight: normal; text-align: right;">'+cityName+'</div>');
	}
	
	d.write('</td></td></tr>');
	d.write('<tr><td class="houseBoxContents">'+linkText+contents+price+'</a></td><td width="75" class="houseBoxImage">');
	if(img!=null)
		d.write(linkText+'<img src="dynimg/'+img+'" width="75" alt="'+title+'" title="'+title+'" border="0"/></a>')
	d.write('</td></tr>');
	d.write('</table>');
}

function googleAd120x240(){
google_ad_client = "pub-3772065742588949";
google_ad_width = 120;
google_ad_height = 240;
google_ad_format = "120x240_as";
google_ad_channel ="6164176865";
google_color_border = "404040";
google_color_bg = "FFFFFF";
google_color_link = "404040";
google_color_url = "7BC2FF";
google_color_text = "000000";

	return ''+
	'<s'+'cript type="text/javascript"'+
	'src="http://pagead2.googlesyndication.com/pagead/show_ads.js">'+
	'</s'+'cript>';
}

function googleSkyscraper(){
	google_ad_client = "pub-3772065742588949";
	google_ad_width = 120;
	google_ad_height = 600;
	google_ad_format = "120x600_as";
	google_ad_channel ="6164176865";
	google_color_border = "404040";
	google_color_bg = "FFFFFF";
	google_color_link = "404040";
	google_color_url = "7BC2FF";
	google_color_text = "000000";
	
	return ''+
	'<s'+'cript type="text/javascript"'+
	'src="http://pagead2.googlesyndication.com/pagead/show_ads.js">'+
	'</s'+'cript>'+
	''+
	'';
}