document.onkeydown=FS_KT;
window.onerror = FS_Err;

function FS_KT(){if(document.all){key=event.keyCode}else{key=e.which}if(key==13){FS_SF()}}
function FS_SF(){document.getElementById('FS_form').submit()}
function FS_Err(d,p,l,c){}
function FS_IS(o){
	if (imageLoaded(o)){
		if (o.height > o.width){
			r = o.height / FS_IH;
			o.height = FS_IH;
			if (r != 1) o.width = o.width / r;
			
		}else{
			r = o.width / FS_IH;
			o.width = FS_IH;
			if (r != 1) o.height = o.height / r;
		}
	}
	
	o.style.position='static';
	o.style.visibility='visible';
}

function imageLoaded(img) {
    if (!img.complete) return false;
    if (typeof img.naturalWidth != "undefined" && img.naturalWidth == 0) return false;
    return true;
}
function FS_IE(o){
	if (typeof(o.err) == 'undefined'){
		o.err = true;
		o.src=FS_BI;
	}
}