ban_img=0;

var popUpWin=0;

//evariables of popup centered

var width = 575;
var height = 500;
var left = (screen.width-width)/2;

var top = (screen.height-600)/2;

var widthf= 600;
var heightf= 460;

function popUpWindow(pic_n,port_t,proj_n)
{
//var width = window.innerWidth;
//var height = window.innerHeight;
if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }

  popUpWin = open('popup_win.php?varpic='+pic_n +'&varport='+port_t+'&varproj='+proj_n, 'popUpWin','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}

function popUpSwf(pic_n,port_t,proj_n)
{
//var width = window.innerWidth;
//var height = window.innerHeight;
if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open('popup_swf.php?varpic='+pic_n +'&varport='+port_t+'&varproj='+proj_n, 'popUpWin','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width='+widthf+',height='+heightf+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}



function popFlashGames(pic_n,port_t,proj_n)

{
//var width = window.innerWidth;
//var height = window.innerHeight;
if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
popUpWin = open('popup_fg.php?varpic='+pic_n +'&varport='+port_t+'&varproj='+proj_n, 'popUpWin','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width='+widthf+',height='+heightf+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}


function popUpWindowSmall(pic_n,port_t,proj_n)
{
//var width = window.innerWidth;
//var height = window.innerHeight;
if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open('popup_win_small.html?varpic='+pic_n +'&varport='+port_t+'&varproj='+proj_n, 'popUpWin','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}







function bannerchange()

	{

		ban_img=parseInt((Math.random()*10)+1);

		bannerimg.src = "images/hypesol_banner_" + ban_img + ".jpg";

	}	