function changeloc()
{
	$("div.loccontent").hide();
	$("div#"+document.getElementById('locations').value+"_content").fadeIn("slow"); 
	 
	 
} 
$(document).ready(function() { 
 

$('div.whatsrunning').hover(function(){

$(this).find('p').css("color","#00b1da");
$(this).find('img.wrarrow').attr("src","images/city_right_arrow_ms.png"); 
},function(){

$(this).find('p').css("color","#4D4D4D");
$(this).find('img.wrarrow').attr("src","images/city_right_arrow.png"); 
});

changeloc();
var wd=$(document).width(); 
wd=wd-1030;
wd=wd/2;
wd=wd-167; 
$('div#bot_left_img').css('left',wd+'px');

/*news mouse over*/
$('div.newsdiv').hover(function(){
	$(this).find('div.newscontent').css('color','#00b1da');
	$(this).find('img.newsarrow').attr('src','images/city_right_arrow_ms.png');
	},function(){
		
	$(this).find('div.newscontent').css('color','#4D4D4D');
	$(this).find('img.newsarrow').attr('src','images/city_right_arrow.png');
		
		});
	/*city selector*/	
$('div.cityselector').hover(function(){
	$(this).css('background-image','url(images/city_select_img_ms.png)');
	 
	},function(){
		
$(this).css('background-image','url(images/city_select_img.png)');
	 
		
		});		
		
		
		

/*arrows*/
$('img.imgswapper').hover(function(){
		var alt_src= $(this).attr('src');
		$(this).attr('src',$(this).attr('alt'));
		$(this).attr('alt',alt_src);
		
	},function(){
		
		var alt_src= $(this).attr('src');
		$(this).attr('src',$(this).attr('alt'));
		$(this).attr('alt',alt_src);
		
		});


		$('img.imgswrapperleft').hover(function(){
		var alt_src= $(this).attr('src');
		$(this).attr('src',$(this).attr('alt'));
		$(this).attr('alt',alt_src);
		
	},function(){
		
		var alt_src= $(this).attr('src');
		$(this).attr('src',$(this).attr('alt'));
		$(this).attr('alt',alt_src);
		
		});
/*grayscaler*/
 
$('img.hover').hover(function(){
	
	var temp=$(this).attr('src');
	$(this).attr('src',$(this).attr('alt-src'));
	$(this).attr('alt-src',temp);
	
	},function(){
		
		var temp=$(this).attr('src');
	$(this).attr('src',$(this).attr('alt-src'));
	$(this).attr('alt-src',temp);
		
		});

 /*grayscaler*/
/*large button*/

 $("img#Image106").click(function(){ $("div.lb_show").fadeOut("fast");
 $('#bannerslider').cycle({

    fx:     'fade', 
		timeout: 7000,
		delay: -7000 
	

}); 
 
 });
 
 
 $("img.largebutton").click(function(){

stopvideo();
if($(this).attr("id")=='why')
	 {
			$("div.lb_show").css("left","380px");
	 }
	 else if($(this).attr("id")=='how')
	 {
			$("div.lb_show").css("left","530px");
			
	 }else
$("div.lb_show").css("left","0px");


	 
	 $("div.lb_hang").hide(); 
	 $("div.lb_content").hide();
	 $("div.lb_show").hide();
	 var buttonid=$(this).attr('id'); 
	 $("div#lb_"+buttonid+"_content").show();
	 $("div#lb_"+buttonid+"_hang").show();
	 $("div.lb_show").fadeIn("slow");




	 });
 /*large button*/
 
try {
		$("#locations").msDropDown({mainCSS:'dd2'});
		//alert($.msDropDown.version);
		//$.msDropDown.create("body select");
		$("#ver").html($.msDropDown.version);
		} catch(e) {
			alert("Error: "+e.message);
		}
});


