
var popat="@";
var popend9750="tech%2dnews.com";
var poptail="?subject="+escape("Message from the PrimroseHill.com web");

function channel(boxnum) {

var popto="mailto:";
if (boxnum=="box9750") popto=popto+"editor"+popat+popend9750+poptail;
else return;

window.location=popto;
return;
}

function restoreFrameset() {
if (window.top.location == window.location) window.top.location="http://www.primrosehill.com/";
return true;
}

function show(id) {
        if (document.getElementById) document.getElementById(id).style.visibility = "visible";
        else if (document.layers) document[id].visibility = "show";
        else if (document.all) document.all[id].style.visibility = "visible";
        return;
}

function hide(id) {
        if (document.getElementById) document.getElementById(id).style.visibility = "hidden";
        else if (document.layers) document[id].visibility = "hide";
        else if (document.all) document.all[id].style.visibility = "hidden";
        return;
}


/* Google ad setup

google_ad_client = "pub-8326721182392043";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_channel ="";
google_color_border = "808080";
google_color_bg = "FFFFF0";
google_color_link = "000000";
google_color_url = "666666";
google_color_text = "333333";
*/

// initialize page

if ( !document.getElementById ) {
document.writeln('<link rel="StyleSheet" href="http://www.tech-news.com/css/legacy.css" type="text/css">');
}

function finit(pixels,framed) {
self.resizeBy(-1*pixels,-1*pixels);
if (document.layers) window.location = framed;
return true;
}

function frinit() {
self.resizeBy(-40,-40);
return true;
}

// sniffers

/*

if ( document.layers ) {
document.writeln('<link rel="StyleSheet" href="http://www.tech=news.com/css/tnns.css" type="text/css">');
}

if ( document.getElementById ) {
document.writeln('<link rel="StyleSheet" href="http://www.tech=news.com/css/tndom.css" type="text/css">');
}


if ( !(document.all) && (document.getElementById) ) {
document.writeln('<link rel="StyleSheet" href="http://www.tech=news.com/css/tnmoz.css" type="text/css">');
}

var agt=navigator.userAgent.toLowerCase();

if (agt.indexOf("opera") != -1) {
document.writeln('<link rel="StyleSheet" href="http://www.tech-newsl.com/css/tnop.css" type="text/css">');
}


*/

function externalLinks() {
 if (!document.getElementsByTagName) return;
 var anchors = document.getElementsByTagName("a");
 for (var i=0; i<anchors.length; i++) {
   var anchor = anchors[i];
   if (anchor.getAttribute("href") &&
       anchor.getAttribute("rel") == "external")
     anchor.target = "_blank";
 }
}
window.onload = externalLinks;
