newPopUp({
	name:"minionMaker",
	url:"pops/minionMaker/?lang_id=uk",
	width:792, height:640, scroll:"no", resizable:"no"});

newPopUp({
	name:"mooAndroid",
	url:"pops/imoo/android/",
	width:150, height:300, scroll:"no", resizable:"no"});

newPopUp({
	name:"ringtoneDownload",
	url:"http://despicable.me/mobile/",
	width:700, height:450, scroll:"no", resizable:"no"});

newPopUp({
	name:"breakin",
	url:"pops/breakin/index.html",
	width:750, height:632, scroll:"no", resizable:"no"});

newPopUp({
	name:"register",
	url:"pops/register/register.html",
	width:463, height:620, scroll:"no", resizable:"no"});

newPopUp({
	name:"workIt",
	url:"pops/workIt/index.html",
	width:750, height:632, scroll:"no", resizable:"no"});

newPopUp({
	name:"minionImpossible",
	url:"pops/minionImpossible/",
	width:550, height:400, scroll:"no", resizable:"no"});
	
newPopUp({
	name:"credits",
	url:"pops/credits/",
	width:1041, height:145, scroll:"no", resizable:"no"});

newPopUp({
	name:"mmc",
	url:"pops/mmc/",
	width:770, height:655, scroll:"no", resizable:"no"});

newPopUp({
	name:"iTrailer",
	url:"itrailer/DMTrailer.html",
	width:650, height:565, scroll:"no", resizable:"no"});

	//width:850, height:160, 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 ""
	}
}
