var host = location.hostname;
var root = '/';
if (host=='192.168.1.17') {
	root = '/olivant/v1/';
	}
else if (host=='www.livingdesigns-uk.com'||host=='livingdesigns-uk.com') {
	root = '/olivant/v1/';
	}


// Create a link to the Javascript-only stylesheet, which will primarily hide the hidden text
	var $link_element = document.createElement('link');
	$link_element.setAttribute("rel","stylesheet");
	$link_element.setAttribute("href",root+"presentation/javascript_only.css");
	$link_element.setAttribute("media","screen,projection,tv");
	
	// Append this stylesheet link to the document
	var $head_element = document.getElementsByTagName('head')[0];
	$head_element.appendChild($link_element);

	
// popupWindow function
// This is where you set your specific height & width etc... for your popups.
function openPopup(url,popType) {
	if (popType==1)
		window.open(url, 'popupwindow', 'width=560,height=750,top=5,left=5,scrollbars,resizable'); 
	else
		window.open(url);
	return false;
	}

function gotoUrl(url) {
  if (url == "")
    return;
  location.href = url;
}

$(document).ready(function(){
	
	$("#sel-language").change(function(){
			
		})
	
	
	// Popups and external links.
	$("a.popup").click(function(){
		var url = this.href;
		openPopup(url,1);
		return false;
		})
		$("a.popup2").click(function(){
		var url = this.href;
		openPopup(url,0);
		return false;
		})
	
	$("a.external").click(function(){
		var url = this.href;
		openPopup(url,0);
		return false;
		})

if(typeof sIFR == "function"){
    sIFR.replaceElement("h3", named({sFlashSrc: "behaviour/georgia.swf", sColor: "#444444",sLinkColor: "#003D78"}));
};


});