<!--
var ie=navigator.appName=="Microsoft Internet Explorer" ? true : false
var rfsh_speed=60000;

function bmouseClick(obj, lmenu){
if (obj.style.visibility == "hidden")
{
 obj.style.visibility = "visible"
 lmenu.src = "images/lo-menu.gif"
 td1.style.visibility = "visible"
}
else
if (obj.style.visibility == "visible" || obj.style.visibility == "")
{
 obj.style.visibility = "hidden"
 lmenu.src = "images/lc-menu.gif"
 td1.style.visibility = "hidden"
}}

data = new Array(
"",
"GRAY HAMADAN;;2.67;1950;0.12;5.9;GRAY;G01",
"KHORAMDAREH;;;;;;;G02",
"OROOMIEH;;;;;;;G03",
"PIRANSHAHR;;2.74;1428;0.18;;GREEN;G04",
"RED NAEEN;;2.57;19.5;0.01;6;RED;G05",
"GREEN NAEEN;;;;;;GREEN;G06",
"NATANZ;;;;;;;G07",
"ALAMOOT;;;;;;;G08",
"GREEN ISFAHAN;;2.77;1298;0.12;;GREEN;G09",
"EKBATAN;;;;;;;G10",
"RED YAZD;1591;2.75;2358;0.23;;RED;G11",
"CREAM NEHBANDAN;2480;2.7;2710;0.2;;CREAM;G12",
"GRAY NEHBANDAN;2480;2.7;2710;0.2;;GRAY;G13",
"GREEN BIRJAND 1;;3.37;1165;0.3;4.9;GREEN;G14",
"GREEN BIRJAND 2;;3.37;1165;0.3;4.3;;G15",
"BLACK CHAYAN;;;;;;BLACK;G16",
"PINK KLARDASHT;14.9;2.65;1520;1.16;;PINK;G17",
"KAHOOI BIRJAND;;;;;;GREEN;G18",
"TOYSERKAN;;3.11-3.13;2560;0.19;6.50-7;BLACK;G19"
)

function more(id)
{
 var w=(screen.width - 600) / 2;
 var h=(screen.height - 400) / 2;
 windowprops = "height=400,width=600,top="+w+",left="+h+",scrollbars=no,menubars=no,toolbars=no,resizable=no,active=yes";
 nw = window.open("largeview.asp?kind=granite&id="+id, "details", windowprops);
 nw.focus();
}

function info(id)
{
 img1.src = "images/stones/thumb/granite/g"+id+".jpg"
 lnk.href = "javascript:more("+id+")"
 strs = data[id].split(";")
 c1.innerText = strs[0] + " "
 c2.innerText = strs[1] + " "
 c3.innerText = strs[2] + " "
 c4.innerText = strs[3] + " "
 c5.innerText = strs[4] + " "
 c6.innerText = strs[5] + " "
 c7.innerText = strs[6] + " "
 c8.innerText = strs[7] + " "
}

//Expands and contracts the menu (if in Internet Explorer 4.0 or higher)
 function change() {
 	if(!document.all)
 		return
 	if (event.srcElement.className=="expandable"){
 		var x=event.srcElement.parentElement
 		if (x.all[2].style.display=="none"){
 			x.all[2].style.display='';
 			}
 		else {
 			x.all[2].style.display="none"
 			}
 		}
 	if (event.srcElement.className=="expandable2"){
 		var x=event.srcElement.parentElement
 		if (x.all[2].style.display=="none"){
 			x.all[2].style.display='';
 			}
 		else {
 			x.all[2].style.display="none"
 			}
 		}
 	}
 document.onclick=change
 //-->

