// ===========================
// ASIAFURNITURE JavaScript Document
// ===========================

// Function : externalLinks
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";
anchor.title = (anchor.title != "") ? anchor.title+" (opens in a new window)" : "opens in a new window";
anchor.className = (anchor.className != '') ? anchor.className+' external' : 'external';
}
}
}

window.onload = externalLinks;


// this function is belong to header menu rollover
// without using name attribute
// this code will looking for number of image count from top name
// such as first img tag on html call no.1 and then 2 3 4 5 6 ... onwards
function swap(img,isrc) {
   if (!document.images) return;
   document.images[img].src = isrc;
}