Cufon.replace('.hdp h1,#ns b,.nvh h4 strong,#f1 h3, #ss a,.c1 h2');

$(document).ready(function() {
    $('html').addClass('j');
  //    $(function() { $('#cs .g4').lightBox(); });
    $('a[rel]').click(function () {
        var linkTarget = $(this).attr('rel');
        if (linkTarget == 'external') {
            linkTarget = '_blank'
        };
        $(this).attr({'target':linkTarget});
    });
//	$("label").overlabel();
	
    $('.img.m3 p').animate({opacity: 0.4, height: 'hide'},0);
    $(".img.m3 li").hover(function(){
		$(this).children("p").slideDown('fast').fadeTo('fast',1.0);
	}
	,function(){
		$(this).children("p").animate({opacity: 0.4}).slideUp('slow');
    });

	/*	 $("#pagesearch").autocomplete({
		    serviceUrl:"index.php?eID=pmkisac&id=285&sw=0&ml=2&mc=20&wc=1",
		    minChars:2,
		    maxHeight:400,
		    autoSubmit: 1,
		//    spinner: 1,
		    width:184,
		    delimiter: " "

		    // callback function:
		   // onSelect: function(value, data){
		   //     alert("You selected: " + value + ", " + data);
		   // }
		});
	*/
});


    (function() {
      var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
      ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
      (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ga);
    })();

