$(document).ready(function(){
	$("div#videoflash-thumb a").click(function () {
		$(this).hide();
		$('.content-home div#videoflash').flash({
          src: 'assets/video/flvplayer_progressive.swf',
          width: 398,
          height: 224,
          flashvars: { skinName: 'assets/video/clear_skin', streamName: 'video-home', autoPlay: 'true', autoRewind: 'false' }
			}, { expressInstall: true });
	});
	setupZoom();
	$('body:not(.content-home):not(.content-newsletters):not(.content-newsletters-2010):not(.content-newsletters-2011):not(.content-newsletters-2012) .contentStandard a[target!="_blank"][class!="ignore"] > img').thumbs();
});

var popUpWin=0;
function popUpWindow(URLStr, left, top, width, height, other) {
  if(popUpWin) {
	  if(!popUpWin.closed) popUpWin.close();
  }
  var winleft = (screen.width - width) / 2;
  var winUp = (screen.height - height) / 2;
  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,'+other+',resizable=yes,copyhistory=no,width='+width+',height='+height+',left='+winleft+', top='+winUp+',screenX='+winleft+',screenY='+winUp+'');
}

