var lastPopUpWindow = null;

function pop(sCase) {
// close the last pop-up.
	/*
	try {
		lastPopUpWindow.close();
	}catch(e){
	}
	*/

	switch(sCase) {
		// News
		case "joystiq":
			void(mywin=window.open('http://www.eurogamer.net/article.php?article_id=83318', 'Eurogamer'));
			mywin.focus();
			break;
		case "gamespot":
			void(mywin=window.open('http://www.pro-g.co.uk/xbox360/stranglehold/review.html', 'gamespot'));
			mywin.focus();
			break;
		case "ign":
			void(mywin=window.open('http://www.computerandvideogames.com/article.php?id=172093', 'ign'));
			mywin.focus();
			break;
			
		// Promotions
		case "short_film":
			void(mywin=window.open('http://www.myspace.com/strangleholdgame', 'short_film'));
			mywin.focus();
			break;
		case "ign_minisite":
			void(mywin=window.open('http://microsites.ign.com/stranglehold/ ', 'minisite'));
			mywin.focus();
			break;
		case "ign_blog":
			void(mywin=window.open('http://blogs.ign.com/Strangleholdgame/ ', 'blog'));
			mywin.focus();
			break;
			
		// Buy Now links
		case "Game":
			void(mywin=window.open('http://www.game.co.uk/ViewProduct.aspx?cat=11287&mid=326888', 'Game'));
			mywin.focus();
			buypopup();			
			break;
		case "Tesco":
			void(mywin=window.open('http://www.tesco.com/entertainment/product.aspx?R=785838&bci=4|Games*4294312962|Xbox%20360*92|Coming%20Soon', 'Tesco'));
			mywin.focus();
			buypopup();			
			break;
		case "HMV":
			void(mywin=window.open('http://www.hmv.co.uk/hmvweb/displayProductDetails.do?ctx=286;6;-1;-1&sku=409468', 'HMV'));
			mywin.focus();
			buypopup();			
			break;
		case "Amazon":
			void(mywin=window.open('http://www.amazon.co.uk/Midway-Games-Ltd-Stranglehold-Xbox/dp/B000BLE9C8/ref=pd_bbs_sr_1/203-9689417-0639940?ie=UTF8&s=videogames&qid=1186998195&sr=8-1', 'Amazon'));
			mywin.focus();
			buypopup();			
			break;
		case "Play":
			void(mywin=window.open('http://www.play.com/Games/Xbox360/4-/659424/John-Woo-Presents-Stranglehold/Product.html', 'Play'));
			mywin.focus();
			buypopup();			
			break;
		case "Virgin":
			void(mywin=window.open('http://www.virginmegastores.co.uk/product/785838/John_Woo_Presents_Stranglehold/s.jsf', 'Virgin'));
			mywin.focus();
			buypopup();			
			break;

		// Footer links	
		case "register":
			void(mywin=window.open('http://www.stranglehold-registration.com', 'register'));
			mywin.focus();
			break;
		case "forums":
			void(mywin=window.open('http://forums.midway.com/all_things_stranglehold/b10788/p1', 'forums'));
			mywin.focus();
			break;
		case "legal":
			void(mywin=window.open('http://www.midway.com/page/LegalInformation.html', 'legal'));
			mywin.focus();
			break;
		case "privacy":
			void(mywin=window.open('http://www.midway.com/page/LegalPrivacy.html', 'privacy'));
			mywin.focus();
			break;
		case "terms":
			void(mywin=window.open('http://www.midway.com/page/LegalTerms.html', 'terms'));
			mywin.focus();
			break;
		case "xboxlive":
			void(mywin=window.open('', 'xboxlive'));
			mywin.focus();
			break;
	}
}
function buypopup(){
	void(mywin1 = window.open('buypopup.html','warning', 'width=250,height=300'));
}