function FullHttpPath() { return "http://www.kuponut.com/"; } function none(){} function PublisherLoadMedia(FileName,ModuleID) { PublisherLoadMedia2(FileName, ModuleID, "320", "240"); } function PublisherLoadMedia2(FileName,ModuleID,xwidth,xheight) { try { var Fwidth = xwidth; var Fheight = xheight; var divID = 'PublisherMediaDiv' + ModuleID + 'X'; document.getElementById(divID).style.display='inline'; var objectrow = ""; var insert1 = ""; var insert2 = ""; var isFlash = false; if(FileName.length > 4) { if(Right(FileName,4) == ".swf") { isFlash = true; } } var widthXheight = ""; if((Fwidth > 0) && (Fheight > 0)) { widthXheight = " width="+Fwidth+" height="+Fheight+" "; } if(isFlash == true) { objectrow = ""; insert1 = ""; } else { objectrow = ""; insert1 = ""; } var iHtml = ""; //iHtml += "
"; iHtml += objectrow; if((Fwidth > 0) && (Fheight > 0)) { iHtml += ""; iHtml += ""; iHtml += ""; } else { iHtml += ""; } iHtml += ""; iHtml += ""; iHtml += ""; iHtml += ""; iHtml += ""; iHtml += ""; iHtml += ""; iHtml += ""; iHtml += ""; iHtml += ""; iHtml += ""; iHtml += ""; iHtml += insert1; iHtml += insert2; iHtml += "
"; //iHtml += ""; document.getElementById(divID).innerHTML = iHtml; /* iHtml = "Media Viewer" + iHtml + ""; windowOpen(iHtml,FileName); */ } catch(err) { alert(err); } } function windowOpen(innerHtml,FilePath) { try{ if(my_window.closed == false) { my_window.close(); } }catch(err){} my_window = window.open("","xwin34","width=340,height=260,resizable=yes,scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no"); my_window.document.write(innerHtml); if(my_window.blur) { my_window.focus; } } function Right(str, n){ if (n <= 0) return ""; else if (n > String(str).length) return str; else { var iLen = String(str).length; return String(str).substring(iLen, iLen - n); } }