/*********************************************
*   function popUpVideo
*   pops ups video in new window; currently
*   only 1 video, so hard coded
*********************************************/
function popUpVideo(){
    window.open('vid_1.html','','width=320,height=310');
}

function popUpTV(){
    window.open('media/video/tv.html','','width=322,height=250');
}

function popUpSong(){
    window.open('media/index/song.html','','width=360,height=250');
}

function popUpFlashVideo(){
    window.open('media/video/wfm_video.html','','width=322,height=290');
}

function popUpMap(map){
    window.open('media/l/'+ map,'','width=800,height=600');
}

function lv(arg){
    var dest = ( arg ) ? arg : 'vid_1.html';
    window.open(dest,'','width=320,height=310');
}

function volunteerFormPopUp() {
    window.open('v_volunteer_form.html','','width=650,height=420,scrollbars=1,resizable=1,status=1');

}

function shareYourStoryFormPopUp() {
    window.open('atw_share_your_story_form.html','','width=650,height=420,scrollbars=1,resizable=1,status=1');

}

function volunteerJobPopUp(dest) {
    window.open(dest,'','width=650,height=375,scrollbars=1,resizable=1,status=1');

}

function preregFormPopUp() {
    window.open('preregister_form.asp','','width=805,height=565,scrollbars=1,resizable=1,status=1');

}
function popUpPic(arg){
    // get name of chosen image minus directory info
    arg = arg.substring(arg.lastIndexOf("/")+1), arg.length;
    // sub "th_" for "i_"
    var re = new RegExp("th_");
    img = arg.replace(re,"i_",arg);
    // open viewing window
    popWin = window.open("popImg.html?"+img, "EventPhotos", "leftmargin=0,topmargin=0,marginwidth=0,marginheight=0,width=500,height=375");
    popWin.focus();
}
