//CreateInterface();
//gotFlash = DetectFlash("7","",true);
//if(!gotFlash)window.location = "no_flash.html";

contentArray = new Array();
contentArray[0] = escape("/The+Guardian/information/home+page;information/touchstone/The+Guardian/home+page");
contentArray[1] = escape("/The+Guardian/about;about/touchstone/The+Guardian");
contentArray[2] = escape("/The+Guardian/multimedia/photo+galleries;multimedia/touchstone/The+Guardian/photo+galleries");
contentArray[3] = escape("/The+Guardian/multimedia;multimedia/touchstone/The+Guardian");
contentArray[4] = escape("/The+Guardian/downloads;downloads/touchstone/The+Guardian");
contentArray[5] = escape("/The+Guardian/downloads/wallpapers;downloads/touchstone/The+Guardian/wallpapers");
contentArray[6] = escape("/The+Guardian/about;about/touchstone/The+Guardian");
contentArray[7] = escape("/The+Guardian/about;about/touchstone/The+Guardian");
contentArray[8] = escape("/The+Guardian/interactive+content");
contentArray[9] = escape("/The+Guardian/about/story;about/touchstone/The+Guardian/story");
contentArray[10] = escape("/The+Guardian/about/cast+crew;about/touchstone/The+Guardian/cast+crew");
contentArray[11] = escape("/The+Guardian/about/cast+crew;about/touchstone/The+Guardian/cast+crew");
contentArray[12] = escape("/The+Guardian/about/production+notes;about/touchstone/The+Guardian/production+notes");
contentArray[13] = escape("/The+Guardian/downloads/icons;downloads/touchstone/The+Guardian/wallpapers");
contentArray[14] = escape("/The+Guardian/downloads/wallpapers;downloads/touchstone/The+Guardian/icons");
contentArray[15] = escape("/The+Guardian/downloads/screensavers;downloads/touchstone/The+Guardian/screensavers");
contentArray[16] = escape("/The+Guardian/about;about/touchstone/The+Guardian");
contentArray[17] = escape("/The+Guardian/about;/about/touchstone/The+Guardian");
contentArray[18] = escape("/The+Guardian/multimedia/trailers;multimedia/touchstone/The+Guardian");
contentArray[19] = escape("/The+Guardian/multimedia/trailers;multimedia/touchstone/The+Guardian");
contentArray[20] = escape("/The+Guardian/interactive+content/games;interactive+content/touchstone/The+Guardian/games");
pageArray = new Array();
pageArray[0] = escape("home");
pageArray[1] = escape("about+film");
pageArray[2] = escape("photos+main");
pageArray[3] = escape("video+main");
pageArray[4] = escape("downloads");
pageArray[5] = escape("wallpapers");
pageArray[6] = escape("amazing+rescues");
pageArray[7] = escape("inside+coastguard");
pageArray[8] = escape("Rescue+Story");
pageArray[9] = escape("synopsis");
pageArray[10] = escape("cast");
pageArray[11] = escape("crew");
pageArray[12] = escape("pnotes");
pageArray[13] = escape("icons");
pageArray[14] = escape("wallpapers");
pageArray[15] = escape("screensavers");
pageArray[16] = escape("amazing+rescues");
pageArray[17] = escape("inside+coastguard");
pageArray[18] = escape("video+main");
pageArray[19] = escape("video+main");
pageArray[20] = escape("chopper+games");
exitLinkArray = new Array();
exitLinkArray[0] = escape("Exit_the+guardian_MOBILE");
exitLinkArray[1] = escape("Exit_the+guardian_ORDER");

function params(qp) { 
	try{r=unescape(location.search.match(new RegExp(qp+"=+([^&]*)"))[1]);}
	catch(e){r='';} 
	return r; 
}

function displayWindow(theURL,winName,width,height,features) {
  var window_width = width;
  var window_height = height;
  var newfeatures= features;
  var window_top = (screen.height-window_height)/2;
  var window_left = (screen.width-window_width)/2;
  newWindow=window.open(''+ theURL + '',''+ winName + '','width=' + window_width + ',height=' + window_height + ',top=' + window_top + ',left=' + window_left + ','+ newfeatures + '');
  newWindow.focus();
}

function openWallpaper(size, name) { 
	newWindow = window.open('cid/us/img/downloads/wallpaper.html?size=' + size + '&name=' + name + '','Desktops','width=800,height=500,top=100,left=100,scrollbars=1' + '');
	newWindow.focus();
	return;
}  

function openInside() { 
	width = 564;
	height = 411;
	newWindow = window.open('inside.html','Inside','width=' + width + ',height=' + height + ',top=100,left=100,resize=no,scrollbars=no' + '');
	newWindow.focus();
	return;
}

function openRescues() { 
	width = 746;
	height = 411;
	newWindow = window.open('rescues.html','Inside','width=' + width + ',height=' + height + ',top=100,left=100,resize=no,scrollbars=no' + '');
	newWindow.focus();
	return;
}

function openVideo() { 
	width = 600;
	height = 297;
	newWindow = window.open('video.html','Video','width=' + width + ',height=' + height + ',top=100,left=100,resize=yes,scrollbars=no' + '');
	newWindow.focus();
	return;
}

function openAIM() { 
	width = 714;
	height = 464;
	newWindow = window.open('downloads/AIM.html','AIM_Icons','width=' + width + ',height=' + height + ',top=100,left=100,resize=no,scrollbars=no');
	newWindow.focus();
	return;
} 

function openScreensaver(platform) { 
	width = 400;
	height = 200;
	newWindow = window.open('cid/us/img/downloads/screensaver.html?platform=' + platform + '','Screensaver','width=' + width + ',height=' + height + ',top=100,left=100' + '');
	newWindow.focus();
	return;
} 

function trailerOpen(eclipid,bitrate,type,width,height,cliptype,clipname) {
	window.open('http://www.totaleclips.com/Player/Bounce.aspx?eclipid='+eclipid+'&bitrateid='+bitrate+'&vendorid=3&affiliateId=-1','Clips','status=yes,scrollbars=yes,resizable=yes,width='+width+',height='+height+'');
	hitbox=new HB_CreateObject('/The+Guardian/multimedia/'+cliptype+';multimedia/touchstone/The+Guardian/'+cliptype+'','The+Guardian');
	hitbox.HB_PlaceAccount("DM520604JJEM","DM5206055JAD","DM510612FMNS","DM51030813MR","DM5103083LCA");
	hitbox.HB_PlaceName(clipname);
	hitbox.HB_render();
}
