var flagImage;if(!client)var client={};function geocodeThis(){if(typeof google!='undefined'&&typeof google.loader!='undefined')
{if(google.loader.ClientLocation!=null&&google!=null)
{client.latitude=google.loader.ClientLocation.latitude;client.longitude=google.loader.ClientLocation.longitude;client.city=google.loader.ClientLocation.address.city;client.region=google.loader.ClientLocation.address.region;client.country=google.loader.ClientLocation.address.country;client.country_code=google.loader.ClientLocation.address.country_code;if(client.countrycode!=undefined){var flagImage="<img class='icon' src='/images/icons/flags/"+client.countrycode+".gif' /> ";};if($('form #country').length)
{$('#state').val(client.region);$('#country').val(client.country_code);$('#flagimage').html(flagImage);$('#latitude').val(client.latitude);$('#longitude').val(client.longitude);}}}}
$(function(){if(typeof setupZoom=='function'){setupZoom();}
$('a[href^="http://"]').addClass('external').attr('target','_blank');if($('#allModelsDropDown').length)
{$('#allModelsDropDown').change(function(){if($(this).val()=="List All Models")
{document.location.href="/spin-coater/models.php";}else{document.location.href="/spin-coater?model="+$(this).val();}});}
if($('#kudos').length)
{$('#kudos').cycle({timeout:8000,cleartype:1});}
if($('#kudospage').length)
{$('.highpraise').css('color','lightyellow');}
$('a[href$=".pdf"]').click(function(){window.open(this.href);return false;});var IE8lt=false;if(/MSIE (\d+\.\d+);/.test(navigator.userAgent)){var ieversion=new Number(RegExp.$1)
if(ieversion<8&&ieversion>=7){IE8lt=true;}else if(ieversion<7){IE8lt="kill";}}
if(IE8lt!="kill"){$('.nav-bar ul li a').mouseenter(function(){var thisGlow='.glowPink';if($(this).attr("id")=="twitter"){thisGlow='.glowTW';}else if($(this).attr("id")=="facebook"){thisGlow='.glowFB';}else if($(this).attr("id")=="linkedin"){thisGlow='.glowWhite';}else if($(this).attr("id")=="flickr"){thisGlow='.glowPink';}
$(this).parent().siblings('.followGlow').children(thisGlow).stop().animate({opacity:1},350);$(this).children('span').addClass('activeNav');});$('.nav-bar ul li a').mouseleave(function(){var thisGlow='.glowPink';if($(this).attr("id")=="twitter"){thisGlow='.glowTW';}else if($(this).attr("id")=="facebook"){thisGlow='.glowFB';}else if($(this).attr("id")=="linkedin"){thisGlow='.glowWhite';}else if($(this).attr("id")=="flickr"){thisGlow='.glowPink';}
$(this).parent().siblings('.followGlow').children(thisGlow).stop().animate({opacity:0},250);$(this).children('span').removeClass('activeNav');});$('.nav-bar ul').mousemove(function(e){var aInner=$(this).children('.followGlow');var left;if(IE8lt==true){var extraWidth=0;$(this).children().each(function(){extraWidth+=$(this).outerWidth(true);});left=(e.pageX-$(this).offset().left-extraWidth);}else{left=(e.pageX-$(this).offset().left-(aInner.width()/2));}
aInner.css({marginLeft:left});});}});function isEmpty(obj){for(var prop in obj){if(obj.hasOwnProperty(prop))
return false;}
return true;}
