//the word "site" should be replaced with the actual DNS of the site

// IBS Site Variables

var IBS_Sitekey = 'sand';



if (typeof IBSsite == 'undefined')  IBSsite = new Object();

	IBSsite.siteKey = 'sand';

	IBSsite.city = 'San Diego';

	IBSsite.state = 'California';

	IBSsite.stateAbv = 'CA';

	IBSsite.siteName = "www.thesandiegochannel.com";





//Validate that the browser can open windows

WindowEnabled =  1;

WindowEnabled = ((navigator.userAgent.indexOf("MSIE 4.0") >= 1))? 0 : 1;

if (document.images)	{



// PRELOAD



}



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.thesandiegochannel.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 jumpTo(form) {



        var myindex=form.menu.selectedIndex

        window.location=form.menu.options[myindex].value;

}

