function popup(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function openNewWindow(URLtoOpen, windowName, windowFeatures) {
  newWindow=window.open(URLtoOpen, windowName, windowFeatures); 
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

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 MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function showhide(id){ 
if (document.getElementById){ 
	obj = document.getElementById(id); 
		if (obj.style.display == "none"){ 
			obj.style.display = ""; 
	} else { 
		obj.style.display = "none"; 
		} 
	} 
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}


function flashcontent(url, width, height){
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+width+'" height="'+height+'">');
document.write('<param name="movie" value="'+url+'" />');
document.write('<param name="quality" value="high" />');
document.write('<param name="WMode" value="transparent" />');
document.write('<embed src="'+url+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'">');
document.write('</embed>');
document.write('</object>');
}

function smallpod(header){
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="177" height="22">');
document.write('<param name="movie" value="_global/swfs/smallpod.swf?smallpod='+header+'" />');
document.write('<param name="quality" value="high" />');
document.write('<embed src="_global/swfs/smallpod.swf?smallpod='+header+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="177" height="22">');
document.write('</embed>');
document.write('</object>');
}

function smallpodint(header){
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="177" height="22">');
document.write('<param name="movie" value="../_global/swfs/smallpod.swf?smallpod='+header+'" />');
document.write('<param name="quality" value="high" />');
document.write('<embed src="../_global/swfs/smallpod.swf?smallpod='+header+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="177" height="22">');
document.write('</embed>');
document.write('</object>');
}

function medpod(header){
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="270" height="22">');
document.write('<param name="movie" value="../_global/swfs/medpod.swf?medpod='+header+'" />');
document.write('<param name="quality" value="high" />');
document.write('<embed src="http://www.travelsportcamp.com/_global/swfs/medpod.swf?medpod='+header+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="270" height="22">');
document.write('</embed>');
document.write('</object>');
}

function initArray() {
    for (i = 0; i < initArray.arguments.length; i++)
        this[i] = initArray.arguments[i];
}

function getFullYear(d) { // d is a date object
    yr = d.getYear();
    if (yr < 1000)
        yr += 1900;
    return yr;
}

function display_date() {
    var isnMonths = new initArray("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
    var isnDays = new initArray("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday");
    var today = new Date();

    document.write(today.getDate());    // Day (2 digits)
    document.write("-");
    document.write(isnMonths[today.getMonth()]);    // Month Name			
    document.write("-");
    document.write(getFullYear(today)); // Year (4 digits)
}

function bookmarksite(title,url){
    if (window.sidebar) {  // firefox
        window.sidebar.addPanel(title, url, "");
    }
    else {
        if (window.opera && window.print) { // opera
            var elem = document.createElement('a');
            elem.setAttribute('href', url);
            elem.setAttribute('title', title);
            elem.setAttribute('rel', 'sidebar');
            elem.click();
        }
        else {
            if (document.all) {  // ie
                if (window.external) {
                    window.external.AddFavorite(url, title);
                }
                else {
                    alert("Sorry! Your browser doesn't support this function.");
                }
            }
            else {
                alert("Sorry! Your browser doesn't support this function.");
            }
        }
    }
}
/* ------------------------------- */
// PRINT THE PAGE
/* ------------------------------- */
// (C) 2000 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this  header
function printWindow() {
    bV = parseInt(navigator.appVersion)
    if (bV >= 4) window.print()
}

/* ------------------------------- */
// REDIRECT THE PARENT WINDOW
/* ------------------------------- */
function redirect_parent(new_url) {
    window.opener.document.location.href = new_url;
    window.close();
    return false;
}

/* ------------------------------- */
// FAQS
/* ------------------------------- */
function faq_click(element_in) {
    Effect.toggle(element_in, 'blind', { duration: 1.0 });
    return false;
}
