﻿function rollover(img_name, img_src)
{
        document.getElementById(img_name).src=img_src;
}

function overImage(overImagePath,code,color){
    document.bigImage.src=overImagePath;
    document.getElementById('colorCode').innerHTML=code;
    document.getElementById('getcolor').innerHTML=color;

	//alert(document.getElementById("colorCode").INNERHTML);
}


function outImage(){
    document.bigImage.src=mainImage;
    document.getElementById('colorCode').innerHTML=maincode;
    document.getElementById('getcolor').innerHTML=maincolor;
}

function changeLang(value)
{
var myloc = window.location.href;
var locarray = myloc.split("/");
var path = locarray[(locarray.length-1)];
if (value==1)
window.location = "../Traditional/"+path;
else if (value==2)
window.location = "../Simplified/"+path;
else
window.location = "../English/"+path;
}


function blu(a,b){
a.filters.blur.strength=b}

function makevisible(cur,which){     
if (which==0)     
cur.filters.alpha.opacity=100     
else     
cur.filters.alpha.opacity=80     
}

