/***

	This script create a pop up  windows
	Author: Luis Pirir <luispirir@gmail.com>

***/

openWin = SxCore.Class.create();

SxCore.Class.extend ( openWin.prototype, {

	initialize: function () {
	
		var className = 'external';

	    var as = document.getElementById('side-center').getElementsByTagName('a');

		for ( i=0; i < as.length; i++ ) {

			var a = as[i];
		    r=new RegExp("(^| )"+className+"($| )");
		    if(r.test(a.className)) {

				a.onclick = function(){

					window.open( this.href, '', 'width=300,height=300' );

					return false;

				}
			}
		}
	}

});

winOnload = SxCore.Class.create();

SxCore.Class.extend ( winOnload.prototype, {

	initialize: function () {
	
	}

} );

window.onload = function () {
	
	new openWin();

}