newPopUp({
	name:"credits",
	url:"pops/credits/",
	width:993, height:314, scroll:"no", resizable:"no"});
newPopUp({
	name:"fan",
	url:"pops/fan/",
	width:316, height:575, scroll:"no", resizable:"no"});	
newPopUp({
	name:"register",
	url:"pops/register/",
	width:466, height:559, scroll:"no", resizable:"no"});	
newPopUp({
	name:"tos",
	url:"http://www.paramountmovies.com/legal/termsofuse.php?bgcolor=000000&linkcolor=3c3c3c&fontcolor=3c3c3c",
	width:466, height:559, scroll:"yes", resizable:"no"});
newPopUp({
	name:"privacy",
	url:"http://www.paramountmovies.com/legal/privacypolicy.php?bgcolor=000000&linkcolor=3c3c3c&fontcolor=3c3c3c",
	width:466, height:559, scroll:"yes", resizable:"no"});	
newPopUp({
	name:"widget",
	url:"pops/widget/",
	width:550, height:400, scroll:"no", resizable:"no"});		

/*
newPopUp({
	name:"credits",
	url:"pops/credits/index.html",
	width:888, height:120, scroll:"no", resizable:"no"});
*/
	
//EXAMPLE to find days between now and release date (don't forget month is zero based)
/*var d1 = new Date(2008,5,1);
var d2 = new Date();

alert(daysDiff(d1,d2));	
*/
function rkdmsEvent(movieName,eventName){
	var d = new Date();
	var t = d.getTime();
	var tracking = "<img src=\"https://www.rkdms.com/order.gif?mid="+ movieName +"&oid="+ t +"&lid=1&cid=&iid="+ eventName +"&ts=&icent=0&iqty=1&iname="+ eventName +"\" height=\"1\" width=\"1\" />";
	//document.write(tracking);	
	
	document.getElementById("bounceTracking").innerHTML = tracking;
	
	//alert(tracking);
}





function getDeeplinkHash(){

	var q = document.location.search||document.location.hash;
	if (q.length > 1) {
		var toReturn = q.substr(2);
		return toReturn
	} else {
		return ""
	}
}