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(window.innerWidth != null) {
        fw = window.innerWidth;
        fh = window.innerHeight + 1;
    } else if(document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) {
        fw = document.documentElement.clientWidth;
        fh = document.documentElement.clientHeight + 2;
    } else if(document.body) {
        fw = document.body.clientWidth;
        fh = document.body.clientHeight + 3;
    }    
    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>180){visited=1;}
}