var mnMinHeight = 395;
document.write('<style>#toplink{display:none}</style>')
function winHeight() {
if (window.innerHeight) return window.innerHeight;
else if (document.body && document.body.offsetHeight) return document.body.offsetHeight;
else return 0;
}
function elHeight(el) {
if(el.offsetHeight) return el.offsetHeight;
else if (el.style.height) return el.style.height;
else return mnMinHeight;
}
function shTopLink() {
var el = document.getElementById('toplink');
if(!el) return false;
var mh = mnMinHeight;
var ch = elHeight(document.getElementById('container'));
var maxh = Math.max(mh, ch);
if((window.scrollbars && window.scrollbars.visible == true) || (winHeight() < maxh))
	el.style.display = 'block';
else el.style.display = 'none';
}
function ResizeIFrame() {
if(!document.getElementById) return false;
shTopLink();
var el = document.getElementById('iframe');
if(el) {
	var InH = Math.max(winHeight(), mnMinHeight) - 70;
	el.style.height = InH;
 }
}
window.onload = InitIE;
function InitIE() {
if(document.body && document.body.offsetHeight || window.innerHeight) {
	window.onresize = ResizeIFrame;
	ResizeIFrame();
 }
}
function ChangePicture(id, img) {
if(id) document.images[id].src='images/'+img;
}

