// find out if 'window.location' already contains an "?", in that case the next seperator should be an '&':
var thisUrl = window.location.href;
var hasLocationQustionmark=thisUrl.indexOf('?');
if (hasLocationQustionmark==-1) {
	nextseperator = '?';
} else {
	nextseperator = '&';
}

if (window.section) {
  sectiondir = '/' + section;
} else {
  section = sectiondir = '';
}

if ((self == top) || (parent.frames.length == 1)){
  document.write(
		'<frameset cols="173,*" frameborder="NO" border="0" framespacing="0">' + 
			'<frameset rows="65,*">' +
				'<frame src="/page.php?page=php' + sectiondir + '/logo.php&land=' + land + '" name="logo" scrolling=no noresize>');
				if (section == 'ch') {
					if (land == 'be') {
						document.write('<frame src="/page.php?page=nl' + sectiondir + '/leftNav.php&land=' + land + '" name="leftNav" scrolling=auto noresize>');
					} else {
						document.write('<frame src="/page.php?page=' + land + sectiondir + '/leftNav.php&land=' + land + '" name="leftNav" scrolling=auto noresize>');
					}
				} else {
				    document.write('<frame src="/page.php?page=php' + sectiondir + '/leftNav.php&land=' + land + '" name="leftNav" scrolling=auto noresize>');
				}
		  document.write(			
			'</frameset>' +
			'<frameset cols="5,*,7">' +
				'<frameset rows="64,*,22">' +
					'<frame src="/page.php?page=php/left_top.php&img=images' + sectiondir + '/l1.jpg" name="left_top" scrolling=no noresize>' +
					'<frame src="/page.php?page=php/left.php&img=images' + sectiondir + '/l2.jpg" name="left" scrolling=no noresize>' +
					'<frame src="/page.php?page=php/left_bottom.php&img=images' + sectiondir + '/l3.jpg" name="left_bottom" scrolling=no noresize>' +
				'</frameset>' +
				'<frameset rows="64,*,22">' +
					'<frame src="/page.php?page=php' + sectiondir + '/topNav.php&land=' + land + '&nav=1" name="topNav" scrolling=no noresize>' +
					'<frame src="' + window.location + nextseperator + 'land=' + land + '" name="content" noresize>' +
					'<frame src="/page.php?page=php' + sectiondir + '/bottomNav.php&land=' + land + '" name="bottomNav" scrolling=auto noresize>' +
				'</frameset>' +
				'<frameset rows="64,*,22">' +
					'<frame src="/page.php?page=php/right_top.php&img=images' + sectiondir + '/r1.jpg" name="right_top" scrolling=no noresize>' +
					'<frame src="/page.php?page=php/right.php&img=images' + sectiondir + '/r2.jpg" name="right" scrolling=no noresize>' +
					'<frame src="/page.php?page=php/right_bottom.php&img=images' + sectiondir + '/r3.jpg" name="right_bottom" scrolling=no>' +
				'</frameset>' +
			'</frameset>' +
		'</frameset>'
		 );
}
