var fw='', fh=''; 
var bx='', by=''; 
var sx, sy;
var visited=0;
	
function resizeIframe(){
	document.getElementById("ifr").style.height='100%';
	document.getElementById("ifr").style.width='100%';
}

function getgeo() {
if(1){
    if (window.screenLeft) {
        bx = window.screenLeft;
        by = window.screenTop;
    } else if (window.screenX) {
        bx = window.screenX;
        by = window.screenY;
    }
} else {
    if(typeof window.pageXOffset != 'undefined'){
        bx = window.pageXOffset;
        by = window.pageYOffset;
    } else if(document.documentElement){
        bx = document.documentElement.scrollLeft;
        by = document.documentElement.scrollTop;
    } else if(document.body) {
        bx = document.body.scrollLeft;
        by = document.body.scrollTop;
    }
}
//    if(typeof(window.innerWidth) == "number") {
    if(window.innerWidth != null) {
        //Non-IE
        fw = window.innerWidth;
        fh = window.innerHeight + 1;
    } else if(document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) {
//    } else if(document.documentElement) {
        //IE 6+ in 'standards compliant mode'
        fw = document.documentElement.clientWidth;
        fh = document.documentElement.clientHeight + 2;
//    } else if(document.body && ( document.body.clientWidth || document.body.clientHeight)) {
    } else if(document.body) {
        //IE 4 compatible
        fw = document.body.clientWidth;
        fh = document.body.clientHeight + 3;
    }
    
    //try simple mostly compatible document.body.clientHeight
    //what it defines varies but it appears widely compatible
//    fw = document.body.clientWidth;
//    fh = document.body.clientHeight;
    sx = screen.width; sy = screen.height;   
}
getgeo();

if ((bx > -55 && by > -55) && ((bx + 50) < sx) && ((by + 50) < sy) && (fw >= -50 && fh >= -50)) {
	if(fw>350 && fh>150){visited=1;}
}
//alert(bx + ' ' + by + ' ' + sx + ' ' +sy + ' ' + fw + ' ' + fh + ' ' + visited);