//the word "site" should be replaced with the actual DNS of the site
var IBS_Sitekey = 'cin';

if (typeof IBSsite == 'undefined')  IBSsite = new Object();
	IBSsite.siteKey = 'cin';
	IBSsite.city = 'Cincinnati';
	IBSsite.state = 'Ohio';
	IBSsite.stateAbv = 'OH';
	IBSsite.siteName = "www.channelcincinnati.com";


//Validate that the browser can open windows
WindowEnabled =  1;
WindowEnabled = ((navigator.userAgent.indexOf("MSIE 4.0") >= 1))? 0 : 1;
if (document.images)	{

// PRELOAD

	// ON VERSIONS
	rhinocamon = new Image(112, 19);          
	rhinocamon.src = "http://www.channelcincinnati.com/images/rhino_cam/nav_button_rhinocam_on.gif";
	newson = new Image(112, 19);          
	newson.src = "http://www.channelcincinnati.com/images/structures/menus/button_news_on.gif"; 
	weatheron = new Image(112, 19);          
	weatheron.src = "http://www.channelcincinnati.com/images/structures/menus/button_weather_on.gif";
	sportson = new Image(112, 19);          
	sportson.src = "http://www.channelcincinnati.com/images/structures/menus/button_sports_on.gif";  
	politicson = new Image(112, 19);          
	politicson.src = "http://www.channelcincinnati.com/images/structures/menus/button_commitment2001_on.gif";  
	feedback5on = new Image(112, 19);          
	feedback5on.src = "http://www.channelcincinnati.com/images/structures/menus/button_feedback5_on.gif"; 
	entertainmenton = new Image(112, 19);          
	entertainmenton.src = "http://www.channelcincinnati.com/images/structures/menus/button_entertainment_on.gif";
	technologyon = new Image(112, 19);          
	technologyon.src = "http://www.channelcincinnati.com/images/structures/menus/button_technology_on.gif"; 
	healthon = new Image(112, 19);          
	healthon.src = "http://www.channelcincinnati.com/images/structures/menus/button_health_on.gif";
	ibsnetworkon = new Image(112, 46);          
	ibsnetworkon.src = "http://www.channelcincinnati.com/images/structures/menus/button_ibsnetwork_on.gif"; 
	tvlistingson = new Image(112, 19);          
	tvlistingson.src = "http://www.channelcincinnati.com/images/structures/menus/button_tvlistings_on.gif"; 
	wlwttvon = new Image(112, 19);          
	wlwttvon.src = "http://www.channelcincinnati.com/images/structures/menus/button_wlwt-tv_on.gif"; 
	businesson = new Image(112, 19);          
	businesson.src = "http://www.channelcincinnati.com/images/structures/menus/button_business_on.gif"; 
	employmenton = new Image(112, 22);          
	employmenton.src = "http://www.channelcincinnati.com/images/structures/menus/button_employment_on.gif"; 
	olympicson = new Image(112, 19);          
	olympicson.src = "http://www.channelcincinnati.com/images/structures/menus/button_olympics_on.gif";
	fiveforthefamilyon = new Image(112, 19);          
	fiveforthefamilyon.src = "http://www.channelcincinnati.com/images/structures/menus/button_5forthefamily_on.gif"; 
	election2000on = new Image(112, 19);
	election2000on.src = "http://www.channelcincinnati.com/images/structures/menus/button_commitment2000_on.gif";  
	livecamson = new Image(112, 19);
	livecamson.src = "http://www.channelcincinnati.com/images/structures/menus/button_livecams_on.gif";  
	holidayson = new Image(112, 19);
	holidayson.src = "http://www.channelcincinnati.com/images/structures/menus/button_holidays_on.gif";
	educationon = new Image(112, 19);
	educationon.src = "http://www.channelcincinnati.com/images/structures/menus/button_education_on.gif";
	take5on = new Image(112, 19);
	take5on.src = "http://www.channelcincinnati.com/images/structures/menus/button_take5_on.gif";
	
	// OFF VERSIONS
	rhinocamoff = new Image(112, 19);          
	rhinocamoff.src = "http://www.channelcincinnati.com/images/rhino_cam/nav_button_rhinocam_off.gif";
	newsoff = new Image(112, 19);          
	newsoff.src = "http://www.channelcincinnati.com/images/structures/menus/button_news_off.gif"; 
	weatheroff = new Image(112, 19);          
	weatheroff.src = "http://www.channelcincinnati.com/images/structures/menus/button_weather_off.gif";
	sportsoff = new Image(112, 19);          
	sportsoff.src = "http://www.channelcincinnati.com/images/structures/menus/button_sports_off.gif";  
	politicsoff = new Image(112, 19);          
	politicsoff.src = "http://www.channelcincinnati.com/images/structures/menus/button_commitment2001_off.gif";  
	feedback5off = new Image(112, 19);          
	feedback5off.src = "http://www.channelcincinnati.com/images/structures/menus/button_feedback5_off.gif"; 
	entertainmentoff = new Image(112, 19);          
	entertainmentoff.src = "http://www.channelcincinnati.com/images/structures/menus/button_entertainment_off.gif";
	technologyoff = new Image(112, 19);          
	technologyoff.src = "http://www.channelcincinnati.com/images/structures/menus/button_technology_off.gif"; 
	healthoff = new Image(112, 19);          
	healthoff.src = "http://www.channelcincinnati.com/images/structures/menus/button_health_off.gif";
	ibsnetworkoff = new Image(112, 46);          
	ibsnetworkoff.src = "http://www.channelcincinnati.com/images/structures/menus/button_ibsnetwork_off.gif"; 
	tvlistingsoff = new Image(112, 19);          
	tvlistingsoff.src = "http://www.channelcincinnati.com/images/structures/menus/button_tvlistings_off.gif"; 
	wlwttvoff = new Image(112, 19);          
	wlwttvoff.src = "http://www.channelcincinnati.com/images/structures/menus/button_wlwt-tv_off.gif"; 
	businessoff = new Image(112, 19);          
	businessoff.src = "http://www.channelcincinnati.com/images/structures/menus/button_business_off.gif"; 
	employmentoff = new Image(112, 22);          
	employmentoff.src = "http://www.channelcincinnati.com/images/structures/menus/button_employment_off.gif"; 
	olympicsoff = new Image(112, 19);          
	olympicsoff.src = "http://www.channelcincinnati.com/images/structures/menus/button_olympics_off.gif";
	fiveforthefamilyoff = new Image(112, 19);          
	fiveforthefamilyoff.src = "http://www.channelcincinnati.com/images/structures/menus/button_5forthefamily_off.gif";
	election2000off = new Image(112, 19);
	election2000off.src = "http://www.channelcincinnati.com/images/structures/menus/button_commitment2000_off.gif"; 
	livecamsoff = new Image(112, 19);
	livecamsoff.src = "http://www.channelcincinnati.com/images/structures/menus/button_livecams_off.gif"; 
	holidaysoff = new Image(112, 19);
	holidaysoff.src = "http://www.channelcincinnati.com/images/structures/menus/button_holidays_off.gif";
	educationoff = new Image(112, 19);
	educationoff.src = "http://www.channelcincinnati.com/images/structures/menus/button_education_off.gif";
	take5off = new Image(112, 19);
	take5off.src = "http://www.channelcincinnati.com/images/structures/menus/button_take5_off.gif";
}

