// email obfuscation

String.prototype.email = function () {
mailto = document.write('\x3C\x61\x20\x68\x72\x65\x66\x3D\x22\x6D\x61\x69\x6C\x74\x6F\x3A' + this + '\x40\x7A\x75\x63\x61\x2E\x63\x6F\x6D\x22\x3E' + this + '\x40\x7A\x75\x63\x61\x2E\x63\x6F\x6D\x3C\x2F\x61\x3E');
return mailto;
}


// menu

function startList() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
}
node.onmouseout=function() {
this.className=this.className.replace(" over", "");
}
}
}
}
}



// guided_tour_scripting

function advancepage(whichpage) {
moveforward=setTimeout("window.location.href='guided_tour_" + whichpage + ".html'", 15000);
}

function stopadvancepage() {
clearTimeout(moveforward);
}


function change_background(whichone) {

background_image_name = "img/" + page_name + "_details_" + whichone + ".jpg";

text_display = "details_text_" + whichone;

if (document.all && !window.opera) {
// IE for windows
pro_page_body.style.backgroundImage="url('" + background_image_name + "')";
eval (text_display + '.style.display="inline"');
} else {
// css
document.getElementById("pro_page_body").style.backgroundImage="url('" + background_image_name + "')";
document.getElementById(text_display).style.display="inline";

}

change_textarea(whichone);

}

current_text = "0";

function change_textarea(whichtext) {

last_text_display = "details_text_" + current_text;
text_display = "details_text_" + whichtext;

if (document.all && !window.opera) {
// IE for windows
eval (last_text_display + '.style.display="none"');
eval (text_display + '.style.display="inline"');
} else {
// css
document.getElementById(last_text_display).style.display="none";
document.getElementById(text_display).style.display="inline";
}

current_text = whichtext;

}


last_product = "0";

function change_product_image(whichimage) {

current_product = "product_" + whichimage;

last_product_image = "product_" + last_product;
last_product_text = "product_desc_" + last_product;
clicktext = "clicktext_placement";
clickonimage = "clickimage_placement";


if (document.all && !window.opera) {
// IE for windows
eval (last_product_image + '.style.display="none"');
//eval (last_product_text + '.style.display="none"');
eval (current_product + '.style.display="inline"');
eval (clickonimage + '.style.display="inline"');
eval (clicktext + '.style.display="none"');
} else {
// css
document.getElementById(last_product_image).style.display="none";
//document.getElementById(last_product_text).style.display="none";
document.getElementById(current_product).style.display="inline";
document.getElementById(clicktext).style.display="none";
document.getElementById(clickonimage).style.display="inline";
}

last_product = whichimage;

}

// part of old browse system

function show_desc(whichplace) {


current_product = "product_" + whichplace;
current_product_desc= "product_desc_" + whichplace;
clicktext = "clicktext_placement";
clickonimage = "clickimage_placement";

if (document.all && !window.opera) {
// IE for windows
eval (current_product + '.style.display="none"');
eval (clickonimage + '.style.display="none"');
eval (clicktext + '.style.display="inline"');
eval (current_product_desc + '.style.display="inline"');
} else {
// css
document.getElementById(current_product).style.display="none";
document.getElementById(clicktext).style.display="inline";
document.getElementById(clickonimage).style.display="none";
document.getElementById(current_product_desc).style.display="inline";
}


}


function wishlistadd(productnumber) {


}

//blowup

function selected_image_blowup(desc, image_address, product_name) {

x = document.getElementById("blowup_image_area");
imagecode = "<img src=\"" + image_address + "\" width=\"390\">";
x.innerHTML = imagecode;

desc = "<div class=\"title\">" + product_name + "</div><br>" + desc + "<br><br><div id=\"close_button\"><a href=\"#\" onClick=\"close_blowup()\;return false\;\">Close</a></div>";

t = document.getElementById("blowup_text_area")
t.innerHTML = desc;

w = document.getElementById("full_page_blowup");
w.style.display = "inline";

}

function close_blowup() {
w = document.getElementById("full_page_blowup");
w.style.display = "none";
}