
// About Images
arrAboutW = new Array(0,450,400,400,400,400,450,420,450);
arrAboutH = new Array(0,312,364,364,300,338,339,224,299);
arrAbout = new Array();
arrAbout[0]="";
arrAbout[1]="images/about_big/040.jpg";
arrAbout[2]="images/about_big/060.jpg";
arrAbout[3]="images/about_big/067.jpg";
arrAbout[4]="images/about_big/095.jpg";
arrAbout[5]="images/about_big/104.jpg";
arrAbout[6]="images/about_big/124.jpg";
arrAbout[7]="images/about_big/34.jpg";
arrAbout[8]="images/about_big/66.jpg";
arrAboutD = new Array();
arrAboutD[0]="";
arrAboutD[1]="";
arrAboutD[2]="";
arrAboutD[3]="";
arrAboutD[4]="";
arrAboutD[5]="";
arrAboutD[6]="";
arrAboutD[7]="";
arrAboutD[8]="";



// Studio A images
arrStudAW = new Array(0,450,400,450,450,450,400,450,400);
arrStudAH = new Array(0,338,277,314,331,321,296,322,300);
arrStudA = new Array();
arrStudA[0]="";
arrStudA[1]="images/web_room_a/console_screen2.jpg";
arrStudA[2]="images/web_room_a/protools1.jpg";
arrStudA[3]="images/web_room_a/rooma_boards.jpg";
arrStudA[4]="images/web_room_a/rooma_consol.jpg";
arrStudA[5]="images/web_room_a/rooma_loung.jpg";
arrStudA[6]="images/web_room_a/rooma_lrg.jpg";
arrStudA[7]="images/web_room_a/rooma_lrg3.jpg";
arrStudA[8]="images/web_room_a/teat_fill.jpg";




// Studio B images
arrStudBW = new Array(0,400,400,400,400,400,400,400,400);
arrStudBH = new Array(0,300,300,367,300,300,300,300,300);
arrStudB = new Array();
arrStudB[0]="";
arrStudB[1]="images/web_room_b/console_mixerb.jpg";
arrStudB[2]="images/web_room_b/console_mixerc.jpg";
arrStudB[3]="images/web_room_b/roomb_lrg.jpg";
arrStudB[4]="images/web_room_b/roomb_lrg2.jpg";
arrStudB[5]="images/web_room_b/roomb_lrg3.jpg";
arrStudB[6]="images/web_room_b/roomb_lrg4.jpg";
arrStudB[7]="images/web_room_b/roomb_office.jpg";
arrStudB[8]="images/web_room_b/roomb_screen.jpg";



// Console images
arrConsoleW = new Array(0,400,400,400,300);
arrConsoleH = new Array(0,250,292,300,241);
arrConsole = new Array();
arrConsole[0]="";
arrConsole[1]="images/eq_console_big/022.jpg";
arrConsole[2]="images/eq_console_big/1027.jpg";
arrConsole[3]="images/eq_console_big/console_screen22.jpg";
arrConsole[4]="images/eq_console_big/roomb_lrg44.jpg";



// ProTools images
arrToolsW = new Array(0,400,400,400,400);
arrToolsH = new Array(0,195,187,195,277);
arrTools = new Array();
arrTools[0]="";
arrTools[1]="images/eq_protools_big/mix192.jpg";
arrTools[2]="images/eq_protools_big/pro192.jpg";
arrTools[3]="images/eq_protools_big/pro888.jpg";


// OutBoard images
arrBoardW = new Array(0,250,250,400,250);
arrBoardH = new Array(0,348,420,279,202);
arrBoard = new Array();
arrBoard[0]="";
arrBoard[1]="images/eq_outboard_big/outboard_gear.jpg";
arrBoard[2]="images/eq_outboard_big/outboard_gear3.jpg";
arrBoard[3]="images/eq_outboard_big/outboard1.jpg";
arrBoard[4]="images/eq_outboard_big/outboard1_tmp.jpg";


