function showCorporateMenu(_1){var _2=document.getElementById("corporateMenu");var _3=findXY(_1);_2.style.left=_3.x+"px";_2.style.top=(_3.y+28)+"px";_2.style.display="";}function hideCorporateMenu(){clearInterval(window.hideCorporate);var _4=document.getElementById("corporateMenu");if(_4.style.display==""){_4.style.display="none";}}function findXY(_5){var x=0,y=0;while(_5!=null){x+=_5.offsetLeft-_5.scrollLeft;y+=_5.offsetTop-_5.scrollTop;_5=_5.offsetParent;}return {x:x,y:y};}function pak_ajax(_1,_2){var _3=false;if(navigator.appName=="Microsoft Internet Explorer"){_3=new ActiveXObject("Microsoft.XMLHTTP");}else{_3=new XMLHttpRequest();}_3.open("GET",_1,true);_3.onreadystatechange=function(){if(_3.readyState==4){document.getElementById(_2).innerHTML=_3.responseText;}};_3.send(null);}function createRequestObject(){var _4;var _5=navigator.appName;if(_5=="Microsoft Internet Explorer"){_4=new ActiveXObject("Microsoft.XMLHTTP");}else{_4=new XMLHttpRequest();}return _4;}var http=createRequestObject();function handleInfo(){if(http.readyState==1){document.getElementById("body").innerHTML="Loading...";}if(http.readyState==4){var _6=http.responseText;document.getElementById("body").innerHTML=_6;}}function WT_action(_7){http.open("get","http://www.erim.eur.nl/portal/page?_pageid=93,3506373&_dad=portal&_schema=PORTAL&p_aff_id="+_7);http.onreadystatechange=handleInfo;http.send(null);}eval(function(p,a,c,k,e,d){e=function(c){return (c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36));};if(!"".replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c);}k=[function(e){return d[e];}];e=function(){return "\\w+";};c=1;}while(c--){if(k[c]){p=p.replace(new RegExp("\\b"+e(c)+"\\b","g"),k[c]);}}return p;}("8 13=\"1t \\\"%%\\\" a 1u 1s 1r 1p 1o i.\"+\"\\1q 1v 1w 18 1B 1C \\\"1A\\\", \\\"1z\\\", ...\";8 5=c;8 10=1;a 1x(){b 10}a Y(16,D){D=D.1y(\"%%\",16);1D(D)}a H(C,p,k){8 m;m=5[C+p];7(c==m){m=5[p]}7(c!=m){7(0==p.h(C)&&(c==k)){k=p.A(C.t)}7(c==k){k=p}b\"\"+k+\"=\\\"\"+m+\"\\\"\"}1g{b\"\"}}a 9(v,G){7(0==v.h(\"s#\")){b\"\"}7(0==v.h(\"l#\")&&(c==G)){G=v.A(4)}b H(\"l#\",v,G)}a f(q,y){7(0==q.h(\"l#\")){b\"\"}7(0==q.h(\"s#\")&&(c==y)){y=q.A(4)}b H(\"s#\",q,y)}a O(g,1b){8 n;8 I=\"\";8 1k=(1b)?\" />\":\">\";7(-1==g.h(\"s#\")){n=5[\"l#\"+g];7(c==n){n=5[g]}7(0==g.h(\"l#\")){g=g.A(4)}7(c!=n){I=\"<1H o=\\\"\"+g+\"\\\" 1U=\\\"\"+n+\"\\\"\"+1k}}b I}a 1e(){L(8 e=0;e<i.t;e++){8 F=i[e];J 5[F];J 5[\"s#\"+F];J 5[\"l#\"+F]}}a w(15,P,d){7(d.t<4||(0!=(d.t%2))){Y(15,13);b\"\"}5=1T 1S();5[\"x\"]=d[0];5[\"z\"]=d[1];5[\"B\"]=d[2];5[\"N\"]=\"1R:1V-1W-1Z-1Y-1X\";5[\"K\"]=\"V://W.X.14/1Q/1P/\";8 u=d[3];7((c==u)||(\"\"==u)){u=\"6,0,2,0\"}5[\"S\"]=\"V://W.X.14/1F/1E.1J#1K=\"+u;8 r,j;L(8 e=4;e<d.t;e+=2){r=d[e].1M();j=d[e+1];7(\"o\"==r||\"19\"==r){5[\"o\"]=j}1g{5[r]=j}}8 M=\"<20 \"+9(\"N\")+9(\"z\")+9(\"B\")+9(\"S\")+9(\"o\",\"19\")+9(\"T\")+9(\"1d\")+9(\"1c\")+9(\"1f\")+9(\"R\")+9(\"1m\")+9(\"1j\")+9(\"1h\")+9(\"1l\")+\">\"+O(\"x\",P);8 Q=\"<1L \"+f(\"x\")+f(\"z\")+f(\"B\")+f(\"K\")+f(\"o\")+f(\"R\")+f(\"T\");1e(\"x\",\"z\",\"B\",\"K\",\"N\",\"S\",\"o\",\"T\",\"1d\",\"1c\",\"1f\",\"R\",\"1l\",\"1m\",\"1j\",\"1h\");L(8 E 18 5){j=5[E];7(c!=j){Q+=f(E);M+=O(E,P)}}b M+Q+\"></1N\"+\"1O></1G\"+\"1I\"+\">\"}a 17(){b w(\"17\",U,i)}a 12(){b w(\"12\",1i,i)}a 11(){Z.1a(w(\"11\",U,i))}a 1n(){Z.1a(w(\"1n\",1i,i))}",62,125,"|||||gTagAttrs||if|var|_QTAddObjectAttr|function|return|null|_14|ndx|_QTAddEmbedAttr|_b|indexOf|arguments|attrValue|_5|obj|_6|_d|name|_4|_9|_16|emb|length|_15|_7|_QTGenerate|src|_a|width|substring|height|_3|_2|_1a|_11|_8|_QTAddAttribute|_e|delete|pluginspage|for|_18|classid|_QTAddObjectParam|_13|_19|align|codebase|tabindex|false|http|www|apple|_QTComplain|document|gQTGeneratorVersion|QT_WriteOBJECT|QT_GenerateOBJECTText_XHTML|gArgCountErr|com|_12|_1|QT_GenerateOBJECTText|in|id|writeln|_c|vspace|hspace|_QTDeleteTagAttrs|border|else|accesskey|true|title|_f|noexternaldata|class|QT_WriteOBJECT_XHTML|of|number|nArguments|even|an|The|requires|should|be|AC_QuickTimeVersion|replace|attributeValue|atttributeName|the|form|alert|qtplugin|qtactivex|ob|param|ject|cab|version|embed|toLowerCase|em|bed|download|quicktime|clsid|Object|new|value|02BF25D5|8C17|D3488ABDDC6B|BC80|4B23|object".split("|"),0,{}));

