//// Email Funtion ////
function email(name, domain,tld, link) {
	var link = "<a href='mailto:"+name+"@"+domain+"."+tld+"'>"+link+"</a>";
	document.write(link);
	}
	
//// Zentrier-Script ////
function MM_openBrWindow(theURL,winName,features, myWidth, myHeight, isCenter) { //v3.0
  if(window.screen)if(isCenter)if(isCenter=="true"){
    var myLeft = (screen.width-myWidth)/2;
    var myTop = (screen.height-myHeight)/2;
    features+=(features!='')?',':'';
    features+=',left='+myLeft+',top='+myTop;
  }
  window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
}

//// Random Image ////
var theImages = new Array() 

theImages[0] = 'img/malaysia/cameron02.jpg'
theImages[1] = 'img/malaysia/penang01.jpg'
theImages[2] = 'img/scotland/scotland09.jpg'
theImages[3] = 'img/scotland/scotland12.jpg'
theImages[4] = 'img/dolomites/dolomites11.jpg'
theImages[5] = 'img/nzl/nzl06.jpg'
theImages[6] = 'img/nzl/nzl18.jpg'
theImages[6] = 'img/nzl/nzl22.jpg'

// do not edit anything below this line

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<img src="'+theImages[whichImage]+'" border="none">');
}
