jQuery(document).ready(function(){

// resize images to fit content area
	jQuery('.shashin_thumb a img').addClass('resize');
//	$('.shashin_thumb a img').css('width', '120px');

	jQuery(".resize").resize({
//    	scale: 0.5, // 0.5 = 50%
		maxWidth: 120
	});


$('.tubepress_thumb:odd').addClass('right');
	
}); //stop jquery


// for nav dropdown

sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("li");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);



 
//   SIFR     //////////////////////////



/*****************************************************************************
It is adviced to place the sIFR JavaScript calls in this file, keeping it
separate from the `sifr.js` file. That way, you can easily swap the `sifr.js`
file for a new version, while keeping the configuration.

You must load this file *after* loading `sifr.js`.

That said, you're of course free to merge the JavaScript files. Just make sure
the copyright statement in `sifr.js` is kept intact.
*****************************************************************************/

var eurostile = {src: '/wp-content/themes/Nashville_Celtics/flash/eurostile.swf' };

sIFR.activate(eurostile);


    var eurostile = {
      src: '/wp-content/themes/Nashville_Celtics/flash/eurostile.swf'
      ,ratios: [7,1.32,11,1.31,13,1.24,14,1.25,19,1.23,27,1.2,34,1.19,42,1.18,47,1.17,48,1.18,69,1.17,74,1.16,75,1.17,1.16]
    };

    sIFR.domains = ['www.nashvilleceltics.com'];
    sIFR.useStyleCheck = true;

    sIFR.replace(eurostile, {selector: '.item_day', wmode: 'transparent'
		,css: {
    	    '.sIFR-root': { 'font-size': '4em', 'color': '#f5efde', 'text-transform': 'uppercase'}
		   ,'a': { 'text-decoration': 'none', 'color': '#f5efde' }
	       ,'a:link': { 'text-decoration': 'none', 'color': '#f5efde' }
    	   ,'a:hover': { 'text-decoration': 'none', 'color': '#f5efde' }
	      }
	});

    sIFR.replace(eurostile, {selector: '.item_month', wmode: 'transparent'
		,css: {
    	    '.sIFR-root': { 'font-size': '2.5em', 'color': '#f5efde', 'text-transform': 'uppercase'}
		   ,'a': { 'text-decoration': 'none', 'color': '#f5efde' }
	       ,'a:link': { 'text-decoration': 'none', 'color': '#f5efde' }
    	   ,'a:hover': { 'text-decoration': 'none', 'color': '#f5efde' }
	      }
	});


    sIFR.replace(eurostile, {selector: 'h2', wmode: 'transparent'
      ,css: {
        '.sIFR-root': { 'font-size': '1.3em', 'color': '#e8c872' }
      }
        ,filters: {
        Glow: {
          knockout: false
          ,distance: 0
          ,color: '#e8c872'
          ,strength: .3
        }
      }

    });

    sIFR.replace(eurostile, {selector: 'h1.news_title', wmode: 'transparent'
		,css: {
    	    '.sIFR-root': { 'font-size': '2.5em', 'color': '#FFFFFF'}
		   ,'a': { 'text-decoration': 'none', 'color': '#FFFFFF' }
	       ,'a:link': { 'text-decoration': 'none', 'color': '#FFFFFF' }
    	   ,'a:hover': { 'text-decoration': 'none', 'color': '#FFFFFF' }
	      }
	});


 
//  STOP SIFR     //////////////////////////




