 var $s = jQuery.noConflict();
 
$s(document).ready(function(){ 
	 $s.fn.supersized.options = {  
		startwidth: 950,  
		startheight: 731,
		vertical_center: 0,
		slideshow: 0,
		navigation: 0,
		transition: 0,
		pause_hover: 0,
		slide_counter: 0,
		slide_captions: 0,
		slide_interval: 3000  
};
// $s('#supersize').supersized();
 $s('#supersize').hide();
 $s('#supersize').fadeIn(3000);
 
$s('#content_scroll').hide();
//$s('#content_control').hide();
$s('#control1').hide();
$s('#control2').hide();
$s('#contact_form').hide();


//alert("now")
$s('#content_scroll').fadeIn(5000);
//$s('#content_control').fadeIn(5000);
$s('#control1').fadeIn(5000);
$s('#control2').fadeIn(5000);
$s('#contact_form').fadeIn(5000);

  $s(".colorbox1").colorbox({width:"525px", height:"475px", iframe:true, opacity:0.6});
  $s(".colorbox2").colorbox({opacity:0.6});
  
 $s('.cgf_slideShow1').hide();
 $s('.cgf_slideShow1').fadeIn(5000);
 $s('.cgf_slideShow1').cycle();

   
 $s('#menu_head').click(function() {
 $s('#menu_holder').slideToggle('slow');   
});
});


 var $e = jQuery.noConflict();

function BGOn(id){
$e("#bg"+id).removeClass().addClass("menu_bg_on");
}
function BGOff(id){
$e("#bg"+id).removeClass().addClass("menu_bg_off");		
}

function MenuLink(url)
{
window.location = url;
}


 var $b = jQuery.noConflict();

$b(function()
{
	$b('#content_scroll').jScrollPane({animateTo:true});
	
	
	  $b('.scroll_content').bind(
                    'click',
                    function()
                    {
                        $b('#content_scroll')[0].scrollBy(parseInt($b(this).attr('rel')));
                        return false;
                    }
                );
                
});
