/* <![CDATA[ */
var $j = jQuery.noConflict();
$j('script#defer').remove();

function loadJSLibraries(libraryName){	
	document.write('<script type="text/javascript" src="/js/library/'+libraryName+'.js"><\/script>');
}

document.observe('dom:loaded',function(W3CEvent) {
    
    //locate all the anchor tags with the popup class in the document
    var popups = $$('a.popup');	
    for(var i=0 ; i<popups.length ; i++ ) {
		
        //add a click event listener to each anchor
        Event.observe(popups[i],'click',function(W3CEvent) {
			//default pop-up size
			var w = 400 , h = 400; 
			//customizing pop-ups using rel attribute
			if(this.rel != ''){
				var str = this.rel;
				var pattern = /x/i;
				result = str.split(pattern);
				w = result[0];
				h = result[1];
			}
            //open the window using the href attribute
			window.open(this.href, '', 'width='+w+',scrollbars=yes,height='+h);
			
            //cancel the default event
            Event.stop(W3CEvent);
        });
    }
 });

//loadJSLibraries('combo-effect');
//loadJSLibraries('fabtabulous');
//loadJSLibraries('whatamitastingquiz');
//loadJSLibraries('tooltip');


//OMNITURE
function linkCode(obj,filename) {
	var s=s_gi('mshankenwine');
	s.linkTrackVars='None';
	s.linkTrackEvents='None';
	s.tl(obj,'d',filename);
}


/* ]]> */

