var $j = jQuery.noConflict();
function incScript(f) { document.write('<scr'+'ipt type="text/javascript" src="'+f+'"></scr'+'ipt>'); }
incScript("/scripts/swfobject.js");

$j(document).ready( function($) {
	var num = (Math.round(Math.random()*4) + 1);
	var msg = '';
	switch (num) {
		case 1: 
		case 5: msg = 'Wood is <a href="/forests/third-party-certification.aspx">harvested legally under independent scrutiny</a>, and Canada\'s forestry laws are some of the most stringent in the world.'; break;
		case 2: msg = 'Our forests are <a href="/forests/the-canadian-forest.aspx">regenerated promptly</a>, ensuring that this valuable natural resource will continue to thrive indefinitely.'; break;
		case 3: msg = 'Using wood reduces greenhouse gases, decreases energy consumption, and <a href="/forests/climate-change.aspx">helps fight climate change</a>.'; break;
		case 4: msg = 'Waste is reduced since wood is <a href="/wood-products/wood-a-renewable-resource.aspx">renewable, reusable, and recyclable</a> &mdash; and when we\'re done with it, its biodegradable!';
	}
	if ($('#banner table tr td').length == 0) {
		$('#flash table tr td').html(msg);
	} else {
		msg = '<h4>Canadian forest products are an environmentally responsible choice for building because:</h4>' + msg;
		$('#banner table tr td').html(msg);
	}
});

/*
	var c1 = c2 = c3 = c4 = c5 = 0;
	var num;
	for (i=0; i<1000; i++) {
		num = (Math.round(Math.random()*4) + 1);	
		switch (num) {
			case 1: c1++; break;
			case 2: c2++; break;
			case 3: c3++; break;
			case 4: c4++; break;
			case 5: c5++;
		}
	}
	document.write('1: ' + c1 + '&nbsp;&nbsp;&mdash;&nbsp;&nbsp;' + '2: ' + c2 + '&nbsp;&nbsp;&mdash;&nbsp;&nbsp;' + '3: ' + c3 + '&nbsp;&nbsp;&mdash;&nbsp;&nbsp;' + '4: ' + c4 + '&nbsp;&nbsp;&mdash;&nbsp;&nbsp;' + '5: ' + c5);
*/