var ord = Math.round(Math.random() * 10000000000000000);function get_ad_iframe_src(url, tile, width, height, dcopt_value) {if ((tile == "1") && (dcopt_value == "yes")) {dc = "dcopt=ist;"}else{dc = ""}var scriptTag = "<scr" + "ipt type='text/javascript' language='javascript' src='" + url + "tile=" + tile + ";" + dc + "sz=" + width + "x" + height + ";ord=" + ord + "?'></scr" + "ipt>";return scriptTag}function update_ad_iframe(iframeId, url, tile, width, height, refresh, dcopt_value) {if (typeof $.fn.getUrlParam == 'function') {if ($(document).getUrlParam("testmode")) {url += ";testmode=" + $(document).getUrlParam("testmode") + ";"}}if ($.browser.browser != "Safari" && $.browser.browser != "Firefox") {var scriptTag = get_ad_iframe_src(url, tile, width, height, dcopt_value, ord);self.frames[iframeId].document.open();self.frames[iframeId].document.write(scriptTag)} else {var src = "javascript:window.parent.get_ad_iframe_src('" + url + "', " + tile + ", " + width + ", " + height + ", '" + dcopt_value + "', " + ord + ")";$('#' + iframeId).attr({"src":src,"height":height,"width":width})}if (typeof(refresh) != "undefined") {var fcnString = "update_ad_iframe('" + iframeId + "','" + url + "'," + tile + "," + width + "," + height + "," + refresh + ",'" + dcopt_value + "'," + ord + ")";setTimeout(fcnString, refresh)}}