var hostname = location.hostname; var protocol = location.protocol; var result = hostname.match (hostname); if( result == null ) { hostname = "image.hudsonalpha.org"; } document.write ("");