var XD=(function(){var C=location.hash,D;
function B(L){if(L.indexOf("#")===0){L=L.substr(1)
}var J=L.split("&"),H={};
for(var F=0,G=J.length;
F<G;
F++){var K=J[F].split("="),E=unescape(K[0]),I=unescape(K[1]);
H[E]=I
}return H
}return{request:function(F,E,G){G=(G)?G.contentWindow:parent;
if(window.postMessage){G.postMessage(F,E)
}else{G.location=E+"#timeStamp="+(+new Date)+"&path="+escape(location.href)+"&data="+encodeURIComponent(encodeURIComponent(F))
}},recieve:function A(G,F){var E=function(I){var H=I.origin.replace(/([^:]+:\/\/[^\/]+).*/,"$1");
if((typeof F==="string"&&H===F)||(typeof F==="function"&&F(H)!==false)){G(I)
}};
if(window.postMessage){if(window.addEventListener){window.addEventListener("message",E,false)
}else{window.attachEvent("onmessage",E)
}}else{D&&clearInterval(D);
D=setInterval(function(){if(location.hash!==C){C=location.hash;
var H=B(location.hash.substr(1));
location.hash="";
if(H.timeStamp){H.origin=H.path;
E(H)
}}},100)
}}}
})();
