/*** Asset: asset/scripts/citylana.js ***/

new Asset.javascript('/asset/scripts/citylana-ga.php',{onload:function(){citylanaGA('UA-224719-34');window.addEvent('domready',function(){$$('.ondemand a.video-popup').each(function(el){el.addEvent('click',function(){_gaq.push(['_trackEvent','ondemand','click',el.get('href')]);});el.addEvent('click',function(){_gaq.push(['glg._trackEvent','ondemand','click',el.get('href')]);});});$$('img.blog-banner').each(function(el){el.getParent().addEvent('click',function(){_gaq.push(['_trackEvent','network_ad','click',el.get('alt')]);});el.getParent().addEvent('click',function(){_gaq.push(['glg._trackEvent','network_ad','click',el.get('alt')]);});});$$('img.blog-box').each(function(el){el.getParent().addEvent('click',function(){_gaq.push(['_trackEvent','network_ad','click',el.get('alt')]);});el.getParent().addEvent('click',function(){_gaq.push(['glg._trackEvent','network_ad','click',el.get('alt')]);});});$$('a.track-whitepaper').each(function(el){el.addEvent('click',function(){_gaq.push(['_trackPageview','/whitepapers/'+el.get('href').replace(/^.+?\/([^/]+?)\.pdf/i,'$1.pdf')]);});el.addEvent('click',function(){_gaq.push(['glg._trackPageview','/whitepapers/'+el.get('href').replace(/^.+?\/([^/]+?)\.pdf/i,'$1.pdf')]);});});$$('a.track-casestudies').each(function(el){el.addEvent('click',function(){_gaq.push(['_trackPageview','/casestudies/'+el.get('href').replace(/^.+?\/([^/]+?)\.pdf/i,'$1.pdf')]);});el.addEvent('click',function(){_gaq.push(['glg._trackPageview','/casestudies/'+el.get('href').replace(/^.+?\/([^/]+?)\.pdf/i,'$1.pdf')]);});});$$('.testimonial div.v-embed').each(function(el){var file=el.getElement('embed').get('flashvars').replace(/^.*?file\=(.+?)\&.*?$/,'$1').replace(/^.+?\/([^/]+?)\.(.{3,4})/i,'$1.$2');el.addEvent('click',function(){_gaq.push(['_trackEvent','video-testimonial','click',file]);});el.addEvent('click',function(){_gaq.push(['glg._trackEvent','video-testimonial','click',file]);});});$$('a.track-odw-guides').each(function(el){var file=el.get('href').replace(/^.+?\/([^/]+?)\.(.{3,4})/i,'$1.$2');el.addEvent('click',function(){_gaq.push(['_trackEvent','odw-guides','click',file]);});el.addEvent('click',function(){_gaq.push(['glg._trackEvent','odw-guides','click',file]);});});$$('a.track-tutorial').each(function(el){var file=el.get('href').replace(/^.+?\/([^/]+?)\.(.{3,4})/i,'$1.$2');el.addEvent('click',function(){_gaq.push(['_trackEvent','tutorial','click',file]);});el.addEvent('click',function(){_gaq.push(['glg._trackEvent','tutorial','click',file]);});});$$('a.track-industry-event').each(function(el){var file=el.get('href').replace(/^.+?\/([^/]+?)\.(.{3,4})/i,'$1.$2');el.addEvent('click',function(){_gaq.push(['_trackEvent','industry-event','click',file]);});el.addEvent('click',function(){_gaq.push(['glg._trackEvent','industry-event','click',file]);});});$$('a.track-facebook').each(function(el){var file=el.get('href').replace(/^.+?\/([^/]+?)\.(.{3,4})/i,'$1.$2');el.addEvent('click',function(){_gaq.push(['_trackEvent','facebook','click',file]);});el.addEvent('click',function(){_gaq.push(['glg._trackEvent','facebook','click',file]);});});$$('a.track-twitter').each(function(el){var file=el.get('href').replace(/^.+?\/([^/]+?)\.(.{3,4})/i,'$1.$2');el.addEvent('click',function(){_gaq.push(['_trackEvent','twitter','click',file]);});el.addEvent('click',function(){_gaq.push(['glg._trackEvent','twitter','click',file]);});});$$('a.track-job-apply').each(function(el){var file=location.search.replace(/^.+?(\d+).*$/,'$1')
el.addEvent('click',function(){_gaq.push(['_trackEvent','job-apply','click',file]);});el.addEvent('click',function(){_gaq.push(['glg._trackEvent','job-apply','click',file]);});});});window.addEvent('load',function(){if($('ads')){if($('nav-links')){$$('#ads #nav-links a').each(function(el){var file=el.getElement('span').get('html');el.addEvent('click',function(){_gaq.push(['_trackEvent','banner-buttons','click',file]);});el.addEvent('click',function(){_gaq.push(['glg._trackEvent','banner-buttons','click',file]);});});}}
if($('testimonials')){$$('#testimonials #nav-previous').each(function(el){el.addEvent('click',function(){_gaq.push(['_trackEvent','sidebar-testimonial','click','left']);});el.addEvent('click',function(){_gaq.push(['glg._trackEvent','sidebar-testimonial','click','left']);});});$$('#testimonials #nav-next').each(function(el){el.addEvent('click',function(){_gaq.push(['_trackEvent','sidebar-testimonial','click','right']);});el.addEvent('click',function(){_gaq.push(['glg._trackEvent','sidebar-testimonial','click','right']);});});}
if($('enews-popup')){$('close_window').addEvent('click',function(){_gaq.push(['_setCustomVar',3,'enews_pop_up','close',1]);})
$('close_window').addEvent('click',function(){_gaq.push(['glg._setCustomVar',3,'enews_pop_up','close',1]);})
$('dont_show').addEvent('click',function(){_gaq.push(['_setCustomVar',3,'enews_pop_up','do_not_show',1]);})
$('dont_show').addEvent('click',function(){_gaq.push(['glg._setCustomVar',3,'enews_pop_up','do_not_show',1]);})
$('signup-input').addEvent('click',function(){_gaq.push(['_setCustomVar',3,'enews_pop_up','signup',1]);})
$('signup-input').addEvent('click',function(){_gaq.push(['glg._setCustomVar',3,'enews_pop_up','signup',1]);})}
$$('#share-drop ul.social-set a').each(function(el){el.addEvent('click',function(){_gaq.push(['_trackEvent','sharethis','click',el.get('html').replace(/[^a-zA-Z0-9]/g,'')]);});el.addEvent('click',function(){_gaq.push(['glg._trackEvent','sharethis','click',el.get('html').replace(/[^a-zA-Z0-9]/g,'')]);});});});}});
