/* Constants */
// i.e. = "/templates/"
//var themeRootDirectory = "";

PINT_BrowserDetection("browserupgrade.htm");

function init() {
	//var fileName  = PINT_GetCurrentFileName();
	//var directory = PINT_GetCurrentDirectory();
	//PINT_sifr();  // Remove comment to use sifr
        if (document.getElementById('h_news')) {
        var hNews = document.getElementById('h_news');
        var hNewsArrow = document.getElementById('h_news_arrow');
        hNewsArrow.onclick = function() {
           hNews.className = (hNews.className == 'hover') ? '' : 'hover';
        }}

        if (document.getElementById('h_find')) {
        var hFind = document.getElementById('h_find');
        var hFindArrow = document.getElementById('h_find_arrow');
        hFindArrow.onclick = function() {
           hFind.className = (hFind.className == 'hover') ? '' : 'hover';
        }}

        PINT.video.init();
		var photos = YAHOO.util.Dom.getElementsByClassName('cvid_photo');
		YAHOO.util.Event.on(photos, 'mouseover', cvid_showhide);
		YAHOO.util.Event.on(photos, 'mouseout', cvid_showhide);
}

function cleanup(){}

function PINT_sifr() {
	if(typeof sIFR == "function") {
		sIFR.replaceElement(named({sSelector:".bdrop h3.drop, .bdrop span.view", sFlashSrc:themeRootDirectory + "/flash/times_sc.swf", sColor:"#ccc", sWmode:"transparent"}));
	}
}

YAHOO.util.Event.onDOMReady(init);
window.onunload = cleanup;

