var myHint = null;

var HINTS_CFG = {
	'top'        : 5, // a vertical offset of a hint from mouse pointer
	'left'       : 5, // a horizontal offset of a hint from mouse pointer
	'css'        : 'hintsClass', // a style class name for all hints, TD object
	'show_delay' : 500, // a delay between object mouseover and hint appearing
	'hide_delay' : 0, // a delay between hint appearing and hint hiding
	'wise'       : true,
	'follow'     : true,
	'z-index'    : 0 // a z-index for all hint layers
};

var HINTS_ITEMS = {
	1:''
};

function getGeneralHintFrame(text){
            
    var content="<TABLE style=\"border: 1px solid #222;\" WIDTH=350 HEIGTH=300 CELLPADDING=2 CELLSPACING=0 BGCOLOR=\"#ffffe1\">"+ 
		"<TR>"+
		"<TD ALIGN=left>" + text + "</TD>"+
		"</TR>"+
		"</TABLE>";

	return content;
}

function getPhotoPopupContent(arcId,addDate,na_unit,na_dimension,extra){
            
    var content="<TABLE border=1 bordercolor=#3F3F3F WIDTH=300 CELLPADDING=2 CELLSPACING=0 "+
		"BGCOLOR=\"#F4F4F4\"><TR><TD ALIGN=left>"+
		"<TABLE id=popuptable CELLPADDING=2 CELLSPACING=0 WIDTH=300>"+
		"<TR bgcolor=\"#E8E9EA\"><TD ALIGN=left width=85 valign=top><font size=1 color=\"#FF0000\">Arşiv No</font></TD><TD ALIGN=left><font size=1 color=\"#336699\">"+ arcId +"</font></TD></TR>"+
    "<TR bgcolor=\"#F1F2F3\"><TD ALIGN=left width=85 valign=top><font size=1 color=\"#FF0000\">Tarih</font></TD><TD ALIGN=left><font size=1 color=\"#336699\">"+ addDate +"</font></TD></TR>"+
		"<TR bgcolor=\"#E8E9EA\"><TD ALIGN=left width=85 valign=top><font size=1 color=\"#FF0000\">Boyut</font></TD><TD ALIGN=left><font size=1 color=\"#336699\">"+ na_dimension +"</font></TD></TR>"+
		"<TR bgcolor=\"#F1F2F3\"><TD ALIGN=left width=85 valign=top><font size=1 color=\"#FF0000\">Fotoğraf Sayısı</font></TD><TD ALIGN=left><font size=1 color=\"#336699\">"+ na_unit +"</font></TD></TR>"+
		"<TR bgcolor=\"#E8E9EA\"><TD ALIGN=left width=85 valign=top><font size=1 color=\"#FF0000\">Bilgi</font></TD><TD ALIGN=left><font size=1 color=\"#336699\">"+ extra +"</font></TD></TR>"+
    "</TABLE></TD></TR></TABLE>";

	return content;
}


function preparePopup(hint, text) {
	var TTipTableTd1 = document.getElementById('TTipTableTd1');
	TTipTableTd1.innerHTML = text;

	hint.show(1);
} 
