var prevPosY;

function setParentLocation() {
	posY=document.getElementById('PageEnd').offsetTop;
    if(posY!=prevPosY) {
        var isEmbed;
        prevPosY = posY;
        var loc;
        if(window.name == "rba" || window.name == "karma411") {
            loc = document.name;
        } else {
            loc = window.name;
        }

        if(loc == undefined) {
            loc = window.status;
        }
        
        if(loc.indexOf("#") != -1) {
            isEmbed = loc.substring((loc.indexOf("#")+1),loc.length);
            loc = loc.substring(0,loc.indexOf("#"));
        }

        //alert("value : "+(documentLocation.toString()).indexOf("embed=ture"));
        //alert(loc);
        
        if(isEmbed == "embed") {
            document.getElementById("siteWidth").style.width="750px";
            parent.location=loc+"#"+posY;
        }
//        } else {
//            alert("Strange");
//        }
    }
}

window.setInterval(setParentLocation,200);