//<!--

// Handles popups for www.finecases.com

popupWin = null;
leftPos = 150;
topPos = 150;

function free_shipping() { 
	if (screen) {
	leftPos = (screen.width / 2) - 221
	topPos = (screen.height / 2) - 136
	}
popupWin = window.open('/common_promos/free_shipping/freeship_popup.html', 'ViewFreeShipping', 'height=272,width=442,left='+leftPos+',top='+topPos+',resizable=no,scrollbars=no,menubar=no,directories=no,location=no,status=no,');
ckBlock();
popupWin.focus();
}

function nolinks_free_shipping() { 
	if (screen) {
	leftPos = (screen.width / 2) - 221
	topPos = (screen.height / 2) - 136
	}
popupWin = window.open('/common_promos/free_shipping/freeship_popup.html?nolinks=true', 'ViewFreeShipping2', 'height=272,width=442,left='+leftPos+',top='+topPos+',resizable=no,scrollbars=no,menubar=no,directories=no,location=no,status=no,');
// do not invoke ckBlock function here because of popup from a popup
popupWin.focus();
}

function oversize1() { 
	if (screen) {
	leftPos = (screen.width / 2) - 221
	topPos = (screen.height / 2) - 136
	}
popupWin = window.open('/common_promos/free_shipping/oversize1_popup.html', 'ViewOversize1', 'height=272,width=442,left='+leftPos+',top='+topPos+',resizable=no,scrollbars=no,menubar=no,directories=no,location=no,status=no,');
ckBlock();
popupWin.focus();
}

function nolinks_oversize1() { 
	if (screen) {
	leftPos = (screen.width / 2) - 221
	topPos = (screen.height / 2) - 136
	}
popupWin = window.open('/common_promos/free_shipping/oversize1_popup.html?nolinks=true', 'ViewOversize1NoLinks', 'height=272,width=442,left='+leftPos+',top='+topPos+',resizable=no,scrollbars=no,menubar=no,directories=no,location=no,status=no,');
// do not invoke ckBlock function here because of popup from a popup
popupWin.focus();
}

function oversize2() { 
	if (screen) {
	leftPos = (screen.width / 2) - 221
	topPos = (screen.height / 2) - 136
	}
popupWin = window.open('/common_promos/free_shipping/oversize2_popup.html', 'ViewOversize2', 'height=272,width=442,left='+leftPos+',top='+topPos+',resizable=no,scrollbars=no,menubar=no,directories=no,location=no,status=no,');
ckBlock();
popupWin.focus();
}

function nolinks_oversize2() { 
	if (screen) {
	leftPos = (screen.width / 2) - 221
	topPos = (screen.height / 2) - 136
	}
popupWin = window.open('/common_promos/free_shipping/oversize2_popup.html?nolinks=true', 'ViewOversize2NoLinks', 'height=272,width=442,left='+leftPos+',top='+topPos+',resizable=no,scrollbars=no,menubar=no,directories=no,location=no,status=no,');
// do not invoke ckBlock function here because of popup from a popup
popupWin.focus();
}

function oversize3() { 
	if (screen) {
	leftPos = (screen.width / 2) - 221
	topPos = (screen.height / 2) - 136
	}
popupWin = window.open('/common_promos/free_shipping/oversize3_popup.html', 'ViewOversize3', 'height=272,width=442,left='+leftPos+',top='+topPos+',resizable=no,scrollbars=no,menubar=no,directories=no,location=no,status=no,');
ckBlock();
popupWin.focus();
}

function nolinks_oversize3() { 
	if (screen) {
	leftPos = (screen.width / 2) - 221
	topPos = (screen.height / 2) - 136
	}
popupWin = window.open('/common_promos/free_shipping/oversize3_popup.html?nolinks=true', 'Oversize3NoLinks', 'height=272,width=442,left='+leftPos+',top='+topPos+',resizable=no,scrollbars=no,menubar=no,directories=no,location=no,status=no,');
// do not invoke ckBlock function here because of popup from a popup
popupWin.focus();
}

function fixedShipFlex(fcid) { 
	if (screen) {
	leftPos = (screen.width / 2) - 221
	topPos = (screen.height / 2) - 161
	}
popupWin = window.open('/common_promos/free_shipping/fixedShipFlex_popup.html?fcid=' +fcid, 'ShipFixedFlex_'+fcid, 'height=322,width=442,left='+leftPos+',top='+topPos+',resizable=no,scrollbars=no,menubar=no,directories=no,location=no,status=no,');
ckBlock();
popupWin.focus();
}

