// *** tracking code JS ***
//specify page to pop-under


//specify popunder window features
//set 1 to enable a particular feature, 0 to disable
var winfeatures="width=5,height=5,scrollbars=0,resizable=0,toolbar=0,location=0,menubar=0,status=0,directories=0"

///No editing beyond here required/////


function downloadapp(downloadfileurl,app_id){
	popunder="/static/weather_centre/app_tracking.php?lang="+lang+"&app_id="+app_id;
	if(downloadfileurl!="") { location.href=downloadfileurl; }
	win2=window.open(popunder,"",winfeatures)
	setTimeout('win2.close()',2000)
	//win2.blur()
	window.focus()
}

function getfacebook(downloadfileurl,app_id){
	popunder="/static/weather_centre/app_tracking.php?lang="+lang+"&app_id="+app_id;
	win2=window.open(popunder,"",winfeatures);
	setTimeout('win2.close()',2000);
	win1=window.open(downloadfileurl,"","width=800,height=600,scrollbars=0,resizable=0,toolbar=0,location=0,menubar=0,status=0,directories=0");
	//win1.blur();
	//window.focus();
}


function downloadapp_with_contest(contesturl,downloadfileurl){
	popunder_2=contesturl;
	location.href=downloadfileurl;
	win2_2=window.open(popunder_2,"","width=1024,height=800,scrollbars=1,resizable=1,toolbar=1,location=1,menubar=1,status=1,directories=0")
	win2_2.blur()
	//this.window.focus()
}
// *** tracking code JS ***