function sendMail (to,subject,body) {
  var url = "mailto:" + to + 
            "?subject=" + escape(subject) + 
            "&body=" + escape(body); 
  window.location = url;
}

function emailMessage () {
  var to      = "";
  var subject = "Cities Direct - City Breaks";
  var body    = "Hi,"+
                "\n\n "+
                "Have a look at this great site, click on the link below"+
                "\n\n "+

		"Go to: "+document.location;

  return sendMail(to, subject, body);
}
//

function Lvl_jumpMenuWin(el,y,q) { //v1.1 4LevelWebs
  var O=el.options[el.selectedIndex].value,ww,hh;if(y)el.selectedIndex=0;
  var er=O.charAt(O.length),as=O.substring(O.length,er),a=as.split('~');
  var tp=",top=",tr=",toolbar=",ts=",status=",ln=",location=",mb=",menubar=",ss=",scrollbars=",re=",resizable=",fs=",fullscreen=";
  var sw=(screen.width),sh=(screen.height);
  var u=a[0],n=a[1],WW=a[2],HH=a[3];
  var t=(a[6]==0)?tr+0:tr+1,l=(a[7]==0)?ln+0:ln+1,s=(a[8]==0)?ts+0:ts+1,z=(a[13]==0)?fs+0:fs+1;
  var m=(a[9]==0)?mb+0:mb+1;x=(a[10]==0)?ss+0:ss+1,r=(a[11]==0)?re+0:re+1,c=a[12];
   if (a[12]==0){ww=(sw)}else{ww=(sw-WW)/2}
   if (a[12]==0){hh=(sh)}else{hh=(sh-HH)/2}
  var j=(c==1)?tp+hh:tp+a[5],k=(c==1||c==2)?",left="+ww:",left="+a[4];if(q==0)q='top';
  var W=(a[2]==0)?0:",width="+WW,H=(a[3]==0)?0:",height="+HH,f=W+=H+=j+=k+=t+=l+=s+=m+=x+=r+=z;
   if(u)if(a[14]==1){u=eval("parent.frames[\'"+q+"\'].location='"+u+"'")}else{window.open(u,n,f)}el.blur();
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function flvS3(v1){//v1.2
var v2=MM_findObj(v1);if (!v2){this.x=this.y=this.h=this.w=0;return;}var v3,v4,v5,v6,v7=(document.layers)?v2:v2.style;v3=isNaN(parseInt(v7.left))?v2.offsetLeft:parseInt(v7.left);v4=isNaN(parseInt(v7.top))?v4=v2.offsetTop:parseInt(v7.top);if (v2.offsetHeight){v5=v2.offsetHeight;v6=v2.offsetWidth;}else if (document.layers){v5=v7.clip.height;v6=v7.clip.width;}else {v5=v6=0;}this.x=parseInt(v3);this.y=parseInt(v4);this.h=parseInt(v5);this.w=parseInt(v6);}

function flvS8(v1,v2,v3){//v1.0
var v4=(document.layers)?v1:v1.style;var v5=flvS5();eval("v4.left='"+v2+v5+"'");eval("v4.top='"+v3+v5+"'");}

function flvS5(){//v1.0
var v1=((parseInt(navigator.appVersion)>4||navigator.userAgent.indexOf("MSIE")>-1)&&(!window.opera))?"px":"";return v1;}

function flvXAS1(){
var v1=arguments,v2=v1.length,v3='AutoScrollContainer',v4='AutoScrollContent';var v5=MM_findObj(v3),v6=MM_findObj(v4);if (!v5){return;}if (v5.XAS1!=null){clearTimeout(v5.XAS1);}var v7=(v2>0)?parseInt(v1[0]):1;if (v7){var v8=(v2>1)?parseInt(v1[1]):1,v9=(v2>2)?parseInt(v1[2]):50,v10=(v2>3)?parseInt(v1[3]):1;var v11=new flvS3(v3),v12=new flvS3(v4);var v13=v12.x,v14=v12.y,v15=0,v16=0;if (v10==1){var v17=-1*v12.h;v15=v12.x;if (v14>=v17){v16=v12.y-v8;}else {v16=v11.h;}}else {var v18=-1*v12.w;v16=v12.y;if (v13>=v18){v15=v12.x-v8;}else {v15=v11.w;}}flvS8(v6,v15,v16);v5.XAS1=setTimeout("flvXAS1("+v7+","+v8+","+v9+","+v10+")",v9);}}
