var SMItems = new Array();
var SMClass="small_menu";
var defAlt = "Referans Gazetesi(Yarının Habercisi)";
var defH = 25;
var defW = 26;
var main = false;
function SMItem( defIMG, overIMG, link, alt, style, W, H ) {
	this.IMG	= defIMG;
	this.OIMG	= overIMG;
	this.Width	= (W)?W:defW;
	this.Height = (H)?H:defH;
	this.Link	= link;
	this.Alt	= (alt)?alt:defAlt;
	this.Style	= style;
	this.ToLink = function (_main) {
		return ( "<img src=\"" + this.IMG + "\" "
					+ "onmouseover=\"this.src='" + this.OIMG + "';\" "
					+ "onmouseout =\"this.src='" + this.IMG + "';\" "
					+ "onclick =\"" + ((_main)?"javascript:;":this.Link) + "\" "
					+ "style=\"cursor:pointer; width:"+ this.Width +"px; height:" + this.Height + "px; "
					+ ((this.Style)?this.Style:"")
					+ "\" alt=\"" + this.Alt + "\""
					+ " />" );
		
	}
}
function AddSMItem( defIMG, overIMG,link, alt, style, W, H  ){
	SMItems[ SMItems.length ] = new SMItem( defIMG, overIMG, link, alt, style, W, H );
}
function Small_Menu_INIT(){
	var retText = "<div " + ((SMClass)?" class=\"" + SMClass + "\"":"") + " >";
	for (var i=0; i<SMItems.length;retText += SMItems[ i ].ToLink((main && i==0)), i++);
	document.write( retText + "</div>");
}
AddSMItem ("img/quick_menu_r1_c1.gif", "img/quick_menu_r1_c1_f2.gif", "window.location.href='default.aspx';", "Anasayfa");
AddSMItem ("img/print_pasif.gif", "img/print_pasif.gif", "javascript:;", "Yazdır","margin-left:2px;");
AddSMItem ("img/quick_menu_r1_c5.gif", "img/quick_menu_r1_c5_f2.gif", "MM_openBrWindow('arkadasima_gonder.aspx?URL=" + window.location.href.replace( /&/g, '*') + "','Referans','width=350,height=507');", "Arkadaşınıza Gönderin","margin-left:2px;");
AddSMItem ("img/quick_menu_r1_c7.gif", "img/quick_menu_r1_c7_f2.gif", "bizeUlasin();", "Bize Ulaşın","margin-left:2px;");
AddSMItem ("img/quick_menu_r1_c9.gif", "img/quick_menu_r1_c9_f2.gif", "window.location.href='arsiv.aspx';", "Arşiv / Arama","margin-left:2px;");
AddSMItem ("img/quick_menu_r1_c11.gif", "img/quick_menu_r1_c11_f2.gif", "window.location.href='site_haritasi.aspx';", "Site Haritası","margin-left:2px;");