function nolinks_fixedShipFlex(fcid) { 
	if (screen) {
	leftPos = (screen.width / 2) - 221
	topPos = (screen.height / 2) - 161
	}
popupWin = window.open('/common_promos/free_shipping/fixedShipFlex_popup.html?fcid=' +fcid + '&nolinks=true', 'ShipFixedFlex_'+fcid, 'height=322,width=442,left='+leftPos+',top='+topPos+',resizable=no,scrollbars=no,menubar=no,directories=no,location=no,status=no,');
// do not invoke ckBlock function here because of popup from a popup
popupWin.focus();
}

function fixedShip(fcid) { 
	if (screen) {
	leftPos = (screen.width / 2) - 221
	topPos = (screen.height / 2) - 141
	}
popupWin = window.open('/common_promos/free_shipping/fixedShip_popup.html?fcid=' +fcid, 'ShipFixed_'+fcid, 'height=282,width=442,left='+leftPos+',top='+topPos+',resizable=no,scrollbars=no,menubar=no,directories=no,location=no,status=no,');
ckBlock();
popupWin.focus();
}

function nolinks_fixedShip(fcid) { 
	if (screen) {
	leftPos = (screen.width / 2) - 221
	topPos = (screen.height / 2) - 141
	}
popupWin = window.open('/common_promos/free_shipping/fixedShip_popup.html?fcid=' +fcid +'&nolinks=true', 'ShipFixed_'+fcid, 'height=282,width=442,left='+leftPos+',top='+topPos+',resizable=no,scrollbars=no,menubar=no,directories=no,location=no,status=no,');
// do not invoke ckBlock function here because of popup from a popup
popupWin.focus();
}

function truckShip() { 
	if (screen) {
	leftPos = (screen.width / 2) - 221
	topPos = (screen.height / 2) - 136
	}
popupWin = window.open('/common_promos/free_shipping/OSship.html', 'ViewTruckShip', 'height=272,width=442,left='+leftPos+',top='+topPos+',resizable=no,scrollbars=no,menubar=no,directories=no,location=no,status=no,');
ckBlock();
popupWin.focus();
}

function nolinks_truckShip() { 
	if (screen) {
	leftPos = (screen.width / 2) - 221
	topPos = (screen.height / 2) - 136
	}
popupWin = window.open('/common_promos/free_shipping/OSship.html?nolinks=true', 'TruckShipNoLinks', 'height=272,width=442,left='+leftPos+',top='+topPos+',resizable=no,scrollbars=no,menubar=no,directories=no,location=no,status=no,');
// do not invoke ckBlock function here because of popup from a popup
popupWin.focus();
}

function ViewShipDetails(shiptotal,total,rand) { 
	if (screen) {
	leftPos = (screen.width / 2) - 305
	topPos = (screen.height / 2) - 190
	}
popupWin = window.open('/shopping_mgi/shopping_popups/viewShipTotal.html?shiptotal=' +shiptotal + '&ordertotal=' +total + '&rand=' +rand, 'ViewShipDetails_'+rand, 'height=380,width=610,left='+leftPos+',top='+topPos+',resizable=no,scrollbars=yes,menubar=no,directories=no,location=no,status=no,');
ckBlock();
popupWin.focus();
}

window.name = 'ViewerWindow';

function ViewShipRates() {
	if (screen) {
	leftPos = (screen.width / 2) - 265
	topPos = (screen.height / 2) - 221
	}
popupWin = window.open('/about_mgi/tables/_shipRate_TABLE.html', 'ShipRates', 'height=442,width=530,left='+leftPos+',top='+topPos+',resizable=no,scrollbars=no,menubar=no,directories=no,location=no,status=no,');
// do not invoke ckBlock function here because of popup from a popup
popupWin.focus();
}

function howToSave() {
	if (screen) {
	leftPos = (screen.width / 2) - 250
	topPos = (screen.height / 2) - 250
	}
popupWin = window.open('/common_promos/free_shipping/_howToSaveShipping.html', 'SaveShipDollars', 'height=500,width=500,left='+leftPos+',top='+topPos+',resizable=no,scrollbars=yes,menubar=no,directories=no,location=no,status=no,');
// do not invoke ckBlock function here because of popup from a popup
popupWin.focus();
}
//-->