// OutBoard-StudioB images
arrBOutbW = new Array(0,351,210,250,210);
arrBOutbH = new Array(0,341,327,324,362);
arrBOutb = new Array();
arrBOutb[0]="";
arrBOutb[1]="images/obbig/dsc00093.jpg";
arrBOutb[2]="images/obbig/dsc00095.jpg";
arrBOutb[3]="images/obbig/dsc00097.jpg";
arrBOutb[4]="images/obbig/dsc00124.jpg";


// Microphones images
arrMicroW = new Array(0,205,213,348,300);
arrMicroH = new Array(0,350,330,293,340);
arrMicro = new Array();
arrMicro[0]="";
arrMicro[1]="images/eq_microphones_big/akg2.jpg";
arrMicro[2]="images/eq_microphones_big/m149tube_big.jpg";
arrMicro[3]="images/eq_microphones_big/sen4212b.jpg";
arrMicro[4]="images/eq_microphones_big/sure57lc2.jpg";


// Award images
arrAwardW = new Array(0,250,170,200,200);
arrAwardH = new Array(0,323,231,273,289);
arrAward = new Array();
arrAward[0]="";
arrAward[1]="images/awards_big/106.jpg";
arrAward[2]="images/awards_big/109.jpg";
arrAward[3]="images/awards_big/110.jpg";
arrAward[4]="images/awards_big/111.jpg";


// Equipment images
arrEquipmentW = new Array(0,400,400,400);
arrEquipmentH = new Array(0,300,296,279);
arrEquipment = new Array();
arrEquipment[0]="";
arrEquipment[1]="images/web_room_a/teat_fill.jpg";
arrEquipment[2]="images/eq_console_big/1027.jpg";
arrEquipment[3]="images/eq_outboard_big/outboard1.jpg";



function fBigImg(type, idx)
{
	if(type=="about")
	{
		width=arrAboutW[idx];
		height=arrAboutH[idx];
	}
	if(type=="stud_a")
	{
		width=arrStudAW[idx];
		height=arrStudAH[idx];
	}
	if(type=="stud_b")
	{
		width=arrStudBW[idx];
		height=arrStudBH[idx];
	}
	if(type=="console")
	{
		width=arrConsoleW[idx];
		height=arrConsoleH[idx];
	}
	if(type=="tools")
	{
		width=arrToolsW[idx];
		height=arrToolsH[idx];
	}
	if(type=="board")
	{
		width=arrBoardW[idx];
		height=arrBoardH[idx];
	}
	if(type=="b_board")
	{
		width=arrBOutbW[idx];
		height=arrBOutbH[idx];
	}	
	if(type=="microphone")
	{
		width=arrMicroW[idx];
		height=arrMicroH[idx];
	}
	if(type=="award")
	{
		width=arrAwardW[idx];
		height=arrAwardH[idx];
	}			
	if(type=="equipment")
	{
		width=arrEquipmentW[idx];
		height=arrEquipmentH[idx];
	}	
  	win = window.open("big_img.htm?type="+type+"&idx="+idx,"wImg","width="+width+",height="+height+",scrollbars=0,resizable=0");
  	win.focus();
}





function fPrev(type, idx)
{
	document.location.href = "big_img.htm?type="+type+"&idx="+idx;
}


function fNext(type, idx)
{
	document.location.href = "big_img.htm?type="+type+"&idx="+idx;
}


function getParameter(str, name)
{
  var res = "";
  if (str.indexOf("?")!=-1)
  {
    str = str.substring(str.indexOf("?")+1, str.length);
    if (str.indexOf(name)!=-1)
    {
      if (str.indexOf("&", str.indexOf(name)+name.length)!=-1)
        res = str.substring(str.indexOf(name)+name.length+1, str.indexOf("&"))
	  else
        res = str.substring(str.indexOf(name)+name.length+1, str.length);
	}
  }
  return res;
}

