function generateEditorsPicks(Region){
// $('lodgingContainer').style.display = 'none';
// $('restaurantsContainer').style.display = 'none';
// $('storyContainer').style.display = 'none';
$('eventsContainer').style.display = 'none';
var enhancedNE = false, enhancedNW = false, enhancedCE = false, enhancedSW = false, enhancedSE = false;
if(Region == "NE" ) var strResponseText = 'Art Revelations|Be one of the first to see new works at the Akron Art Museum during “Unveiled: Recent Acquisitions from the Museum’s Collection,” which includes two dozen photos, prints, paintings and sculptures, Aug. 30–Nov. 30. |Akron|410846|-815153|DFC9CD52D56349F3B09F5416610E7EB4|/Media/DirectoriesFeaturedEvents/unveiled.jpg|September 2 - September 9: Ohiomag.com Northeast Featured Event - Unveiled: Recent Acquistions from the Museums Collection|Akron Art Museum|One S. High St.|Akron, OH 44308';
if(Region == "NW" ) var strResponseText = 'Chow Down|Have you ever wanted to get up close and personal with your favorite zoo inhabitants? The Big Feed at the Toledo Zoo on Sept. 13 offers the chance to feed animals, or to watch handlers feed them and set up enrichment activities. |Toledo|416231|-835797|525146D61E2F404E80BBB4701AE7C7CE|/Media/DirectoriesFeaturedEvents/the-big-feed.jpg|September 2 - September 9: Ohiomag.com Northwest Featured Event - The Big Feed|Toledo Zoo|2 Hippo Way|Toledo, OH 43614';
if(Region == "CE" ) var strResponseText = 'Creative Spotlight|View works in a variety of mediums — including found materials and glass — by artists from across the country during “COLOR: Ten African American Artists,” at the Ohio Craft Museum in Columbus, Sept. 14–Nov. 2. |Columbus|399889|-830512|7F2A7D7DB106498EA1CE5C5830116717|/Media/DirectoriesFeaturedEvents/color.jpg|September 2 - September 9: Ohiomag.com Central Featured Event - COLOR: Ten African American Artists|Ohio Craft Museum|1665 W. 5th Ave.|Columbus, OH 43212';
if(Region == "SW" ) var strResponseText = 'Musical Genius|A fictional account of composer Mozart’s life — riddled with jealousy, obsession and madness — is detailed in “Amadeus,” at the Cincinnati Shakespeare Company theater, Sept. 5–28. |Cincinnati|391035|-845154|91D5CFD286C04B72A774E2CEDA28673B|/Media/DirectoriesFeaturedEvents/amadeus.jpg|September 2 - September 9: Ohiomag.com Southwest Featured Event - Amadeus|Cincinnati Shakespeare Company|719 Race St.|Cincinnati, OH 45202';
if(Region == "SE" ) var strResponseText = 'Patchwork Patterns|The beautiful patchwork blankets in “The Marbaum Collection: 25 Years of Contemporary Quilts,” at The Dairy Barn Arts Center in Athens, Sept. 12–Nov. 2, prove that quilts are more than blankets — they are also an art form. |Athens|393176|-821089|A4EA7803220642FB8D3C3B105B05B6F8|/Media/DirectoriesFeaturedEvents/marbaum-quilt.jpg|September 2 - September 9: Ohiomag.com Southeast Featured Event - The Marbaum Collection: 25 Years of Contemporary Quilts|The Dairy Barn Art Center|8000 Dairy Lane|Athens, OH 45701';
var eventArray = strResponseText.split("|");
$('EventTitle').innerHTML = eventArray[0];
$('EventDescription').innerHTML = eventArray[1];
$('City').innerHTML = ' ' + eventArray[2] + ' ';
$('City543').innerHTML = ' ' + eventArray[2] + ' ';
$('City432').innerHTML = ' ' + eventArray[2] + ' ';
$('EventLink').href = "/events/dirmod.asp?sid=30BF81B411F74328A39BF1BA0337CD19&nm=Ohio+Events&type=MyModule&mod=Directories%3A%3AEventsCalendar&mid=972281777D9545958362A298D6D74713&tier=3&ModuleSID="+eventArray[5];
$('EventImage').src = eventArray[6];
$('EventImage').alt = eventArray[7];
if(Region == "NE") $('changingRegion').innerHTML = "Northeast";
else if(Region == "NW") $('changingRegion').innerHTML = "Northwest";
else if(Region == "CE") $('changingRegion').innerHTML = "Central";
else if(Region == "SW") $('changingRegion').innerHTML = "Southwest";
else if(Region == "SE") $('changingRegion').innerHTML = "Southeast";
//plotCoordinates.push(new Array(eventArray[3],eventArray[4],eventArray[0],"Events"));
var strLocation = "";
if(eventArray.length > 7){
for(var i = 8; i < eventArray.length; i++){
strLocation = strLocation + eventArray[i] + "
";
}
} else {
strLocation = "No Location Found";
}
$('EventLocation').innerHTML = strLocation;
// getLodging(eventArray[3],eventArray[4]);
// getRestaurants(eventArray[3],eventArray[4]);
// getStories(eventArray[3],eventArray[4]);
Effect.Appear('eventsContainer', {duration:3.0}, {fps:50});
}
function getNE(){
changeBackgroundShades();
changeThisToRed($('tdNE'));
$('menu_block1').style.display = 'none';
$('openMap').style.display = 'block';
plotCoordinates = [];
$('mapImage').src = "/Media/MediaManager/OhioMagRedesign/RegionMapNE.gif";
generateEditorsPicks("NE");
}
function getNW(){
changeBackgroundShades();
changeThisToRed($('tdNW'));
$('menu_block1').style.display = 'none';
$('openMap').style.display = 'block';
plotCoordinates = [];
$('mapImage').src = "/Media/MediaManager/OhioMagRedesign/RegionMapNW.gif";
generateEditorsPicks("NW");
}
function getCE(){
changeBackgroundShades();
changeThisToRed($('tdCE'));
$('menu_block1').style.display = 'none';
$('openMap').style.display = 'block';
plotCoordinates = [];
$('mapImage').src = "/Media/MediaManager/OhioMagRedesign/RegionMapCE.gif";
generateEditorsPicks("CE");
}
function getSW(){
changeBackgroundShades();
changeThisToRed($('tdSW'));
$('menu_block1').style.display = 'none';
$('openMap').style.display = 'block';
plotCoordinates = [];
$('mapImage').src = "/Media/MediaManager/OhioMagRedesign/RegionMapSW.gif";
generateEditorsPicks("SW");
}
function getSE(){
changeBackgroundShades();
changeThisToRed($('tdSE'));
$('menu_block1').style.display = 'none';
$('openMap').style.display = 'block';
plotCoordinates = [];
$('mapImage').src = "/Media/MediaManager/OhioMagRedesign/RegionMapSE.gif";
generateEditorsPicks("SE");
}
//Dynamically Calls Event Count - convert to serverside code?
function changeThisToRed(node){
node.style.background = 'url(/Media/MediaManager/OhioMagRedesign/tdRedBack.gif)';
}
preLoadFeatureImages();
function getEventCount(){
var date = new Date();
var timestamp = date.getTime();
new Ajax.Request("/WhenYouGoScripts/eventsCount.asp", {
method: 'get',
onSuccess: function(transport) {
$("EventCount").innerHTML = "1 of " + transport.responseText + " events ";
}, onFailure: function(transport) {
$("Restaurants").innerHTML = '
| No Restaurants within 20 miles... |
Find More>> |