function qLinks(){
	$("a.qmenu").hoverIntent(function(){
		$(this).children('span.bg').animate({height:"96px"});
		$(this).children('span.links').animate({top:"60px"});
	},function(){
		$(this).children('span.links').animate({top:"5px"},{duration:500});
		$(this).children('span.bg').animate({height:"0"},{duration:1000});
		
	});
}

function leftMenus() {
  $('#menu ul').hide();
  $('#menu ul:first').hide();
  $('#menu li a:first').addClass("active");
  $('#menu li a').click(
    function() {
      var checkElement = $(this).next();
      if((checkElement.is('ul')) && (checkElement.is(':visible'))) {
        return false;
        }
		
      if((checkElement.is('ul')) && (!checkElement.is(':visible'))) {
        $('#menu ul:visible').slideUp('normal');
        checkElement.slideDown('normal');
		$('#menu li a').removeClass('active'); // Remove active class from all links
		$(this).addClass("active");
        return false;
        }
      }
    );
  }
 
$(document).ready(function() { leftMenus(); qLinks(); 
var config = {    
     sensitivity: 7, // number = sensitivity threshold (must be 1 or higher)    
     interval: 50, // number = milliseconds for onMouseOver polling interval    
     over: function(){}, // function = onMouseOver callback (REQUIRED)    
     timeout: 0, // number = milliseconds delay before onMouseOut    
     out: function(){} // function = onMouseOut callback (REQUIRED)    
};
});

/**** OpenX Home Page Banner Code ****/
/** adbanner('source','width','height','zoneid',refresh); **/
function adbanner(ox1,ox2,ox3,ox4,ox5)
{
document.write('<iframe id="ab2f256a" name="ab2f256a" src="http://ads.izmocars.com/www/delivery/afr.php?refresh='+ox5+'&amp;zoneid='+ox4+'&amp;source='+ox1+'&amp;cb=INSERT_RANDOM_NUMBER_HERE" framespacing="0" frameborder="no" scrolling="no" width="'+ox2+'" height="'+ox3+'" allowtransparency="true"><a href="http://ads.izmocars.com/www/delivery/ck.php?n="aef32349"&amp;cb=INSERT_RANDOM_NUMBER_HERE" target="_blank"><img src="http://ads.izmocars.com/www/delivery/avw.php?zoneid='+ox4+'&amp;source='+ox1+'&amp;cb=INSERT_RANDOM_NUMBER_HERE&amp;n=aef32349" border="0" alt="" /></a></iframe>');
}	

function embedflashHeader(d1,d2,d3,d4)
{
//alert(d4)
document.getElementById('flashOut').innerHTML = 
'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" id="FlashObject1" width="'+d2+'" height="'+d3+'"><param name="movie" value="'+d1+'index.swf?toolkitPath='+d4+'research/virtual-brochure.jsp&amp;Server='+d1+'"><param name="quality" value="high"><param name="menu" value="false"><param name="id" value="101"><param name="wmode" value="transparent"><embed wmode="transparent" allowScriptAccess="always" src="'+d1+'index.swf?toolkitPath='+d4+'research/virtual-brochure.jsp&amp;Server='+d1+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="FlashObject1" width="'+d2+'" height="'+d3+'"><param name="allowScriptAccess" value="always" /> </embed></object>' ;
}

/******************* Visual SEO More Info *****************************/
function SEOmoreinfo()
{
	document.getElementById("SEOcontent").style.display="block";
	document.getElementById("moreinfoSEOmo").style.display="block";
	document.getElementById("moreinfoSEO").style.display="none";
}
function SEOmoreinfohide()
{
	document.getElementById("SEOcontent").style.display="none";
	document.getElementById("moreinfoSEO").style.display="block";
	document.getElementById("moreinfoSEOmo").style.display="none";
}
/*********************** Ends ******************************/