function stopvideo()
{$('#bannerslider').cycle({

    fx:     'fade', 
		timeout: 0,
		delay: -7000 
	

}); 
}
/*combo box*/
$.fn.cycle.defaults.speed   = 900; 
$.fn.cycle.defaults.timeout = 6000; 
$(function() {


$('#bannerslider').cycle({

    fx:     'fade', 
		timeout: 4000,
		delay: -5000 
	

}); 


 $('#clientsliderall').cycle({

    fx:      'scrollHorz',

    delay:   -4000,
	next: '#next',
	prev:'#prev'

});  

  $('#clientslidera').cycle({

    fx:      'scrollHorz',

    delay:   -4000,
	next: '#next',
	prev:'#prev'

});

 $('#clientslider1').cycle({

    fx:      'scrollHorz',

    delay:   -4000,
	next: '#next',
	prev:'#prev'

});
$('#clientslider2').cycle({

    fx:      'scrollHorz',

    delay:   -4000,
	next: '#next',
	prev:'#prev'

});

$('#clientslider3').cycle({

    fx:      'scrollHorz',

    delay:   -4000,
	next: '#next',
	prev:'#prev'

});

$('#clientslider4').cycle({

    fx:      'scrollHorz',

    delay:   -4000,
	next: '#next',
	prev:'#prev'

});

$('#clientslider5').cycle({

    fx:      'scrollHorz',

    delay:   -4000,
	next: '#next',
	prev:'#prev'

});
$('#clientslider6').cycle({

    fx:      'scrollHorz',

    delay:   -4000,
	next: '#next',
	prev:'#prev'

});


$('#clientslider7').cycle({

    fx:      'scrollHorz',

    delay:   -4000,
	next: '#next',
	prev:'#prev'

});

$('#clientslider8').cycle({

    fx:      'scrollHorz',

    delay:   -4000,
	next: '#next',
	prev:'#prev'

});
$('#clientslider9').cycle({

    fx:      'scrollHorz',

    delay:   -4000,
	next: '#next',
	prev:'#prev'

});
$('#clientslider13').cycle({

    fx:      'scrollHorz',

    delay:   -4000,
	next: '#next',
	prev:'#prev'

});
$('#clientslider19').cycle({

    fx:      'scrollHorz',

    delay:   -4000,
	next: '#next',
	prev:'#prev'

});

$('#partnerslider').cycle({

    fx:      'scrollHorz',

    delay:   -1000
	 

});

/*facebox pop up*/
$("#pop1").fancybox({
				'titlePosition'		: 'inside',
				'transitionIn'		: 'none',
				'transitionOut'		: 'none'
			});
$("#pop2").fancybox({
	'titlePosition'		: 'inside',
	'transitionIn'		: 'none',
	'transitionOut'		: 'none'
});
$("#pop3").fancybox({
	'titlePosition'		: 'inside',
	'transitionIn'		: 'none',
	'transitionOut'		: 'none'
});

$("#pop4").fancybox({
	'titlePosition'		: 'inside',
	'transitionIn'		: 'none',
	'transitionOut'		: 'none'
});

$("#pop5").fancybox({
	'titlePosition'		: 'inside',
	'transitionIn'		: 'none',
	'transitionOut'		: 'none'
});

$("#pop6").fancybox({
	'titlePosition'		: 'inside',
	'transitionIn'		: 'none',
	'transitionOut'		: 'none'
});

$("#pop7").fancybox({
	'titlePosition'		: 'inside',
	'transitionIn'		: 'none',
	'transitionOut'		: 'none'
});

$("#pop8").fancybox({
	'titlePosition'		: 'inside',
	'transitionIn'		: 'none',
	'transitionOut'		: 'none'
});

$("#pop9").fancybox({
	'titlePosition'		: 'inside',
	'transitionIn'		: 'none',
	'transitionOut'		: 'none'
});

$("#pop10").fancybox({
	'titlePosition'		: 'inside',
	'transitionIn'		: 'none',
	'transitionOut'		: 'none'
});

$("#pop11").fancybox({
	'titlePosition'		: 'inside',
	'transitionIn'		: 'none',
	'transitionOut'		: 'none'
});

$("#pop12").fancybox({
	'titlePosition'		: 'inside',
	'transitionIn'		: 'none',
	'transitionOut'		: 'none'
});

$("#pop13").fancybox({
	'titlePosition'		: 'inside',
	'transitionIn'		: 'none',
	'transitionOut'		: 'none'
});

$("#pop14").fancybox({
	'titlePosition'		: 'inside',
	'transitionIn'		: 'none',
	'transitionOut'		: 'none'
});

$('#buzzsliderleft').cycle({

    fx:      'scrollHorz',
 timeout:       0,
    delay:   0,
	next: '#nextright',
	prev:'#prevleft'

});





});

