function Is() {
    agent  = navigator.userAgent.toLowerCase();
    this.major = parseInt(navigator.appVersion);
    this.minor = parseFloat(navigator.appVersion);
    this.ns    = ((agent.indexOf('mozilla')   !=   -1) && ((agent.indexOf('spoofer')   ==   -1) && (agent.indexOf('compatible') ==   -1)));
    this.ns4   = (this.ns && (this.major      ==    4));
    this.ns6   = (this.ns && (this.major      >=    5));
    this.ie    = (agent.indexOf("msie")       !=   -1);
    this.ie3   = (this.ie && (this.major      < 4));
    this.ie4   = (this.ie && (this.major      ==    4) && (agent.indexOf("msie 4.0")   ==   -1));
    this.ie5   = (this.ie && (this.major      ==    4) && (agent.indexOf("msie 5.0")   !=   -1));
    this.ie55  = (this.ie && (this.major      ==    4) && (agent.indexOf("msie 5.5")   !=   -1));
    this.ie6  = (this.ie && (agent.indexOf("msie 6.0")!=-1) );
}
var is = new Is();
var Netscape4 = (navigator.appName == "Netscape" && navigator.appVersion.substring(0,1) >= "4");
var Explorer4 = (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.substring(0,1) >= "4");
var bn=navigator.appName;
var vn=navigator.appVersion;
var p1=null;
var p3=null;
var p5=null;
var p7=null;
var p9=null;
var p11=null;
var p13=null;
function off_img(loc,img) {};
function on_img(loc,img) {};
menuimg = new Array(16);
if ((bn!="Microsoft Internet Explorer") || (vn.substring(0,3)!="2.0")){
menuimg[1]= new Image;
menuimg[1].src="/i/t_1_1.gif";
menuimg[2]= new Image;
menuimg[2].src="/i/t_1_2.gif";
menuimg[3]= new Image;
menuimg[3].src="/i/t_2_1.gif";
menuimg[4]= new Image;
menuimg[4].src="/i/t_2_2.gif";
menuimg[5]= new Image;
menuimg[5].src="/i/t_3_1.gif";
menuimg[6]= new Image;
menuimg[6].src="/i/t_3_2.gif";
menuimg[7]= new Image;
menuimg[7].src="/i/t_4_1.gif";
menuimg[8]= new Image;
menuimg[8].src="/i/t_4_2.gif";
menuimg[9]= new Image;
menuimg[9].src="/i/t_5_1.gif";
menuimg[10]= new Image;
menuimg[10].src="/i/t_5_2.gif";
menuimg[11]= new Image;
menuimg[11].src="/i/t_6_1.gif";
menuimg[12]= new Image;
menuimg[12].src="/i/t_6_2.gif";
menuimg[13]= new Image;
menuimg[13].src="/i/t_7_1.gif";
menuimg[14]= new Image;
menuimg[14].src="/i/t_7_2.gif";
menuimg[15]= new Image;
menuimg[15].src="/i/hl_1_1.gif";
menuimg[16]= new Image;
menuimg[16].src="/i/hl_1_2.gif";
menuimg[17]= new Image;
menuimg[17].src="/i/hl_2_1.gif";
menuimg[18]= new Image;
menuimg[18].src="deneme";
menuimg[19]= new Image;
menuimg[19].src="/i/hl_3_1.gif";
menuimg[20]= new Image;
menuimg[20].src="/i/hl_3_2.gif";
menuimg[21]= new Image;
menuimg[21].src="/i/hl_4_1.gif";
menuimg[22]= new Image;
menuimg[22].src="/i/hl_4_2.gif";
menuimg[23]= new Image;
menuimg[23].src="/i/hl_5_1.gif";
menuimg[24]= new Image;
menuimg[24].src="/i/hl_5_2.gif";

menuimg[25]= new Image;
menuimg[25].src="/i/cl_1_1.gif";
menuimg[26]= new Image;
menuimg[26].src="/i/cl_1_2.gif";

menuimg[27]= new Image;
menuimg[27].src="/i/cl_2_1.gif";
menuimg[28]= new Image;
menuimg[28].src="/i/cl_2_2.gif";
menuimg[29]= new Image;
menuimg[29].src="/i/sl_1_1.gif";
menuimg[30]= new Image;
menuimg[30].src="/i/sl_1_2.gif";
menuimg[31]= new Image;
menuimg[31].src="/i/sl_2_1.gif";
menuimg[32]= new Image;
menuimg[32].src="/i/sl_2_2.gif";

menuimg[33]= new Image;
menuimg[33].src="/i/il_1_1.gif";
menuimg[34]= new Image;
menuimg[34].src="/i/il_1_2.gif";
menuimg[35]= new Image;
menuimg[35].src="/i/il_2_1.gif";
menuimg[36]= new Image;
menuimg[36].src="/i/il_2_2.gif";
menuimg[37]= new Image;
menuimg[37].src="/i/il_3_1.gif";
menuimg[38]= new Image;
menuimg[38].src="/i/il_3_2.gif";
menuimg[39]= new Image;
menuimg[39].src="/i/il_4_1.gif";
menuimg[40]= new Image;
menuimg[40].src="/i/il_4_2.gif";
	menuimg[41]= new Image;
	menuimg[41].src="/i/il_4_1_1.gif";
	menuimg[42]= new Image;
	menuimg[42].src="/i/il_4_1_2.gif";
	menuimg[43]= new Image;
	menuimg[43].src="/i/il_4_2_1.gif";
	menuimg[44]= new Image;
	menuimg[44].src="/i/il_4_2_2.gif";
menuimg[45]= new Image;
menuimg[45].src="/i/il_5_1.gif";
menuimg[46]= new Image;
menuimg[46].src="/i/il_5_2.gif";

menuimg[47]= new Image;
menuimg[47].src="/i/al_1_1.gif";
menuimg[48]= new Image;
menuimg[48].src="/i/al_1_2.gif";
menuimg[49]= new Image;
menuimg[49].src="/i/al_2_1.gif";
menuimg[50]= new Image;
menuimg[50].src="/i/al_2_2.gif";

menuimg[51]= new Image;
menuimg[51].src="/i/cnl_1_1.gif";
menuimg[52]= new Image;
menuimg[52].src="/i/cnl_1_2.gif";
menuimg[53]= new Image;
menuimg[53].src="/i/cnl_2_1.gif";
menuimg[54]= new Image;
menuimg[54].src="/i/cnl_2_2.gif";
menuimg[55]= new Image;
menuimg[55].src="/i/cnl_3_1.gif";
menuimg[56]= new Image;
menuimg[56].src="/i/cnl_3_2.gif";

menuimg[57]= new Image;
menuimg[57].src="/i/hl_6_1.gif";
menuimg[58]= new Image;
menuimg[58].src="/i/hl_6_2.gif";
}
function on_img(loc,img){
	if ((bn!="Microsoft Internet Explorer") || (vn.substring(0,3)!="2.0")) loc.src=menuimg[img].src;
}
function writenav(wh){
	var nav = '<table cellpadding="0" cellspacing="0" border="0" width="780">'+
	'<tr>'+
	'<td rowspan="2">';
	if(pagen=='1') nav += '<img src="/i/meyteks_logo.gif" width="80" height="107" alt="" border="0"></td>';
	else nav += '<a href="/index.htm"><img src="/i/meyteks_logo.gif" width="80" height="107" alt="Meyteks" border="0"></a></td>';
	nav += '<td rowspan="2"><img src="/i/s.gif" width="80" height="1" alt="" border="0"></td>'+
	'<td height="60"><img src="/i/s.gif" width="1" height="60" alt="" border="0"></td>'+
	'</tr>'+
	'<tr>'+
	'<td height="20" valign="top">'+
	'<table cellpadding="0" cellspacing="0" border="0">'+
	'<tr>';

		if (pagen=='1') nav += '<td><img src="/i/t_1_2.gif" width="56" height="13" alt="Home" border="0" name="p1"></td>';
		else nav += '<td><a href="/index.htm" onmouseout="on_img(p1,1);" onmouseover="on_img(p1,2);"><img src="/i/t_1_1.gif" width="56" height="13" alt="Home" border="0" name="p1"></a></td>';

		if (pagen=='2') nav += '<td><a href="/history/history.htm"><img src="/i/t_2_2.gif" width="73" height="13" alt="Meyteks" border="0" name="p3"></a></td>';
		else nav += '<td><a href="/history/history.htm" onmouseout="on_img(p3,3);" onmouseover="on_img(p3,4);"><img src="/i/t_2_1.gif" width="73" height="13" alt="Meyteks" border="0" name="p3"></a></td>';

		if (pagen=='3') nav += '<td><a href="/meytekscollections/category.asp"><img src="/i/t_3_2.gif" width="109" height="13" alt="Meyteks Collection" border="0" name="p5"></a></td>';
		else nav += '<td><a href="/meytekscollections/category.asp" onmouseout="on_img(p5,5);" onmouseover="on_img(p5,6);"><img src="/i/t_3_1.gif" width="109" height="13" alt="Collection 2003" border="0" name="p5"></a></td>';

		if (pagen=='4') nav += '<td><img src="../i/t_4_2.gif" width="136" height="13" alt="Your Own Collection" border="0" name="p7"></td>';
		else nav += '<td><a href="/services/services.htm" onmouseout="on_img(p7,7);" onmouseover="on_img(p7,8);"><img src="../i/t_4_1.gif" width="136" height="13" alt="Your Own Collection" border="0" name="p7"></a></td>';

		if (pagen=='6') nav += '<td><img src="/i/t_6_2.gif" width="77" height="13" alt="Activities" border="0" name="p11"></td>';
		else nav += '<td><a href="/activities/activities.htm" onmouseout="on_img(p11,11);" onmouseover="on_img(p11,12);"><img src="/i/t_6_1.gif" width="77" height="13" alt="Activites" border="0" name="p11"></a></td>';

		if (pagen=='5') nav += '<td><img src="/i/t_5_2.gif" width="85" height="13" alt="Useful Info" border="0" name="p9"></td>';
		else nav += '<td><a href="/info/usefull_info.htm" onmouseout="on_img(p9,9);" onmouseover="on_img(p9,10);"><img src="/i/t_5_1.gif" width="85" height="13" alt="Useful Info" border="0" name="p9"></a></td>';

		if (pagen=='7') nav +='<td><img src="/i/t_7_2.gif" width="74" height="13" alt="Contact Us" border="0" name="p13"></td>';
		else nav += '<td><a href="/contact/contact.htm" onmouseout="on_img(p13,13);" onmouseover="on_img(p13,14);"><img src="/i/t_7_1.gif" width="74" height="13" alt="Contact Us" border="0" name="p13"></a></td>';
	nav += '</tr>'+
	'</table>'+
	'</td>'+
	'</tr>'+
	'<tr><td colspan="3"><img src="/i/s.gif" width="1" height="2" alt="" border="0"></td></tr>'+
	'</table>';
document.write (nav);
}
function popitup(url,w,h){
	var collection = window.open(url,"rt","toolbar=0,width=260,height=254,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,copyhistory=1");
	collection.focus();
}
function windowOpener(page,w,h)
{
window.open(page,'ImageZoom','resizable=yes,location=no,directories=no,toolbar=no,status=no,scrollbars=yes,width='+ w + ',height='+ h);
} 