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.ps3fanboy.com/2007/05/16/best-special-edition-ever-stranglehold-se-exclusive-to-the-ps3/', 'joystiq'));
			mywin.focus();
			break;
		case "gamespot":
			void(mywin=window.open('http://www.gamespot.com/ps3/action/stranglehold/news.html?sid=6170876&mode=top', 'gamespot'));
			mywin.focus();
			break;
		case "ign":
			void(mywin=window.open('http://ps3.ign.com/articles/789/789147p1.html', '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.com.au', 'Game'));
			mywin.focus();
			buypopup();		
			break;
		case "Big W":
			void(mywin=window.open('http://www.bigw.com.au', 'Big W'));
			mywin.focus();
			buypopup();		
			break;
		case "JB":
			void(mywin=window.open('http://www.jbhifi.com.au', 'JB'));
			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'));
}
