 
function scene7Popup(url,images,name)
 {
   finalUrl = url+"?name="+name+"&image="+images;	
   mywindow = window.open (finalUrl,"mywindow","location=1,status=1,scrollbars=1,width=620,height=690");
   mywindow.moveTo(0,0);
 } 

 function infoPopup(url)
 {
   
   infoPopupWindow = window.open (url,"infoPopupWindow","location=0,status=1,scrollbars=1,width=600,height=650");
   infoPopupWindow.moveTo(0,0);
 }
 
 function templateDownloadPopup(url)
 {
   
   infoPopupWindow = window.open (url,"infoPopupWindow","menubar=1,location=1,status=1,scrollbars=1,resizable=1,width=600,height=650");
   infoPopupWindow.moveTo(0,0);
 }
 
 function downloadPopup(downloadId)
 {
   url = "/avery/secure/softwaredownload?downloadId=" + downloadId;
   emailPopupWindow = window.open (url,"downloadPopupWindow","location=0,status=1,scrollbars=1,width=600,height=650");
   emailPopupWindow.moveTo(0,0);
   
 }
 
 function emailPopup()
 {
   url = "/avery/secure/emailfriend?link="+location.href;
   emailPopupWindow = window.open (url,"emailPopupWindow","location=0,status=1,scrollbars=1,width=600,height=650");
   emailPopupWindow.moveTo(0,0);
   
 }
 
 
 /**
 * Gets the value of the specified cookie.
 *
 * name  Name of the desired cookie.
 *
 * Returns a string containing value of specified cookie,
 *   or null if cookie does not exist.
 */
function getCookie(name) {
    var dc = document.cookie;
    var prefix = name + "=";
    var begin = dc.indexOf("; " + prefix);
    if (begin == -1) {
        begin = dc.indexOf(prefix);
        if (begin != 0) return null;
    } else {
        begin += 2;
    }
    var end = document.cookie.indexOf(";", begin);
    if (end == -1) {
        end = dc.length;
    }
    
    return unescape(dc.substring(begin + prefix.length, end));
}

/**
 * Omniture Specific Javascript Functions for onClick Link Functions
 */
function customLinkCode(obj,eventName) {
	var s=s_gi('avdenprod');
	s.linkTrackVars='events';
	s.linkTrackEvents=eventName;
	s.events=eventName;
	var linkName = document.title;
	s.tl(obj,'o',linkName);
}
