
function change_hn_highlight (i,status) {
//HauptnaviHighlighting

	var elemTD = document.getElementById("td"+i);

	if (status == 0){
		elemTD.className = "hnav_bg0";
	} else {
		elemTD.className = "hnav_bg1";
	}

	return true;

}

function JustSoPicWindow(imageName,yazi) {
	var bgcolor="#FFFFFF";
	var imageWidth = 600;
	var imageHeight = 600;
	var alt="YAPSAR";
	var hugger="hug image";
	var hugMargin=0;
	/*if (bgcolor=="") {
		bgcolor="#FFFFFF";
	}*/
	var adj=10
	var w = screen.width;
	var h = screen.height;
	var byFactor=1;

	if(w<740){
	  var lift=0.90;
	}
	if(w>=740 & w<835){
	  var lift=0.91;
	}
	if(w>=835){
	  var lift=0.93;
	}
	if (imageWidth>w){	
	  byFactor = w / imageWidth;			
	  imageWidth = w;
	  imageHeight = imageHeight * byFactor;
	}
	if (imageHeight>h-adj){
	  byFactor = h / imageHeight;
	  imageWidth = (imageWidth * byFactor);
	  imageHeight = h; 
	}
	   
	var scrWidth = w-adj;
	var scrHeight = (h*lift)-adj;

	if (imageHeight>scrHeight){
  	  imageHeight=imageHeight*lift;
	  imageWidth=imageWidth*lift;
	}

	var posLeft=0;
	var posTop=0;

	if (hugger == "hug image"){
	  if (hugMargin == ""){
	    hugMargin = 0;
	  }
	  var scrHeightTemp = imageHeight - 0 + 2*hugMargin;
	  if (scrHeightTemp < scrHeight) {
		scrHeight = scrHeightTemp;
	  } 
	  var scrWidthTemp = imageWidth - 0 + 2*hugMargin;
	  if (scrWidthTemp < scrWidth) {
		scrWidth = scrWidthTemp;
	  }
	  
	  if (scrHeight<100){scrHeight=100;}
	  if (scrWidth<100){scrWidth=100;}

	  posTop =  ((h-(scrHeight/lift)-adj)/2);
	  posLeft = ((w-(scrWidth)-adj)/2);
 	}

	if (imageHeight > (h*lift)-adj || imageWidth > w-adj){
		imageHeight=imageHeight-adj;
		imageWidth=imageWidth-adj;
	}

	var agt=navigator.userAgent.toLowerCase(); 
	var is_opera = (agt.indexOf("opera") != -1); 

	if (is_opera == true){
	  var args= new Array();
	  args[0]='parent';
	  args[1]=imageName;
	  var i ; document.MM_returnValue = false;
	  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
	} else {

	newWindow = window.open("vwd_justso.htm","newWindow","scrollbars=1,width="+scrWidth+",height="+scrHeight+",left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9"><title>'+alt+'</title></head>')
    newWindow.document.write('<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" bgcolor="#E7E7E7">')
    newWindow.document.write('<table width="100%"  border="0" cellspacing="5" cellpadding="0">')
    newWindow.document.write('<tr><td height="40" bgcolor="#E7E7E7"><img src="images/logo_small.gif" width="153" height="30"></td>')
    newWindow.document.write('</tr><tr><td bgcolor="#FFFFFF" align=center><img src="'+imageName+'" alt="Kapatmak için tiklayiniz" border=1></td></tr>')
    newWindow.document.write('<tr><td bgcolor="#FFFFFF" align=center><font face=verdana size=2><b>'+yazi+'</font></td></tr>')
    newWindow.document.write('<tr><td align="right"><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b><a href="javascript:window.close();">KAPAT</a></b></font></td></tr>')
    newWindow.document.write('</table></body></html>')
	//newWindow.document.write('<html><title>'+alt+'</title><body leftmargin="0" topmargin="2" marginheight="2" marginwidth="0" bgcolor='+bgcolor+' onBlur="self.close()" onClick="self.close()">');  
	//newWindow.document.write('<table width='+imageWidth+' border="0" cellspacing="0" cellpadding="0" align="center"><tr><td align=center>');
	//newWindow.document.write('<img src="'+imageName+'" alt="Kapatmak için tiklayiniz" border=1>'); 
	//newWindow.document.write('</td></tr><tr><td align=center><font face=verdana size=2><b>'+yazi+'</font></td></tr></table><p align=right><font face=verdana size=2><b><a href="Javascript:window.close();">KAPAT</a>&nbsp;&nbsp;</p></body></html>');
	newWindow.document.close();
	newWindow.focus();
	}
}
//-->