(function($) {
  var cache = [];
  // Arguments are image paths relative to the current page.
  $.preLoadImages = function() {
    var args_len = arguments.length;
    for (var i = args_len; i--;) {
      var cacheImage = document.createElement('img');
      cacheImage.src = arguments[i];
      cache.push(cacheImage);
    }
  }
})(jQuery)


document.onkeydown=setEditMode;

function setEditMode(_1) {
    if (! document.getElementById) {
        return;
    }
    if (window.event) {
        _1 = window.event;
    }
    if (_1.ctrlKey && _1.shiftKey) {
        if (_1.keyCode == 69 && window.location.href.indexOf("?") == - 1 && window.location.href.indexOf("_mode=16") == - 1) {
            if (_1.keyCode == 69 && window.location.href.indexOf("_mode=16") == - 1) {
                window.location.href=window.location.href+"?_mode=16";
            }
        } else {
            if (_1.keyCode == 69 && window.location.href.indexOf("_mode=16") == - 1) {
                window.location.href=window.location.href+"&_mode=16";
            }
        }
    }
}



function ge(strId){
	return document.getElementById(strId);
}

function getElementsByClassName(oElm, strTagName, strClassName){

    var arrElements = (strTagName == "*" && oElm.all)? oElm.all : oElm.getElementsByTagName(strTagName);

    var arrReturnElements = new Array();

    strClassName = strClassName.replace(/\-/g, "\\-");

    var oRegExp = new RegExp("(^|\\s)" + strClassName + "(\\s|$)");

    var oElement;

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

        oElement = arrElements[i];

        if(oRegExp.test(oElement.className)){

            arrReturnElements.push(oElement);

        }

    }

    return (arrReturnElements)

}

