// JavaScript Document

var nordic = false;
var euro = false;
var north = false;
var independent = false;

function hideFlags() {
	hide('nordic-group');
	hide('european-group');
	hide('north-american-group');
	nordic = false;
	euro = false;
	north = false;
	independent = false;
}

function showNordic() {
	hideFlags();
	display('nordic-group');
	nordic=true;
}
function showEuro() {
	hideFlags();
	display('european-group');
	euro=true;
}
function showNorth() {
	hideFlags();
	display('north-american-group');
	north=true;
}

function resizeC() {
	
	var bgH = getH('intro');
	var bgT = getT('intro');
	var mT = getT('middle');
	
	var middle = getS('middle');
	middle.height = bgH + bgT - mT + 'px';

}

function init() {
	
	// pshow('news-title', 'intro', 20);
	// pshow('news-bg', 'news-title', 14);
	// pshow('news', 'news-title', 14);
	// matchH('news-bg', 'news', -40);
	
	resizeC();
	pshow('bottom', 'middle', 0);
	matchH('intro-bg', 'intro', -40);
	
	pshow('signature', 'bottom', 0);
	
}

onload=function () {
	init();
}
