function responsitivetables(){
	$('table.responsive').wrap('<div class="div-responsitive-tables">');
}
function responsitivetop(){
	if( $('#mobile').css('display')!='none') {
		var mmw = $('.navigation').width() - $('.v2-share').width() - $('.v2-cart').width()-20;/*- $('.v2-exit').width();*/
		$('#mega-menu').width( mmw );
		//console.log(mmw);
		$('.mflr').width( (mmw - $('#search').width() - 10)/$('.mflr').length );
		if($('.v2-container').width()>1000){
			$('.v2-phone').css('margin-left',$('.v2-container').width()*0.0);
			$('.v2-hc').css('margin-right',$('.v2-container').width()*0.05);
			
		}
		$('#mega-menu>.menu-item').each(function(){
			$(this).width( parseInt( $(this).width() - 1 ) );
		});
		//$('.v2-home-news-item').height($('.v2-home-news-item').width());
		//$('.v2-home-news-item a').height($('.v2-home-news-item a').width());
	}
}
$( document ).ready(function() {  
	responsitivetop();
	responsitivetables();
	if( $('#mobile').css('display')!='none') {
		if($('.rightbanner1').length){
			$('.v2-page-content').css('margin-right', '250px');
		}
	}
 });
 
window.onresize = function(event) {
    responsitivetop();
};