/* * *
 * JavaScript code by Tilo Kussatz, copyright 2007.
 * http://www.kussatz.com/.
 */
 
var path = "bilder/"
	 
function load_feature_img(filename, orientation) {
	if (orientation == "wide" && document.getElementById) {
		document.images["feature_img_wide"].src = path + filename
		document.getElementById("pf_high").style.display = 'none'
		document.getElementById("pf_wide").style.display = 'block'
		document.images["feature_img_high"].src = ''
	}
	else if (orientation == "high" && document.getElementById) {
		document.images["feature_img_high"].src = path + filename
		document.getElementById("pf_wide").style.display = 'none'
		document.getElementById("pf_high").style.display = 'block'
		document.images["feature_img_wide"].src = ''
	}
}

function preload_feature_imgs(section, count) {
	if (document.images) {		
		photos = new Array(count)
		for (m=2; m<=count; m++) {
			photos[m] = new Image()
			photos[m].src = path + section + "00" + m + ".jpg"
		}
	}
}
