jQuery(document).ready(function(){
//Text resize
function resizeText(size) 
{
  jQuery('.adjustable-font').css('font-size', size+'px');
  return false;
}

//Search
jQuery(function() {
   jQuery("#search-field").focus(function() {
       jQuery(this).attr('value','');
   });
});

//Popups
	var profiles =
    // if more than one pop-up on a site has the same size you can create a profile
    // use the profile name in the REL of the link
    // in the below example, the REL would be "consent"
	{
		consent:
		{
			height:600,
			width:600,
			status:1
		}
	};

$(function()
{
	if($(".popupwindow").length>0){
		$(".popupwindow").popupwindow(profiles);
	}
});

//Ratings
//Uncomment lines below to activate rating
  // jQuery("div.rating-container").each(function(){
  //  var id  = jQuery(this).find(".articleRater").attr("id");
  //  var cur = jQuery(this).find(".rating").attr("title");
  //  var max = '5';
  //  var incrementVal = '.5';
  //  jQuery(this).find(".rating").rating("/content/rate.html", {maxvalue:max, increment:incrementVal, curvalue:cur, idvalue:id} );
  //})

  });
