
$(document).ready(function(){


initFX();




initHPslide();

});/*ready*/



function initFX(){

var fadespeedFast = 'fast';
var fadespeedNorm = 'normal';
var fadespeedSlow = 'slow';

if ($('html').hasClass('ie7') == true || $('html').hasClass('ie8') == true  ) {
	fadespeedFast = 0; fadespeedNorm = 0;var fadespeedSlow =0;}

/* hover navint */	
$('a.navintlink').hover(function(){
	$(this).find('.arrover').fadeIn(fadespeedFast, function(){
		$(this).parent().find('.arrdown').fadeOut(fadespeedFast);
	});
},function(){
	$(this).find('.arrdown').fadeIn(fadespeedFast, function(){
		$(this).parent().find('.arrover').fadeOut(fadespeedFast); 
	});
});


/* hover sideright */
$('.sideright ul li').each(function(){
	var orcol = $(this).find('h2').css('color');
	var orshad = $(this).find('h2').css('textShadow');
	var nucol = '#000';
	var nushad = '0 0 0 #000000, 1px 1px 4px #FFFFFF';
	$(this).hover(function(){
		$(this).find('.maskr').fadeOut(fadespeedNorm);
		$(this).find('h2').animate({'color':nucol},200).css('textShadow',nushad);
		
	},function(){
		$(this).find('.maskr').fadeIn(fadespeedSlow);
		$(this).find('h2').animate({'color':orcol},200).css('textShadow',orshad)
	});
	
});
	
	
};/**/











function initHPslide() {
		if( $('.bigslide ul li').length > 0){											 
$('.bigslide ul').cycle({
    after:         null,   // transition callback (scope set to element that was shown) 
    before:        null,   // transition callback (scope set to element to be shown) 
    delay:         1000,      // additional delay (in ms) for first transition (hint: can be negative) 
    fit:           1,      // force slides to fit container 
    fx:           'fade',  // name of transition function 
    height:       'auto',  // container height 
    metaAttr:     'cycle', // data- attribute that holds the option data for the slideshow 
    next:          null,   // id of element to use as click trigger for next slide 
    pause:         1,      // true to enable "pause on hover" 
    prev:          null,   // id of element to use as click trigger for previous slide 
    timeout:       5000,   // milliseconds between slide transitions (0 to disable auto advance) 
    speed:         1400,   // speed of the transition (any valid fx speed value) 
    slideExpr:     null,   // expression for selecting slides (if something other than all children is required) 
    sync:          1,      // true if in/out transitions should occur simultaneously 
 
    // the following options let you create transitions other than fade 
    cssBefore:     {},     // properties that define the initial state of the slide before transitioning in 
    cssAfter:      {},     // properties that defined the state of the slide after transitioning out 
    animIn:        {},     // properties that define how the slide animates in 
    animOut:       {}      // properties that define how the slide animates out 	
});

	
	
	}
}; /**/
