var win_detail=false;
function bigpage(url)
{
   if (window.top && window.top.name && window.top.name=='bigpage')
   {
      return;
   }

	if ( screen.width == 1024 ) {

		res = "1024x768"

		win_detail = window.open( url,'bigpage','fullscreen=1, width='+(screen.width - 10)+',height='+(screen.height - 30)+',screenX=0,screenY=0,directories=0,location=0,menubar=0,scrollbars=0,status=0,toolbar=0')
	    win_detail.focus();

	}

	

	if ( screen.width < 1024 ) {

		res = "800x600"

 win_detail = window.open(  url,'bigpage','fullscreen=1, width='+(screen.width - 10)+',height='+(screen.height - 30)+',screenX=0,screenY=0,directories=0,location=0,menubar=0,scrollbars=0,status=0,toolbar=0')
	    win_detail.focus();
	}

	  

	if ( screen.width > 1024 ) {

		var x = (screen.width-740)/2
		var y = (screen.height-480)/2

		res = "gross"

		win_detail = window.open( url,'bigpage','fullscreen=1, width='+(screen.width - 10)+',height='+(screen.height - 30)+',screenX=0,screenY=0,directories=0,location=0,menubar=0,scrollbars=0,status=0,toolbar=0')
	    win_detail.focus();

	}
    bigscr=1;

}
function check_scr(url)
{
   if (window.top && window.top.name && window.top.name=='bigpage')
   {
     window.top.close();
    // win_detail.close();
   }else
   bigpage(url);
}
