
document.write("<script type=\"text/javascript\"> var start_hash=document.location.hash.replace(/^#/,''); var start_other=document.location.href.replace(/#.*$/,''); var start_href=start_other+\"#\"+start_hash; </script> <iframe src=\"http://www.edreadysearch.org/widget/rgiframe.cfm?gwid=43#"+encodeURIComponent(document.location.href)+"\" id=\"rsg\" name=\"rsg\" style=\"width:100%; height:345px; padding:0; margin:0;\" allowtransparency=\"true\" frameborder=\"no\" scrolling=\"no\" height=\"345\" width=\"100%\"></iframe> <script type=\"text/javascript\"> function rsgResizeIframe(frameId,newHeight){ try{ frame = document.getElementById(frameId); objToResize = (frame.style) ? frame.style : frame; /*alert(\"Changing iframe height from \"+ parseInt(objToResize.height) + \" to \" + (parseInt(newHeight) + 15));*/ objToResize.height = parseInt(newHeight) + 15; } catch(err){ window.status = err.message; } } /* Cross-domain messaging to find out iframe scrollheight */ /* Thanks to http://www.onlineaspect.com/2010/01/15/backwards-compatible-postmessage/ */ var rsgXD = function(){ var interval_id, last_hash, cache_bust = 1, attached_callback, window = this; return { receiveMessage : function(callback, source_origin) { /* browser supports window.postMessage */ if (window['postMessage']) { /* bind the callback to the actual event associated with window.postMessage */ if (callback) { attached_callback = function(e) { if ((typeof (source_origin) === 'string' && e.origin !== source_origin) || (Object.prototype.toString.call(source_origin) === \"[object Function]\" && source_origin(e.origin) === !1)) { return !1; } callback(e); }; } if (window['addEventListener']) { window[callback ? 'addEventListener' : 'removeEventListener']('message', attached_callback, !1); } else { window[callback ? 'attachEvent' : 'detachEvent']('onmessage', attached_callback); } } else { /* a polling loop is started & callback is called whenever the location.hash changes */ if (callback) { interval_id && clearInterval(interval_id); interval_id = null; if (callback) { interval_id = setInterval(function() { var hash = document.location.hash, re = /^#?\\d+&/; if (re.test(hash)) { interval_id && clearInterval(interval_id); document.location.replace(start_href); callback({data: hash.replace(re, '')}); } }, 200); } } } } }; }(); rsgXD.receiveMessage( function(message){ rsgResizeIframe(\"rsg\",message.data); }, 'http://www.edreadysearch.org' ); </script>");
