/* ROLLOVERS. */

function newImage(arg) {
if (document.images) {
rslt = new Image();
rslt.src = arg;
return rslt;
}
}

function changeImages() {
if (document.images && (preloadFlag == true)) {
for (var i=0; i<changeImages.arguments.length; i+=2) {
document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
}
}
}

var preloadFlag = false;
function preloadImages() {
if (document.images) {
dogshow_over = newImage("/images/dogshow-over.gif");
results_over = newImage("/images/results-over.gif");
about_over = newImage("/images/about-over.gif");
records_over = newImage("/images/records-over.gif");
breedinfo_over = newImage("/images/breedinfo-over.gif");
shop_over = newImage("/images/shop-over.gif");
preloadFlag = true;
}
}

/* STATUS BAR */

function dm(msgStr) {
    window.status = msgStr;
    document.MM_returnValue = true;
}

/* POP-UP */

 function openWindow(url, name, features) {
  popupWin = window.open(url, name, features)
  if (window.focus) {
   popupWin.focus();
  }
}

function openphoto(url) {
   open_window = window.open(url,"photo",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizable=0,width=400,height=375');
  if (window.focus) {
   open_window.focus();
}
}

function openvideo(url) {
   open_window = window.open(url,"video",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizable=0,width=650,height=450');
  if (window.focus) {
   open_window.focus();
}
}


/* PULLDOWN */

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

/* VIDEO */

 function view_custom(url) {  
    window.open(url, 'soundcard','scrollbars=no,statusbar=no,resizable=no,menubar=no,toolbar=no,marginheight=0,marginwidth=0,topmargin=0,leftmargin=0,width=800,height=400');
 }

 function view_video(url,width,height) {    
    if(!width) {
        width = 920;
    }      
    if(!height) {
        height = 460;
    }  
    window.open(url,'video_player','scrollbars=no,statusbar=no,resizable=no,menubar=no,toolbar=no,marginheight=0,marginwidth=0,topmargin=0,leftmargin=0,width='+width+',height='+height);
 }

 function view_gallery(url) {
    if(url == undefined) {
       url = "gallery/index.html";
    }       
    window.open(url,'gallery','scrollbars=no,statusbar=no,resizable=no,menubar=no,toolbar=no,marginheight=0,marginwidth=0,topmargin=0,leftmargin=0,width=600,height=600');
} 

var randDARTNumber=0;
function genSetRandDARTNumber()
{
 randDARTNumber = Math.round(Math.random()*1000000000000);
}
genSetRandDARTNumber();