//This variable is incremented to ensure each shop opens in a new window, rather than replacing shops in existing windows
var shopcount = 0;

function popclickandwin(url)
{
	var theTop=(screen.height/2)-(280/2);
	var theLeft=(screen.width/2)-(300/2);
	newwindow2=window.open(url,'clickandwin','height=280,width=300,left=' + theLeft + ',top=' + theTop);
	if (window.focus) {newwindow2.focus()}	
}

function popnews(url)
{
	newwindow=window.open(url,'ibtnews','height=600, width=1000, left=40, top=40, toolbar=yes, menubar=yes, directories=yes, location=yes, scrollbars=yes, status=yes, resizable=yes, fullscreen=no');
	if (window.focus) {newwindow.focus()}
}

function popcategoryedit(url)
{
	newwindow2=window.open(url,'editcategories','height=300,width=540');
	if (window.focus) {newwindow2.focus()}	
}

function popsmileylevels(url)
{
	var theTop=(screen.height/2)-(450/2);
	var theLeft=(screen.width/2)-(220/2);
	newwindow2=window.open(url,'smileylevels','height=450,width=220,left=' + theLeft + ',top=' + theTop);
	if (window.focus) {newwindow2.focus()}	
}

function poppaypal(url)
{
	newwindow=window.open(url,'paypal','height=600, width=800, scrollbars=yes, status=yes, location=yes');
	if (window.focus) {newwindow.focus()}
}

function popout(url)
{
	newwindow=window.open(url,'ibtshop' + shopcount,'height=600, width=1000, left=40, top=40, toolbar=yes, menubar=yes, directories=yes, location=yes, scrollbars=yes, status=yes, resizable=yes, fullscreen=no');
	if (window.focus) {newwindow.focus()}
	
	shopcount ++;
}

function pophelp(url)
{
	newwindow=window.open(url,'ibthelp','height=250,width=405, resizable=yes, fullscreen=no');
	if (window.focus) {newwindow.focus()}
}

function popeditnews(url)
{
	newwindow=window.open(url,'causeinfo','top=100, left=100, height=280,width=300, scrollbars=yes, resizable=yes');
	if (window.focus) {newwindow.focus()}	
}

function popcauseinfo(url)
{
	newwindow=window.open(url,'causeinfo','height=528,width=680, scrollbars=yes, resizable=yes');
	if (window.focus) {newwindow.focus()}	
}

function popcauseminiinfo(url)
{
	newwindow=window.open(url,'causeinfo','height=420,width=660');
	if (window.focus) {newwindow.focus()}	
}

function poptc(url)
{
	newwindow=window.open(url,'tc','height=400,width=600, scrollbars=yes, status=yes');
	if (window.focus) {newwindow.focus()}
}
