
// ***************************** FINANS MENULERI **********************
if (document.images) 
{
  image1on = new Image();
  image1on.src = "images/BTN_Doviz_ON.Gif";
  
  image2on = new Image();
  image2on.src = "images/BTN_IMKB_ON.Gif";

  image3on = new Image();
  image3on.src = "images/BTN_DunyaEndeks_ON.Gif";
  
  image4on = new Image();
  image4on.src = "images/BTN_TCMB_ON.Gif";
  
  image5on = new Image();
  image5on.src = "images/BTN_Haber_ON.Gif";
  
  image6on = new Image();
  image6on.src = "images/BTN_Kisisel_ON.Gif";
  
  image7on = new Image();
  image7on.src = "images/BTN_Internet_ON.Gif";

 
  image1off = new Image();
  image1off.src = "images/BTN_Doviz_OFF.Gif";
  
  image2off = new Image();
  image2off.src = "images/BTN_IMKB_OFF.Gif";

  image3off = new Image();
  image3off.src = "images/BTN_DunyaEndeks_OFF.Gif";
  
  image4off = new Image();
  image4off.src = "images/BTN_TCMB_OFF.Gif";
  
  image5off = new Image();
  image5off.src = "images/BTN_Haber_OFF.Gif";
  
  image6off = new Image();
  image6off.src = "images/BTN_Kisisel_OFF.Gif";
  
  image7off = new Image();
  image7off.src = "images/BTN_Internet_OFF.Gif";
 
}

function changeImages2() 
{
  if (document.images) 
  {
    for (var i=0; i<changeImages2.arguments.length; i+=2) 
    {
      document[changeImages2.arguments[i]].src = eval(changeImages2.arguments[i+1] + ".src");
    }
  }
}

// ***************************** SAG MENU POPUP EKRANLARI **********************

var someWin=null;
	function NewWin1(cmd, param) {
		var str;
		switch(cmd) {
			case "OpenYorum":
				someWin = openWin(cmd, "/scr/WeeklyComments.asp?ID="+param, 500, 650, true, true);
				someWin.focus();
				someWin = null;
				break;
			case "opencarchive":
				someWin = openWin(cmd, "/c_archive.asp?", 520, 300, true, true);
				someWin.focus();
				someWin = null;
				break;
			case "openccalculator":
				someWin = openWin(cmd, "/Scr/CurrencyConverter.asp?ID=" + param, 210, 180, false, false);
				someWin.focus();
				someWin = null;
				break;
			case "opencearn":
				someWin = openWin(cmd, "/c_earn.asp", 502, 340);
				someWin.focus();
				someWin = null;
				break;
			case "openallimkbendex":
				someWin = openWin(cmd, "/all_t_endex.asp", 565, 505, true, true);
				someWin.focus();
				someWin = null;
				break;
			case "shownews":
				someWin = openWin(cmd, "/scr/NewsDetail.asp?ID=" + param, 428, 550, true, true);
				someWin.focus();
				someWin = null;
				break;
			case "openallexchange1":
				someWin = openWin(cmd, "/allexchagepopup.asp", 416, 570);
				someWin.focus();
				someWin = null;
				break;
			case "opentcmballexchange1":
				someWin = openWin(cmd, "/alltcmbexchagepopup.asp", 392, 415, false, false);
				someWin.focus();
				someWin = null;
				break;
			case "showbalance":
				someWin = openWin(cmd, "/showbalance.asp?command=" + param, 435, 550, true, true);
				someWin.focus();
				someWin = null;
				break;
			case "showfirmnews":
				someWin = openWin(cmd, "/showfirmnewslist.asp?command=" + param, 435, 550, true, true);
				someWin.focus();
				someWin = null;
				break;
			case "showprice":
				someWin = openWin(cmd, "/pricearchive.asp?StockCode=" + param, 428, 350, true, true);
				someWin.focus();
				someWin = null;
				break;
			case "showtcmb":
				someWin = openWin(cmd, "/showtcmb.asp?ID=" + param, 435, 350, true, true);
				someWin.focus();
				someWin = null;
				break;
			case "showfirmnews2":
				someWin = openWin(cmd, "/showfirmnewspopup.asp?ID=" + param, 435, 550, true, true);
				someWin.focus();
				someWin = null;
				break;
			case "all_s_parite":
				someWin = openWin(cmd, "/all_s_parite.asp", 540, 505, true, true);
				someWin.focus();
				someWin = null;
				break;
			case "all_t_parite":
				someWin = openWin(cmd, "/alltcmbparitepopup.asp",  435, 395, true, true);
				someWin.focus();
				someWin = null;
				break;
			case "wpages":
				someWin = openWin(cmd, "/w_pages.asp", 680, 500, true, true);
				someWin.focus();
				someWin = null;
				break;
			case "ShowStock":
				someWin = openWin(cmd, "/scr/StockDetail.asp?Code=" + param, 677, 460);
				someWin.focus();
				someWin = null;
				break;
		}
	}
	
	function openWin(winName, urlLoc, w, h, showStatus, isViewer,isViewer2) {
		l = (screen.availWidth - w)/2;
		t = (screen.availHeight - h)/2;
		features  = "toolbar=no";      // yes|no 
		features += ",location=no";    // yes|no 
		features += ",directories=no"; // yes|no 
		features += ",status=" + (showStatus?"yes":"no");  // yes|no 
		features += ",menubar=no";     // yes|no 
		features += ",scrollbars=" + (isViewer?"yes":"no");   // auto|yes|no 
		features += ",resizable=" + (isViewer2?"yes":"no");   // yes|no 
		features += ",dependent";      // close the parent, close the popup, omit if you want otherwise 
		features += ",height=" + h;
		features += ",width=" + w;
		features += ",left=" + l;
		features += ",top=" + t;
		return window.open(urlLoc,winName,features);
	} 




// ***************************** INTERNET SUBESI POPUP **********************
 function IntSube(PRM) {
	self.name = "info";
	var winl = 5;
	var wint = 5;
	var URL = 'http://www.albaraka.com.tr/IntSube.asp?IntSube=' + PRM  ;
  popupWin = window.open(URL,PRM, 'top=' + wint + ',left=' + winl + ',width=785, height=482, scrollbars=yes, status=yes')
}
