// JavaScript Document

/**
 *javascript codes for the RISE Network website
 *created by solaandrews
 *deefrent communications
 */
 
 $(document).ready(function(){
							
			
					var pageWidth = window.innerWidth;
					
					if (typeof pageWidth != 'number'){
						if (document.compatMode == 'CSS1Compat'){
							pageWidth = document.documentElement.clientWidth;
						} else {
							pageWidth = document.body.clientWidth;
							
						}
					}
					
					if (pageWidth < 1200){
						solaWidth = pageWidth;
					}else{
						  solaWidth = pageWidth;
					}
					
					var pagesBg = Math.abs(Math.round((pageWidth - 1200)/2));
					
					$('#cocktail-jquery-slide img').each(function(){$(this).css({width:1200,height:450})});
					$('#cocktail-jquery-slide').css({left:pagesBg});
					
					
		//dropdown menu js script
		
		$('.drop').hover(function(){
							 $(this).parent().find('ul.subnav').slideDown('fast').show();
							
							 $(this).parent().hover(function(){},function(){
								$(this).parent().find('ul.subnav').slideUp('slow');});
						
							  });
		
		
		$('#slider').nivoSlider();
							
							
			
							
							});
