//**********************************************************************************
// DO NOT EDIT
//**********************************************************************************


function getQV(qv) {
	var query = window.location.search.substring(1); 
	var vars = query.split("&"); 
	for (var i=0;i< vars.length;i++) { 
		 var pair = vars[i].split("="); 
		if (pair[0] == qv) return pair[1] ; 
	} 
}	
function _reloadPage(init) {
  if (init==true) with (navigator) {
  	if (appName=="Netscape") {
    	document._pgW=innerWidth; 
    	document._pgH=innerHeight; 
   		onresize=_reloadPage;
   	 }
  }
}

function jpop(file,nam,ww,hh) {
 			var win = null;
  			var winl = (screen.width-ww)/2;
  			var wint = (screen.height-hh)/2;
  			var settings  ='height='+hh+',';
      		settings +='width='+ww+',';
      		settings +='screenX='+wint+',';
      		settings +='screenY='+winl+',';
      		settings +='top='+wint+',';
      		settings +='left='+winl+',';
      		settings +='status=no,';
      		settings +='scrollbars=no,';
      		settings +='resizable=no';
  			win=window.open(file,nam,settings);
  			if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
		}

function fitPic() {
	var temp=self.location.href.split("?");
	var picUrl = (temp.length>1)?temp[1]:"";
	var NS = (navigator.appName=="Netscape")?true : false;
	iWidth = (NS)?window.innerWidth:document.body.clientWidth;
	iHeight = (NS)?window.innerHeight:document.body.clientHeight;
	iWidth = document.images[0].width - iWidth;
	iHeight = document.images[0].height - iHeight;
	window.resizeBy(iWidth, iHeight-1);
	self.focus();
}	

function showScreen(imgP) { 
	window.open("board_pop.html?img="+ imgP , "BL:ND [ BOARD ]", "resizable=0, height=200, width=200");
}

function showQT(QT,tag) {
	var reelURL = 'reel_pop.html?QT=' + QT + '&tag=' + tag;
	//window.open(reelURL,'',392,398);
	jpop(reelURL ,'BLIND','392','398');
}


_reloadPage(true);