
$(document).ready(function(){
	$('.page-node-126 #hblistmod.container').pajinate({items_per_page : 12});
	
	$('.print-page').attr('onclick','');
	$('.print-page').click(function() {							
	  window.open(this.href,'Print','scrollbars=yes,width=612,height=700');
	  return false;
	});
	
	$('.print-mail').attr('onclick','');
	$('.print-mail').click(function() {							
	  window.open(this.href,'Print','scrollbars=yes,width=812,height=650');
	  return false;
	});
	
	//$('#nice-menu-1>.active-trail').css('background','url("/images/hoverOn.gif") no-repeat center bottom');
	$('#nice-menu-1>.active-trail>a').css('background','url("/images/hoverOn.gif") no-repeat center bottom');
	$('#nice-menu-1>.active-trail>a').css('height','30px');
   
		 	
	$('#search-block-form #edit-search-block-form--2').before('<img src="/images/searchlabel.gif" />');
	
	$(".section-company #theme").attr('id','smtheme');
	$('.section-company #smtheme .img img').attr('src','/media/images/themes/t-company-sm.jpg');
	$(".page-node-2 #smtheme").attr('id','theme');
	$('.page-node-2 #theme .img img').attr('src','/media/images/themes/theme-company-lg.jpg');
	
	$(".section-tests-and-reagents #theme").attr('id','smtheme');
	$('.section-tests-and-reagents #smtheme .img img').attr('src','/media/images/themes/theme-tests-sm.jpg');
	$(".page-node-6 #smtheme").attr('id','theme');
	$('.page-node-6 #theme .img img').attr('src','/media/images/themes/theme%2Dtests%2Dlg.jpg');
	
	$(".section-systems-and-software #theme").attr('id','smtheme');
	$('.section-systems-and-software #smtheme .img img').attr('src','/media/images/themes/theme-systems-sm.jpg');
	$(".page-node-8 #smtheme").attr('id','theme');
	$('.page-node-8 #theme .img img').attr('src','/media/images/themes/theme-systems-lg.jpg');
	
	$(".section-resources-and-support #theme").attr('id','smtheme');
	$('.section-resources-and-support #smtheme .img img').attr('src','/media/images/themes/theme-resources-sm.jpg');
	$(".page-node-10 #smtheme").attr('id','theme');
	$('.page-node-10 #theme .img img').attr('src','/media/images/themes/theme-resources-lg.jpg');
	
	$(".section-product-catalog #theme").attr('id','smtheme');
	$('.section-product-catalog #smtheme .img img').attr('src','/media/images/themes/theme-catalog-sm.jpg');
	$(".page-node-13 #smtheme").attr('id','theme');
	$('.page-node-13 #theme .img img').attr('src','/media/images/themes/theme-catalog-lg.jpg');
	
	
	$('.section-sitemap .site-map-menus .content > ul').append('<div id="oleft"></div><div id="oright"></div>');
	for(i=0;i<2;i++)
    {
	  var ii = i;
	  $('.section-sitemap .site-map-menus .content > ul > li').eq(i-ii).css('padding-bottom','20px');
	  $('.section-sitemap .site-map-menus .content > ul #oleft').append($('.section-sitemap .site-map-menus .content > ul > li').eq(i-ii));
    }
	for(j=0;j<5;j++)
    { 
      var jj = j;	
	  $('.section-sitemap .site-map-menus .content > ul > li').eq(j-jj).css('padding-bottom','20px');
	  $('.section-sitemap .site-map-menus .content > ul #oright').append($('.section-sitemap .site-map-menus .content > ul > li').eq(j-jj));
    }
	
	$('#navigation #nice-menu-1 .menu-407 a').attr('href','http://phx.corporate-ir.net/phoenix.zhtml?c=122488&p=irol-irhome');
		
	
	//$("a.iframe").fancybox({ 'frameWidth': 640, 'frameHeight': 360, 'padding': 0, 
	//'hideOnContentClick': false,
	//'overlayOpacity': 0.5,
	//'callbackOnClose': function() { 
	//$("#fancy_content").empty();}
	//});
});

