/*
menu_links_marker.js
*/

IframeCorrections = Class.create();
IframeCorrections.prototype = {
    /*
        jeigu ateina tik i iframe reikia permesti 
        i visa puslapi su headeriais.

    */
	initialize: function() {
        if(location.href == parent.location.href) {
            params = location.href.replace(_SITE_ROOT_, '');
            window.location.href = _SITE_ROOT_+'?mp='+params;
            //alert(location.href +' parent location'+parent.location.href + ' parent body : ' +parent.body);
        }
	}
}
var rules = {
    'body': function() { new IframeCorrections() }
};

Behaviour.register(rules);

