(function($){
	var popWidth = 525;
        var popHeight = 380;

	$(document).ready(function(){
		$('a.popstd').colorbox({
			preloading: false,
			slideshow: false,
			innerWidth: function(){
					var w = $(this).attr('popupWidth');
					if(w) {
						return w;
					} else {
						return popWidth;
					}
				}
			,
			innerHeight: function(){
				var h = $(this).attr('popupHeight');
				if(h) {
					return h;
				} else {
					return popHeight;
				}
			}
		 });
		

		$('a.popframe').colorbox({
			iframe: true,
			preloading: false,
			slideshow: false,
			innerWidth: function(){
			var w = $(this).attr('popupWidth');
			if(w) {
				return w;
			} else {
				return popWidth;
			}
		}
		,
		innerHeight: function(){
			var h = $(this).attr('popupHeight');
			if(h) {
				return h;
			} else {
				return popHeight;
			}
		}
		});

		
		$('a.popinline').colorbox({
			inline: true,
			preloading: false,
			slideshow: false,
			innerWidth: popWidth,
			innerHeight: popHeight
		 });

	});


})(jQuery);
