<% ' ' MoFuse Premium API ' Mobile Detect & Redirect ' DIM sMofuseSiteID sMofuseSiteID = "ac8334de878cd4755bf6182cb3f3e474" DIM sMofuseSiteURL sMofuseSiteURL = "http://grfordlibrarymuseum.bxs.mobi/" DIM sMofuseParams MofuseSetParams sMofuseParams, "a", "mobile_detect" MofuseSetParams sMofuseParams, "v", "0.2.5" MofuseSetParams sMofuseParams, "s", sMofuseSiteID MofuseSetParams sMofuseParams, "m", sMofuseSiteURL MofuseSetParams sMofuseParams, "u", Request.ServerVariables("HTTP_USER_AGENT") IF Request.ServerVariables("SERVER_PORT") = "80" THEN MofuseSetParams sMofuseParams, "h", Request.ServerVariables("SERVER_NAME") ELSE MofuseSetParams sMofuseParams, "h", Request.ServerVariables("SERVER_NAME") & ":" & Request.ServerVariables("SERVER_PORT") END IF MofuseSetParams sMofuseParams, "r", Request.ServerVariables("SCRIPT_NAME") MofuseSetParams sMofuseParams, "i", Request.ServerVariables("REMOTE_ADDR") Sub MofuseSetParams(ByRef sParams, sKey, sVal) IF sVal <> "" THEN IF sParams <> "" THEN sParams = sParams & "&" & Server.URLEncode(sKey) & "=" & Server.URLEncode(sVal) ELSE sParams = sParams & "?" & Server.URLEncode(sKey) & "=" & Server.URLEncode(sVal) END IF END IF End Sub FUNCTION MofuseMobileDetectRequest(sParams) DIM sMofuseMobile sMofuseMobile = getHTML("http://api.mofusepremium.com/" & sParams) 'Response.Write sMofuseMobile IF sMofuseMobile <> "" THEN MofuseMobileDetectRequest = Left(sMofuseMobile, 25) ELSE MofuseMobileDetectRequest = "0" END IF END FUNCTION FUNCTION getHTML (strUrl) 'Response.Write strUrl Set xmlHttp = Server.Createobject("MSXML2.ServerXMLHTTP") xmlHttp.Open "GET", strUrl, False xmlHttp.setRequestHeader "User-Agent", "asp httprequest" xmlHttp.setRequestHeader "content-type", "application/x-www-form-urlencoded" xmlHttp.Send getHTML = xmlHttp.responseText xmlHttp.abort() set xmlHttp = Nothing END FUNCTION SUB MofuseMobileDetect(sParams) DIM isMobile isMobile = MofuseMobileDetectRequest(sParams) 'Response.Write isMobile DIM sMofuseParams sMofuseParams = "" IF Request.ServerVariables("SERVER_PORT") = "80" THEN MofuseSetParams sMofuseParams, "h", Request.ServerVariables("SERVER_NAME") ELSE MofuseSetParams sMofuseParams, "h", Request.ServerVariables("SERVER_NAME") & ":" & Request.ServerVariables("SERVER_PORT") END IF MofuseSetParams sMofuseParams, "r", Request.ServerVariables("SCRIPT_NAME") IF isMobile = 1 THEN Response.Redirect(sMofuseSiteURL & sMofuseParams) END IF END SUB IF Request.QueryString("nomobile") <> "1" THEN MofuseMobileDetect(sMofuseParams) END IF ' ' END OF MoFuse Premium API ' %> Gerald R. Ford Presidential Library and Museum
The Gerald R. Ford Presidential Library and Museum Website
Page Printing Info       
 
Special Events & Exhibits

Documents & Photos

Education Programs

Gerald R. Ford Foundation

Accessibility

Related Links


Ford Library
1000 Beal Avenue,
Ann Arbor, MI 48109

Open: Monday - Friday, 8:45 a.m. - 4:45 p.m.
Closed Federal holidays.
(734) 205-0555


>>More

Ford Museum
303 Pearl Street NW, Grand Rapids, MI 49504-5353
Hours: 9:00 am - 5:00 pm. (Closed New Year's Day, Thanksgiving Day, and Christmas Day)
(616) 254-0400


President Ford's Burial Site

>>More

Museum eStore
eStore logo

   
     
 
Up-coming Events  | Newsroom | Recent Events
Candace Clare Sobers Wins 2009 Gerald R. Ford Scholar Award in Honor of Robert M. Teeter
Tuesday,
July 14
Wreath Laying in Grand Rapids, MI.
>>Read more...
NEW
Soyuz model

Curator's Favorites
SAQA animation •Exhibit: A Child in the White House: Caroline Kennedy's Dolls (through August 31 in Grand Rapids)
•Exhibit: Musings (SAQA quilt exhibit) (through August 31 in Grand Rapids)
•Exhibit: Economy in Crisis, 1974 - 1975 (Ann Arbor)
nara logo •Teachers: Today's Document from the National Archives
Teachers: America's Historical Documents
Congressional book cover Gerald R. Ford Congressional Tribute Book
Posthumous Tributes and Honors for President Ford
Library image

•Researchers: Recently processed and opened
•Researchers: Gerald R. Ford Foundation Research Travel Grant Recipients announced

updated: July 15, 2009
     





museum store graphic