function Highlight(imgName)
	// HIGHLIGHT
         {
         if (document.images) 
                 {
                 imgOn = eval(imgName + "on.src");
                 document[imgName].src = imgOn;
                 }
         }
		 
function Unhighlight(imgName)
	 // UNHIGHLIGHT
         {
         if (document.images) 
                 {
                 imgOff = eval(imgName + "off.src");
                 document[imgName].src = imgOff;
                 }
         }
 

function popUp(URL, ATTRIBUTES)
	//OPEN WINDOW JS
	// takes all attributes in direct format
{
	DEF_ATTRIB = 'width=200,height=200,top=100,left=100,resizable=yes,scrollbars';
	if (ATTRIBUTES == null) {
	ATTRIBUTES = DEF_ATTRIB;
	}
	if (WindowEnabled){
	child = window.open(URL, "spawn", ATTRIBUTES);
	child.opener = self;
	if	(navigator.appName == 'Microsoft Internet Explorer' && parseInt(navigator.appVersion) == '2') {
	// Do Nothing
	} else {
		child.focus();
	}
	} else {
		document.location = URL;
	}
}

function emailafriend(URL, ATTRIBUTES)
	//OPEN WINDOW JS
	// takes all attributes in direct format
{
	ATTRIBUTES = 'width=450,height=225,top=100,left=100,resizable=yes,scrollbars';
	MYURL = "http://weather.channelcincinnati.com/services/toafriend/index.cfm?page=" + window.location;
	
	if (WindowEnabled){
		child = window.open(MYURL, "spawn", ATTRIBUTES);
		child.opener = self;
		if	(navigator.appName == 'Microsoft Internet Explorer' && parseInt(navigator.appVersion) == '2') {
			// Do Nothing
		} else {
			child.focus();
		}
	} else {
		document.location = MYURL;
	}
}

		
function health_archive(day)
	//Function closes Health Daily tips window and redirects user to archive
	{
			window.opener.location=("/sh/health/dailytips/"+day+"-archive.html");
			window.close();
	}	

// Function to open videoblast windows //
function openVideo(sUrl, sName, sOptions) {
	window.open(sUrl,sName,sOptions+',scrollbars=no,resizable=1,top=50,left=50,width=780,height=504');
}

function popUpOlympic(fileName) {
                // open new window
                newOlympicWin = window.open(fileName, 'newOlympicWin', 'status=1,toolbar=no,top=50,left=50,width=610,height=400');
                
}
