function printEvent(category, i) {
	page= window.open('/' + category + '/fanzone/events/'+i+'/?format=print', 'tools_popup', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=670,height=520');
} 
 

 
function loadImages() { 
        // check to see that the media_list array has objects 
        if (media_list.length > 0) {
                if (media_list[0].type == "Image") 
                        $('large_image_container').innerHTML = '<img id="large_image" src="'+media_list[0].url+'" />'; 
                else 
                        $('large_image_container').innerHTML = '<center><br /><br /><embed height="75" src="'+media_list[0].url+'" autoplay="true" loop="false"></embed><br /><br /><a href="'+media_list[0].url+'">Download Audio Clip</a></center>'; 
        } 
        //if no image was loaded fix css so that the big freaking box doesn't show 
        if (media_list.length==0 && !owner) { 
                $('event_media_container').style.display='none'; 
       	} 
} 
 
function load(url, type) { 
        large = $('large_image_container'); 
         
        if (type == "Image") { 
                large.innerHTML = '<img id="large_image" src="'+url+'" style="opacity:0.0;filter:alpha(opacity=0);" />'; 
                Effect.Appear('large_image', {duration: 0.4, queue: 'end'}); 
        } 
        else { 
                large.innerHTML = '<center><br /><br /><embed height="75" src="'+url+'" autoplay="true" loop="false"></embed><br /><br /><a href="'+url+'">Download Audio Clip</a></center>'; 
        } 
} 
 
function delete_media(id) { 
        confirmation = confirm("Are you sure you want to delete this file?"); 
        if(confirmation==true) { 
                //go to either submit form or load a pge 
                window.location = "/events/detail/delete_media/"+id+"/"; 
        } 
} 
 
function media(url, type) { 
        this.type = type; 
        this.url = url;  
} 