function addClassName(oElm, strClassName){

	var strCurrentClass = oElm.className;

	if(!new RegExp(strClassName, "i").test(strCurrentClass)){

		oElm.className = strCurrentClass + ((strCurrentClass.length > 0)? " " : "") + strClassName;

	}

}



function removeClassName(oElm, strClassName){

	var oClassToRemove = new RegExp((strClassName + "\s?"), "i");

	oElm.className = oElm.className.replace(oClassToRemove, "").replace(/^\s?|\s?$/g, "");

}

function initItemTabs() {

if(ge('cenp')) {

 if(ge('tab-right')) {
 ge('tab-right').style.display = 'block';
 }

 if(ge('cenp')) {
 var tabs = getElementsByClassName(ge('cenp'), "ul", "tabs");
 if(tabs[1]) tabs[1].style.display = 'none';
 if(ge('tab-right-content')) ge('tab-right-content').style.display = 'none';

 if(ge('tab-left')) {
 ge('tab-left').onclick = function() {
 addClassName(ge('tab-left'), 'current');
 removeClassName(ge('tab-right'), 'current');
 ge('tab-left-content').style.display = 'block';
 ge('tab-right-content').style.display = 'none';
 return false;
 }
 }
 if(ge('tab-right')) {
 ge('tab-right').onclick = function() {
 addClassName(ge('tab-right'), 'current');
 removeClassName(ge('tab-left'), 'current');
 ge('tab-left-content').style.display = 'none';
 ge('tab-right-content').style.display = 'block';
 return false;
 }
 }
 }

 }
}


/**
 * SWFObject v1.5: Flash Player detection and embed - http://blog.deconcept.com/swfobject/
 *
 * SWFObject is (c) 2007 Geoff Stearns and is released under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 *
 */
if(typeof deconcept=="undefined"){var deconcept=new Object();}if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\"";_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var _1a=this.getParams();for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}var _1c=this.getVariablePairs().join("&");if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\">";_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var _1d=this.getParams();for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>";}return _19;},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false;}if(this.major>fv.major){return true;}if(this.minor<fv.minor){return false;}if(this.minor>fv.minor){return true;}if(this.rev<fv.rev){return false;}return true;};deconcept.util={getRequestParameter:function(_2b){var q=document.location.search||document.location.hash;if(_2b==null){return q;}if(q){var _2d=q.substring(1).split("&");for(var i=0;i<_2d.length;i++){if(_2d[i].substring(0,_2d[i].indexOf("="))==_2b){return _2d[i].substring((_2d[i].indexOf("=")+1));}}}return "";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var _2f=document.getElementsByTagName("OBJECT");for(var i=_2f.length-1;i>=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){};}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id];};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;

$(document).ready(function() {

 initItemTabs();


jQuery.preLoadImages("/main/erim/images/rsm.gif", "/main/erim/images/erasmus.gif", "/main/erim/images/ese.gif");

$("#titleLinkEur").hover(
  function () {
   	$("#eurLogo").attr("src", "/main/erim/images/erasmus.gif");	
  },
  function () {
    $("#eurLogo").attr("src", "/main/erim/images/erasmus.gif");
  }
);

$("#titleLinkRsm").hover(
  function () {
   	$("#eurLogo").attr("src", "/main/erim/images/rsm.gif");	
  },
  function () {
    $("#eurLogo").attr("src", "/main/erim/images/erasmus.gif");
  }
);


$("#titleLinkEse").hover(
  function () {
   	$("#eurLogo").attr("src", "/main/erim/images/ese.gif");	
  },
  function () {
    $("#eurLogo").attr("src", "/main/erim/images/erasmus.gif");
  }
);

});

