jQuery.noConflict();

var immoHome = "http://nedwed.onelogin.at/View/";

function loadImmo(lang, country, view) {
  frame = parent.frames['immo_iframe'];
  if (frame != null){
  var newCountry = 1;
  if (country == "1") newCountry = 3;
  else if (country == "2") newCountry = 2;
  else if (country== "4") newCountry =4;
  var newLang = 'de-AT';
  if (lang == "1") newLang = 'en-US';
  else if (lang == "2") newLang = 'it-IT';
    var url = immoHome + newLang + "/Home/" + view + "/c/" + newCountry + "/i/";
    frame.location.href = url;
  }
}
  
function parseRequest() {
  var doc = jQuery(document);
  var lightboxUrl = unescape(doc.getUrlParam("lb"));
  if (lightboxUrl != "null"){
    jQuery("#mb11").attr('href', lightboxUrl)
		var initMultiBox = new multiBox({
			mbClass: '.mb', //class you need to add links that you want to trigger multiBox with (remember and update CSS files)
			container: $(document.body), //where to inject multiBox
			descClassName: false, //the class name of the description divs
			useOverlay: true, //use a semi-transparent background. default: false;
			maxSize: { w: 800, h: 920 }, //max dimensions (width,height) - set to null to disable resizing
			addDownload: false, //do you want the files to be downloadable?
			addRollover: true, //add rollover fade to each multibox link
			addOverlayIcon: true, //adds overlay icons to images within multibox links
			addChain: true, //cycle through all images fading them out then in
			recalcTop: true, //subtract the height of controls panel from top position
			addTips: true//adds MooTools built in 'Tips' class to each element (see: http://mootools.net/docs/Plugins/Tips)
		});
		initMultiBox.open(0,initMultiBox.multiBox);
 }
}

jQuery(function() { parseRequest();});
