
var Site = {
	start: function(){


		
//$('content_div').addEvent('mouseover', scroll.start.bind(scroll));
//$('content_div').addEvent('mouseout', scroll.stop.bind(scroll));
$$('a, input[type=image]').addEvents({'focus':function () {this.blur()}  });

$$('#cont_img img').addEvents({

	'mouseenter': function() {
		var fx = new Fx.Styles(this, {duration:200, wait:false});
		fx.start({
			'margin-top': '-50',	 
			'width': 300,
			'height': 300
		});
		},
	'mouseleave': function() {		var fx = new Fx.Styles(this, {duration:200, wait:false});
	fx.start({
			 'margin-top': '0',	
		'width': 200,
			'height': 200
		});}

});


$$('.thumb').addEvents({'click':function (event) {
	new Event(event).stop();
	moo = new Moognify(this,{})	
	}});

var myBorder = RUZEE.ShadedBorder.create({corner:5,  shadow:16, borderOpacity:0.1});
myBorder.render($$('#bottom_right, #bottom_left' ));

function makeScrollbar(content,scrollbar,handle,horizontal,ignoreMouse){
			var steps = (horizontal?(content.getSize().scrollSize.x - content.getSize().size.x):(content.getSize().scrollSize.y - content.getSize().size.y))
if (content.getSize().scrollSize.y >content.getSize().size.y) {
			$('scrollbar1').setStyle('display', 'block');
			$('content_div').setStyle('overflow', 'hidden');
	var slider = new Slider(scrollbar, handle, {	
		steps: steps,
		mode: 'vertical',
		onChange: function(step){var x = (horizontal?step:0);var y = (horizontal?0:step);content.scrollTo(x,y);}}).set(0);
				if( !(ignoreMouse) ){$$(content, scrollbar).addEvent('mousewheel', function(e){	e = new Event(e).stop();var step = slider.step - e.wheel * 30;slider.set(step);	});}
						$(document.body).addEvent('mouseleave',function(){slider.drag.stop()});
} else {$('scrollbar1').setStyle('display', 'none');}
	}
//makeScrollbar( $('content_div'), $('scrollbar1'), $('handle1') );
				


new MoosIFR("li.act ", {
		"flashsrc": "/lib/impact.swf",	
		"wmode": "transparent",
		"textcolor": "#005D86",
		"linkcolor": "#005D86"
	});
new MoosIFR("li.act_r ", {
		"flashsrc": "/lib/impact.swf",	
		"wmode": "transparent",
		"textcolor": "#005D86",
		"linkcolor": "#005D86",
		flashvars: "textalign=right"
	});
new MoosIFR("#topnav li", {
		"flashsrc": "/lib/impact.swf",
		"wmode": "transparent",
		"textcolor": "#8b9596",
		"linkcolor": "#8b9596",
        "hovercolor": "#005D86"
	});	

}

};

window.addEvent('domready', Site.start);

